#ifndef _LIB_UBSAN_H #define _LIB_UBSAN_H enum { type_kind_int = 0, type_kind_float = 1, type_unknown = 0xffff }; struct type_descriptor { u16 type_kind; u16 type_info; char type_name[1]; }; struct source_location { const char *file_name; union { unsigned long reported; struct { u32 line; u32 column; }; }; }; struct overflow_data { struct source_location location; struct type_descriptor *type; }; struct type_mismatch_data { struct source_location location; struct type_descriptor *type; unsigned long alignment; unsigned char type_check_kind; }; struct nonnull_arg_data { struct source_location location; struct source_location attr_location; int arg_index; }; struct nonnull_return_data { struct source_location location; struct source_location attr_location; }; struct vla_bound_data { struct source_location location; struct type_descriptor *type; }; struct out_of_bounds_data { struct source_location location; struct type_descriptor *array_type; struct type_descriptor *index_type; }; struct shift_out_of_bounds_data { struct source_location location; struct type_descriptor *lhs_type; struct type_descriptor *rhs_type; }; struct unreachable_data { struct source_location location; }; struct invalid_value_data { struct source_location location; struct type_descriptor *type; }; #if defined(CONFIG_ARCH_SUPPORTS_INT128) && defined(__SIZEOF_INT128__) typedef __int128 s_max; typedef unsigned __int128 u_max; #else typedef s64 s_max; typedef u64 u_max; #endif #endif a href='/cgit.cgi/linux/net-next.git/'>summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorVarun Prakash <varun@chelsio.com>2016-12-09 14:40:07 +0530
committerMartin K. Petersen <martin.petersen@oracle.com>2016-12-14 15:11:53 -0500
commit165ae50e450bc7de6c741bf2c27ed0920a40a9af (patch)
treef39f9d08913d59828084be709315cb2e39336713 /drivers
parent1fe1fdb04b92f54b58eb8b71d2f28cf73fd9801c (diff)
scsi: libcxgbi: return error if interface is not up
Do not post hw active open cmd if IFF_UP is not set or link is down on the interface, return -ENETDOWN in this case. Signed-off-by: Varun Prakash <varun@chelsio.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers')