drivers/usb/gadget/function/f_tcm.c:330:24: error: 'typeof' applied to a bit-field
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git dev/slab-v6.11/typed-alloc/v1 head: 6e7fe92b1c5b0a4fd99772e8769e8adf7d296bc1 commit: cc4265a19e8f49c42f22458ab1ea9273cf4dfad5 [3/5] slab: Detect negative size values and saturate config: x86_64-randconfig-002-20240709 (https://download.01.org/0day-ci/archive/20240709/[email protected]/config) compiler: gcc-10 (Ubuntu 10.5.0-1ubuntu1) 10.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240709/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
In file included from include/linux/percpu.h:5,
from arch/x86/include/asm/msr.h:15,
from arch/x86/include/asm/tsc.h:10,
from arch/x86/include/asm/timex.h:6,
from include/linux/timex.h:67,
from include/linux/time32.h:13,
from include/linux/time.h:60,
from include/linux/stat.h:19,
from include/linux/module.h:13,
from drivers/usb/gadget/function/f_tcm.c:10:
drivers/usb/gadget/function/f_tcm.c: In function 'bot_prepare_reqs':
>> drivers/usb/gadget/function/f_tcm.c:330:24: error: 'typeof' applied to a bit-field
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~
include/linux/alloc_tag.h:206:9: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:697:18: note: in expansion of macro 'kmalloc_sized'
697 | unsigned char: kmalloc_sized(__force_integral_expr(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:462:22: note: in expansion of macro '__same_type'
462 | #define __is_ptr(p) __same_type(p, __decay(p))
| ^~~~~~~~~~~
include/linux/compiler_types.h:466:25: note: in expansion of macro '__is_ptr'
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)
| ^~~~~~~~
include/linux/compiler_types.h:468:2: note: in expansion of macro '___force_integral_expr'
468 | ___force_integral_expr(x, int, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:697:32: note: in expansion of macro '__force_integral_expr'
697 | unsigned char: kmalloc_sized(__force_integral_expr(p), gfp), \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:16: note: in expansion of macro 'kmalloc'
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~~~~~~
>> drivers/usb/gadget/function/f_tcm.c:330:24: error: 'typeof' applied to a bit-field
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~
include/linux/alloc_tag.h:206:27: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:697:18: note: in expansion of macro 'kmalloc_sized'
697 | unsigned char: kmalloc_sized(__force_integral_expr(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:462:22: note: in expansion of macro '__same_type'
462 | #define __is_ptr(p) __same_type(p, __decay(p))
| ^~~~~~~~~~~
include/linux/compiler_types.h:466:25: note: in expansion of macro '__is_ptr'
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)
| ^~~~~~~~
include/linux/compiler_types.h:468:2: note: in expansion of macro '___force_integral_expr'
468 | ___force_integral_expr(x, int, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:697:32: note: in expansion of macro '__force_integral_expr'
697 | unsigned char: kmalloc_sized(__force_integral_expr(p), gfp), \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:16: note: in expansion of macro 'kmalloc'
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~~~~~~
>> drivers/usb/gadget/function/f_tcm.c:330:24: error: 'typeof' applied to a bit-field
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~
include/linux/alloc_tag.h:206:9: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:698:18: note: in expansion of macro 'kmalloc_sized'
698 | unsigned short: kmalloc_sized(__force_integral_expr(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:462:22: note: in expansion of macro '__same_type'
462 | #define __is_ptr(p) __same_type(p, __decay(p))
| ^~~~~~~~~~~
include/linux/compiler_types.h:466:25: note: in expansion of macro '__is_ptr'
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)
| ^~~~~~~~
include/linux/compiler_types.h:468:2: note: in expansion of macro '___force_integral_expr'
468 | ___force_integral_expr(x, int, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:698:32: note: in expansion of macro '__force_integral_expr'
698 | unsigned short: kmalloc_sized(__force_integral_expr(p), gfp), \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:16: note: in expansion of macro 'kmalloc'
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~~~~~~
>> drivers/usb/gadget/function/f_tcm.c:330:24: error: 'typeof' applied to a bit-field
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~
include/linux/alloc_tag.h:206:27: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:698:18: note: in expansion of macro 'kmalloc_sized'
698 | unsigned short: kmalloc_sized(__force_integral_expr(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:462:22: note: in expansion of macro '__same_type'
462 | #define __is_ptr(p) __same_type(p, __decay(p))
| ^~~~~~~~~~~
include/linux/compiler_types.h:466:25: note: in expansion of macro '__is_ptr'
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)
| ^~~~~~~~
include/linux/compiler_types.h:468:2: note: in expansion of macro '___force_integral_expr'
468 | ___force_integral_expr(x, int, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:698:32: note: in expansion of macro '__force_integral_expr'
698 | unsigned short: kmalloc_sized(__force_integral_expr(p), gfp), \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:16: note: in expansion of macro 'kmalloc'
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~~~~~~
>> drivers/usb/gadget/function/f_tcm.c:330:24: error: 'typeof' applied to a bit-field
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~
include/linux/alloc_tag.h:206:9: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:699:18: note: in expansion of macro 'kmalloc_sized'
699 | unsigned int: kmalloc_sized(__force_integral_expr(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:462:22: note: in expansion of macro '__same_type'
462 | #define __is_ptr(p) __same_type(p, __decay(p))
| ^~~~~~~~~~~
include/linux/compiler_types.h:466:25: note: in expansion of macro '__is_ptr'
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)
| ^~~~~~~~
include/linux/compiler_types.h:468:2: note: in expansion of macro '___force_integral_expr'
468 | ___force_integral_expr(x, int, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:699:32: note: in expansion of macro '__force_integral_expr'
699 | unsigned int: kmalloc_sized(__force_integral_expr(p), gfp), \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:16: note: in expansion of macro 'kmalloc'
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~~~~~~
>> drivers/usb/gadget/function/f_tcm.c:330:24: error: 'typeof' applied to a bit-field
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~
include/linux/alloc_tag.h:206:27: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:699:18: note: in expansion of macro 'kmalloc_sized'
699 | unsigned int: kmalloc_sized(__force_integral_expr(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:462:22: note: in expansion of macro '__same_type'
462 | #define __is_ptr(p) __same_type(p, __decay(p))
| ^~~~~~~~~~~
include/linux/compiler_types.h:466:25: note: in expansion of macro '__is_ptr'
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)
| ^~~~~~~~
include/linux/compiler_types.h:468:2: note: in expansion of macro '___force_integral_expr'
468 | ___force_integral_expr(x, int, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:699:32: note: in expansion of macro '__force_integral_expr'
699 | unsigned int: kmalloc_sized(__force_integral_expr(p), gfp), \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:16: note: in expansion of macro 'kmalloc'
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~~~~~~
>> drivers/usb/gadget/function/f_tcm.c:330:24: error: 'typeof' applied to a bit-field
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~
include/linux/alloc_tag.h:206:9: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:700:18: note: in expansion of macro 'kmalloc_sized'
700 | unsigned long: kmalloc_sized(__force_integral_expr(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:462:22: note: in expansion of macro '__same_type'
462 | #define __is_ptr(p) __same_type(p, __decay(p))
| ^~~~~~~~~~~
include/linux/compiler_types.h:466:25: note: in expansion of macro '__is_ptr'
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)
| ^~~~~~~~
include/linux/compiler_types.h:468:2: note: in expansion of macro '___force_integral_expr'
468 | ___force_integral_expr(x, int, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:700:32: note: in expansion of macro '__force_integral_expr'
700 | unsigned long: kmalloc_sized(__force_integral_expr(p), gfp), \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:16: note: in expansion of macro 'kmalloc'
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~~~~~~
>> drivers/usb/gadget/function/f_tcm.c:330:24: error: 'typeof' applied to a bit-field
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~
include/linux/alloc_tag.h:206:27: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:700:18: note: in expansion of macro 'kmalloc_sized'
700 | unsigned long: kmalloc_sized(__force_integral_expr(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:462:22: note: in expansion of macro '__same_type'
462 | #define __is_ptr(p) __same_type(p, __decay(p))
| ^~~~~~~~~~~
include/linux/compiler_types.h:466:25: note: in expansion of macro '__is_ptr'
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)
| ^~~~~~~~
include/linux/compiler_types.h:468:2: note: in expansion of macro '___force_integral_expr'
468 | ___force_integral_expr(x, int, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:700:32: note: in expansion of macro '__force_integral_expr'
700 | unsigned long: kmalloc_sized(__force_integral_expr(p), gfp), \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:16: note: in expansion of macro 'kmalloc'
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~~~~~~
>> drivers/usb/gadget/function/f_tcm.c:330:24: error: 'typeof' applied to a bit-field
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~
include/linux/alloc_tag.h:206:9: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:701:18: note: in expansion of macro 'kmalloc_sized'
701 | signed char: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:462:22: note: in expansion of macro '__same_type'
462 | #define __is_ptr(p) __same_type(p, __decay(p))
| ^~~~~~~~~~~
include/linux/compiler_types.h:466:25: note: in expansion of macro '__is_ptr'
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)
| ^~~~~~~~
include/linux/compiler_types.h:468:2: note: in expansion of macro '___force_integral_expr'
468 | ___force_integral_expr(x, int, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:691:10: note: in expansion of macro '__force_integral_expr'
691 | typeof(__force_integral_expr(x)) __forced_val = \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:701:32: note: in expansion of macro '__size_force_positive'
701 | signed char: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:16: note: in expansion of macro 'kmalloc'
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~~~~~~
>> include/linux/compiler_types.h:466:2: error: 'typeof' applied to a bit-field
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/alloc_tag.h:206:9: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:701:18: note: in expansion of macro 'kmalloc_sized'
701 | signed char: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:468:2: note: in expansion of macro '___force_integral_expr'
468 | ___force_integral_expr(x, int, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:691:10: note: in expansion of macro '__force_integral_expr'
691 | typeof(__force_integral_expr(x)) __forced_val = \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:701:32: note: in expansion of macro '__size_force_positive'
701 | signed char: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:16: note: in expansion of macro 'kmalloc'
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~~~~~~
>> drivers/usb/gadget/function/f_tcm.c:330:24: error: 'typeof' applied to a bit-field
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~
include/linux/alloc_tag.h:206:9: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:701:18: note: in expansion of macro 'kmalloc_sized'
701 | signed char: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:462:22: note: in expansion of macro '__same_type'
462 | #define __is_ptr(p) __same_type(p, __decay(p))
| ^~~~~~~~~~~
include/linux/compiler_types.h:466:25: note: in expansion of macro '__is_ptr'
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)
| ^~~~~~~~
include/linux/compiler_types.h:468:2: note: in expansion of macro '___force_integral_expr'
468 | ___force_integral_expr(x, int, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:692:4: note: in expansion of macro '__force_integral_expr'
692 | __force_integral_expr(x); \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:701:32: note: in expansion of macro '__size_force_positive'
701 | signed char: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:16: note: in expansion of macro 'kmalloc'
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~~~~~~
>> drivers/usb/gadget/function/f_tcm.c:330:24: error: 'typeof' applied to a bit-field
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~
include/linux/alloc_tag.h:206:27: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:701:18: note: in expansion of macro 'kmalloc_sized'
701 | signed char: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:462:22: note: in expansion of macro '__same_type'
462 | #define __is_ptr(p) __same_type(p, __decay(p))
| ^~~~~~~~~~~
include/linux/compiler_types.h:466:25: note: in expansion of macro '__is_ptr'
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)
| ^~~~~~~~
include/linux/compiler_types.h:468:2: note: in expansion of macro '___force_integral_expr'
468 | ___force_integral_expr(x, int, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:691:10: note: in expansion of macro '__force_integral_expr'
691 | typeof(__force_integral_expr(x)) __forced_val = \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:701:32: note: in expansion of macro '__size_force_positive'
701 | signed char: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:16: note: in expansion of macro 'kmalloc'
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~~~~~~
>> include/linux/compiler_types.h:466:2: error: 'typeof' applied to a bit-field
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/alloc_tag.h:206:27: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:701:18: note: in expansion of macro 'kmalloc_sized'
701 | signed char: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:468:2: note: in expansion of macro '___force_integral_expr'
468 | ___force_integral_expr(x, int, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:691:10: note: in expansion of macro '__force_integral_expr'
691 | typeof(__force_integral_expr(x)) __forced_val = \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:701:32: note: in expansion of macro '__size_force_positive'
701 | signed char: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:16: note: in expansion of macro 'kmalloc'
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~~~~~~
>> drivers/usb/gadget/function/f_tcm.c:330:24: error: 'typeof' applied to a bit-field
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~
include/linux/alloc_tag.h:206:27: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:701:18: note: in expansion of macro 'kmalloc_sized'
701 | signed char: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:462:22: note: in expansion of macro '__same_type'
462 | #define __is_ptr(p) __same_type(p, __decay(p))
| ^~~~~~~~~~~
include/linux/compiler_types.h:466:25: note: in expansion of macro '__is_ptr'
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)
| ^~~~~~~~
include/linux/compiler_types.h:468:2: note: in expansion of macro '___force_integral_expr'
468 | ___force_integral_expr(x, int, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:692:4: note: in expansion of macro '__force_integral_expr'
692 | __force_integral_expr(x); \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:701:32: note: in expansion of macro '__size_force_positive'
701 | signed char: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:16: note: in expansion of macro 'kmalloc'
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~~~~~~
>> drivers/usb/gadget/function/f_tcm.c:330:24: error: 'typeof' applied to a bit-field
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~
include/linux/alloc_tag.h:206:9: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:702:18: note: in expansion of macro 'kmalloc_sized'
702 | signed short: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:462:22: note: in expansion of macro '__same_type'
462 | #define __is_ptr(p) __same_type(p, __decay(p))
| ^~~~~~~~~~~
include/linux/compiler_types.h:466:25: note: in expansion of macro '__is_ptr'
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)
| ^~~~~~~~
include/linux/compiler_types.h:468:2: note: in expansion of macro '___force_integral_expr'
468 | ___force_integral_expr(x, int, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:691:10: note: in expansion of macro '__force_integral_expr'
691 | typeof(__force_integral_expr(x)) __forced_val = \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:702:32: note: in expansion of macro '__size_force_positive'
702 | signed short: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:16: note: in expansion of macro 'kmalloc'
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~~~~~~
>> include/linux/compiler_types.h:466:2: error: 'typeof' applied to a bit-field
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/alloc_tag.h:206:9: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:702:18: note: in expansion of macro 'kmalloc_sized'
702 | signed short: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:468:2: note: in expansion of macro '___force_integral_expr'
468 | ___force_integral_expr(x, int, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:691:10: note: in expansion of macro '__force_integral_expr'
691 | typeof(__force_integral_expr(x)) __forced_val = \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:702:32: note: in expansion of macro '__size_force_positive'
702 | signed short: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:16: note: in expansion of macro 'kmalloc'
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~~~~~~
>> drivers/usb/gadget/function/f_tcm.c:330:24: error: 'typeof' applied to a bit-field
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~
include/linux/alloc_tag.h:206:9: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:702:18: note: in expansion of macro 'kmalloc_sized'
702 | signed short: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:462:22: note: in expansion of macro '__same_type'
462 | #define __is_ptr(p) __same_type(p, __decay(p))
| ^~~~~~~~~~~
include/linux/compiler_types.h:466:25: note: in expansion of macro '__is_ptr'
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)
| ^~~~~~~~
include/linux/compiler_types.h:468:2: note: in expansion of macro '___force_integral_expr'
468 | ___force_integral_expr(x, int, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:692:4: note: in expansion of macro '__force_integral_expr'
692 | __force_integral_expr(x); \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:702:32: note: in expansion of macro '__size_force_positive'
702 | signed short: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:16: note: in expansion of macro 'kmalloc'
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~~~~~~
>> drivers/usb/gadget/function/f_tcm.c:330:24: error: 'typeof' applied to a bit-field
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~
include/linux/alloc_tag.h:206:27: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:702:18: note: in expansion of macro 'kmalloc_sized'
702 | signed short: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:462:22: note: in expansion of macro '__same_type'
462 | #define __is_ptr(p) __same_type(p, __decay(p))
| ^~~~~~~~~~~
include/linux/compiler_types.h:466:25: note: in expansion of macro '__is_ptr'
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)
| ^~~~~~~~
include/linux/compiler_types.h:468:2: note: in expansion of macro '___force_integral_expr'
468 | ___force_integral_expr(x, int, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:691:10: note: in expansion of macro '__force_integral_expr'
691 | typeof(__force_integral_expr(x)) __forced_val = \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:702:32: note: in expansion of macro '__size_force_positive'
702 | signed short: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:16: note: in expansion of macro 'kmalloc'
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~~~~~~
>> include/linux/compiler_types.h:466:2: error: 'typeof' applied to a bit-field
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/alloc_tag.h:206:27: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:702:18: note: in expansion of macro 'kmalloc_sized'
702 | signed short: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:468:2: note: in expansion of macro '___force_integral_expr'
468 | ___force_integral_expr(x, int, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:691:10: note: in expansion of macro '__force_integral_expr'
691 | typeof(__force_integral_expr(x)) __forced_val = \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:702:32: note: in expansion of macro '__size_force_positive'
702 | signed short: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:16: note: in expansion of macro 'kmalloc'
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~~~~~~
>> drivers/usb/gadget/function/f_tcm.c:330:24: error: 'typeof' applied to a bit-field
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~
include/linux/alloc_tag.h:206:27: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:702:18: note: in expansion of macro 'kmalloc_sized'
702 | signed short: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:462:22: note: in expansion of macro '__same_type'
462 | #define __is_ptr(p) __same_type(p, __decay(p))
| ^~~~~~~~~~~
include/linux/compiler_types.h:466:25: note: in expansion of macro '__is_ptr'
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)
| ^~~~~~~~
include/linux/compiler_types.h:468:2: note: in expansion of macro '___force_integral_expr'
468 | ___force_integral_expr(x, int, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:692:4: note: in expansion of macro '__force_integral_expr'
692 | __force_integral_expr(x); \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:702:32: note: in expansion of macro '__size_force_positive'
702 | signed short: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:16: note: in expansion of macro 'kmalloc'
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:24: error: 'typeof' applied to a bit-field
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~
include/linux/alloc_tag.h:206:9: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:703:18: note: in expansion of macro 'kmalloc_sized'
703 | signed int: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:462:22: note: in expansion of macro '__same_type'
462 | #define __is_ptr(p) __same_type(p, __decay(p))
| ^~~~~~~~~~~
include/linux/compiler_types.h:466:25: note: in expansion of macro '__is_ptr'
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)
| ^~~~~~~~
include/linux/compiler_types.h:468:2: note: in expansion of macro '___force_integral_expr'
468 | ___force_integral_expr(x, int, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:691:10: note: in expansion of macro '__force_integral_expr'
691 | typeof(__force_integral_expr(x)) __forced_val = \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:703:32: note: in expansion of macro '__size_force_positive'
703 | signed int: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:16: note: in expansion of macro 'kmalloc'
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~~~~~~
include/linux/compiler_types.h:466:2: error: 'typeof' applied to a bit-field
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/alloc_tag.h:206:9: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:703:18: note: in expansion of macro 'kmalloc_sized'
703 | signed int: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:468:2: note: in expansion of macro '___force_integral_expr'
468 | ___force_integral_expr(x, int, 0)
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:691:10: note: in expansion of macro '__force_integral_expr'
691 | typeof(__force_integral_expr(x)) __forced_val = \
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/slab.h:703:32: note: in expansion of macro '__size_force_positive'
703 | signed int: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:16: note: in expansion of macro 'kmalloc'
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~~~~~~
drivers/usb/gadget/function/f_tcm.c:330:24: error: 'typeof' applied to a bit-field
330 | fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
| ^~
include/linux/alloc_tag.h:206:9: note: in definition of macro 'alloc_hooks_tag'
206 | typeof(_do_alloc) _res = _do_alloc; \
| ^~~~~~~~~
include/linux/slab.h:687:30: note: in expansion of macro 'alloc_hooks'
687 | #define kmalloc_sized(...) alloc_hooks(kmalloc_noprof(__VA_ARGS__))
| ^~~~~~~~~~~
include/linux/slab.h:703:18: note: in expansion of macro 'kmalloc_sized'
703 | signed int: kmalloc_sized(__size_force_positive(p), gfp), \
| ^~~~~~~~~~~~~
include/linux/compiler_types.h:462:22: note: in expansion of macro '__same_type'
462 | #define __is_ptr(p) __same_type(p, __decay(p))
| ^~~~~~~~~~~
include/linux/compiler_types.h:466:25: note: in expansion of macro '__is_ptr'
466 | __builtin_choose_expr(!__is_ptr(x), (x), (type)val)vim +/typeof +330 drivers/usb/gadget/function/f_tcm.c
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 304
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 305 static int bot_prepare_reqs(struct f_uas *fu)
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 306 {
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 307 int ret;
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 308
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 309 fu->bot_req_in = usb_ep_alloc_request(fu->ep_in, GFP_KERNEL);
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 310 if (!fu->bot_req_in)
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 311 goto err;
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 312
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 313 fu->bot_req_out = usb_ep_alloc_request(fu->ep_out, GFP_KERNEL);
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 314 if (!fu->bot_req_out)
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 315 goto err_out;
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 316
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 317 fu->cmd.req = usb_ep_alloc_request(fu->ep_out, GFP_KERNEL);
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 318 if (!fu->cmd.req)
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 319 goto err_cmd;
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 320
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 321 fu->bot_status.req = usb_ep_alloc_request(fu->ep_in, GFP_KERNEL);
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 322 if (!fu->bot_status.req)
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 323 goto err_sts;
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 324
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 325 fu->bot_status.req->buf = &fu->bot_status.csw;
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 326 fu->bot_status.req->length = US_BULK_CS_WRAP_LEN;
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 327 fu->bot_status.req->complete = bot_status_complete;
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 328 fu->bot_status.csw.Signature = cpu_to_le32(US_BULK_CS_SIGN);
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 329
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 @330 fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL);
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 331 if (!fu->cmd.buf)
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 332 goto err_buf;
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 333
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 334 fu->cmd.req->complete = bot_cmd_complete;
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 335 fu->cmd.req->buf = fu->cmd.buf;
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 336 fu->cmd.req->length = fu->ep_out->maxpacket;
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 337 fu->cmd.req->context = fu;
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 338
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 339 ret = bot_enqueue_cmd_cbw(fu);
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 340 if (ret)
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 341 goto err_queue;
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 342 return 0;
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 343 err_queue:
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 344 kfree(fu->cmd.buf);
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 345 fu->cmd.buf = NULL;
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 346 err_buf:
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 347 usb_ep_free_request(fu->ep_in, fu->bot_status.req);
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 348 err_sts:
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 349 usb_ep_free_request(fu->ep_out, fu->cmd.req);
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 350 fu->cmd.req = NULL;
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 351 err_cmd:
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 352 usb_ep_free_request(fu->ep_out, fu->bot_req_out);
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 353 fu->bot_req_out = NULL;
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 354 err_out:
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 355 usb_ep_free_request(fu->ep_in, fu->bot_req_in);
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 356 fu->bot_req_in = NULL;
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 357 err:
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 358 pr_err("BOT: endpoint setup failed\n");
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 359 return -ENOMEM;
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 360 }
08a1cb0f65fde6 Andrzej Pietrasiewicz 2015-12-11 361 :::::: The code at line 330 was first introduced by commit
:::::: 08a1cb0f65fde6f0da1db77b847ea78dc3c102cb usb: gadget: tcm: factor out f_tcm
:::::: TO: Andrzej Pietrasiewicz <[email protected]> :::::: CC: Nicholas Bellinger <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki