Linux bluetooth development
 help / color / mirror / Atom feed
From: bluez.test.bot@gmail.com
To: linux-bluetooth@vger.kernel.org, dmarlin@redhat.com
Subject: RE: Bluetooth: hci-core: fix "declaration does not declare anything" error
Date: Thu, 13 Aug 2026 22:46:57 -0700 (PDT)	[thread overview]
Message-ID: <6a7eabd1.e5907290.1ecfbe.50a6@mx.google.com> (raw)
In-Reply-To: <20260814051032.261320-1-dmarlin@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 69449 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1145827

---Test result---

Test Summary:
CheckPatch                    FAIL      0.57 seconds
VerifyFixes                   PASS      0.10 seconds
VerifySignedoff               PASS      0.08 seconds
GitLint                       PASS      0.21 seconds
SubjectPrefix                 PASS      0.07 seconds
BuildKernel                   FAIL      24.93 seconds
CheckAllWarning               FAIL      27.58 seconds
CheckSparse                   FAIL      26.43 seconds
BuildKernel32                 FAIL      23.99 seconds
CheckKernelLLVM               SKIP      0.00 seconds
TestRunnerSetup               FAIL      489.84 seconds
TestRunner_l2cap-tester       FAIL      0.07 seconds
TestRunner_iso-tester         FAIL      0.07 seconds
TestRunner_bnep-tester        FAIL      0.07 seconds
TestRunner_mgmt-tester        FAIL      0.08 seconds
TestRunner_rfcomm-tester      FAIL      0.07 seconds
TestRunner_sco-tester         FAIL      0.16 seconds
TestRunner_ioctl-tester       FAIL      0.07 seconds
TestRunner_mesh-tester        FAIL      0.07 seconds
TestRunner_smp-tester         FAIL      0.08 seconds
TestRunner_userchan-tester    FAIL      0.07 seconds
TestRunner_6lowpan-tester     FAIL      0.07 seconds
IncrementalBuild              FAIL      23.24 seconds

Details
##############################
Test: CheckPatch - FAIL
Desc: Run checkpatch.pl script
Output:
Bluetooth: hci-core: fix "declaration does not declare anything" error
WARNING: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
#107: 
Adding a variable name (e.g., 'num') to each of the above struct definitions

total: 0 errors, 1 warnings, 16 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

/github/workspace/src/patch/14749535.patch has style problems, please review.

NOTE: Ignored message types: UNKNOWN_COMMIT_ID

NOTE: If any of the errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.


##############################
Test: BuildKernel - FAIL
Desc: Build Kernel for Bluetooth
Output:

net/bluetooth/hci_codec.c: In function ‘hci_read_supported_codecs’:
net/bluetooth/hci_codec.c:151:2: error: aggregate value used where an integer was expected
  151 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:151:17: note: in expansion of macro ‘flex_array_size’
  151 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                 ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:151:62: error: incompatible type for argument 1 of ‘size_mul’
  151 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                    ~~~~~~~~~~^~~~~
      |                                                              |
      |                                                              struct hci_std_codecs_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
net/bluetooth/hci_codec.c:157:16: error: invalid operands to binary < (have ‘int’ and ‘struct hci_std_codecs_hdr’)
  157 |  for (i = 0; i < std_codecs->num; i++) {
      |                ^ ~~~~~~~~~~~~~~~
      |                            |
      |                            struct hci_std_codecs_hdr
net/bluetooth/hci_codec.c:164:2: error: aggregate value used where an integer was expected
  164 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~~~~~~~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:164:16: note: in expansion of macro ‘flex_array_size’
  164 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:164:61: error: incompatible type for argument 1 of ‘size_mul’
  164 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                   ~~~~~~~~~~^~~~~
      |                                                             |
      |                                                             struct hci_std_codecs_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
net/bluetooth/hci_codec.c: In function ‘hci_read_supported_codecs_v2’:
net/bluetooth/hci_codec.c:220:2: error: aggregate value used where an integer was expected
  220 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_v2_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:220:17: note: in expansion of macro ‘flex_array_size’
  220 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                 ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:220:62: error: incompatible type for argument 1 of ‘size_mul’
  220 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                    ~~~~~~~~~~^~~~~
      |                                                              |
      |                                                              struct hci_std_codecs_v2_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_v2_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
net/bluetooth/hci_codec.c:226:16: error: invalid operands to binary < (have ‘int’ and ‘struct hci_std_codecs_v2_hdr’)
  226 |  for (i = 0; i < std_codecs->num; i++) {
      |                ^ ~~~~~~~~~~~~~~~
      |                            |
      |                            struct hci_std_codecs_v2_hdr
net/bluetooth/hci_codec.c:232:2: error: aggregate value used where an integer was expected
  232 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~~~~~~~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_v2_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:232:16: note: in expansion of macro ‘flex_array_size’
  232 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:232:61: error: incompatible type for argument 1 of ‘size_mul’
  232 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                   ~~~~~~~~~~^~~~~
      |                                                             |
      |                                                             struct hci_std_codecs_v2_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_v2_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
make[4]: *** [scripts/Makefile.build:289: net/bluetooth/hci_codec.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:549: net/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:549: net] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/github/workspace/src/src/Makefile:2187: .] Error 2
make: *** [Makefile:248: __sub-make] Error 2
##############################
Test: CheckAllWarning - FAIL
Desc: Run linux kernel with all warning enabled
Output:

net/bluetooth/hci_codec.c: In function ‘hci_read_supported_codecs’:
net/bluetooth/hci_codec.c:151:2: error: aggregate value used where an integer was expected
  151 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:151:17: note: in expansion of macro ‘flex_array_size’
  151 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                 ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:151:62: error: incompatible type for argument 1 of ‘size_mul’
  151 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                    ~~~~~~~~~~^~~~~
      |                                                              |
      |                                                              struct hci_std_codecs_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
net/bluetooth/hci_codec.c:157:16: error: invalid operands to binary < (have ‘int’ and ‘struct hci_std_codecs_hdr’)
  157 |  for (i = 0; i < std_codecs->num; i++) {
      |                ^ ~~~~~~~~~~~~~~~
      |                            |
      |                            struct hci_std_codecs_hdr
net/bluetooth/hci_codec.c:164:2: error: aggregate value used where an integer was expected
  164 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~~~~~~~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:164:16: note: in expansion of macro ‘flex_array_size’
  164 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:164:61: error: incompatible type for argument 1 of ‘size_mul’
  164 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                   ~~~~~~~~~~^~~~~
      |                                                             |
      |                                                             struct hci_std_codecs_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
net/bluetooth/hci_codec.c: In function ‘hci_read_supported_codecs_v2’:
net/bluetooth/hci_codec.c:220:2: error: aggregate value used where an integer was expected
  220 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_v2_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:220:17: note: in expansion of macro ‘flex_array_size’
  220 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                 ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:220:62: error: incompatible type for argument 1 of ‘size_mul’
  220 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                    ~~~~~~~~~~^~~~~
      |                                                              |
      |                                                              struct hci_std_codecs_v2_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_v2_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
net/bluetooth/hci_codec.c:226:16: error: invalid operands to binary < (have ‘int’ and ‘struct hci_std_codecs_v2_hdr’)
  226 |  for (i = 0; i < std_codecs->num; i++) {
      |                ^ ~~~~~~~~~~~~~~~
      |                            |
      |                            struct hci_std_codecs_v2_hdr
net/bluetooth/hci_codec.c:232:2: error: aggregate value used where an integer was expected
  232 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~~~~~~~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_v2_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:232:16: note: in expansion of macro ‘flex_array_size’
  232 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:232:61: error: incompatible type for argument 1 of ‘size_mul’
  232 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                   ~~~~~~~~~~^~~~~
      |                                                             |
      |                                                             struct hci_std_codecs_v2_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_v2_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
make[4]: *** [scripts/Makefile.build:289: net/bluetooth/hci_codec.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:549: net/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:549: net] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/github/workspace/src/src/Makefile:2187: .] Error 2
make: *** [Makefile:248: __sub-make] Error 2
##############################
Test: CheckSparse - FAIL
Desc: Run sparse tool with linux kernel
Output:

/github/workspace/src/src/Makefile:1283: C=1 specified, but sparse is not available or not up to date
/github/workspace/src/src/Makefile:1283: C=1 specified, but sparse is not available or not up to date
net/bluetooth/hci_codec.c: In function ‘hci_read_supported_codecs’:
net/bluetooth/hci_codec.c:151:2: error: aggregate value used where an integer was expected
  151 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:151:17: note: in expansion of macro ‘flex_array_size’
  151 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                 ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:151:62: error: incompatible type for argument 1 of ‘size_mul’
  151 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                    ~~~~~~~~~~^~~~~
      |                                                              |
      |                                                              struct hci_std_codecs_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
net/bluetooth/hci_codec.c:157:16: error: invalid operands to binary < (have ‘int’ and ‘struct hci_std_codecs_hdr’)
  157 |  for (i = 0; i < std_codecs->num; i++) {
      |                ^ ~~~~~~~~~~~~~~~
      |                            |
      |                            struct hci_std_codecs_hdr
net/bluetooth/hci_codec.c:164:2: error: aggregate value used where an integer was expected
  164 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~~~~~~~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:164:16: note: in expansion of macro ‘flex_array_size’
  164 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:164:61: error: incompatible type for argument 1 of ‘size_mul’
  164 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                   ~~~~~~~~~~^~~~~
      |                                                             |
      |                                                             struct hci_std_codecs_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
net/bluetooth/hci_codec.c: In function ‘hci_read_supported_codecs_v2’:
net/bluetooth/hci_codec.c:220:2: error: aggregate value used where an integer was expected
  220 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_v2_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:220:17: note: in expansion of macro ‘flex_array_size’
  220 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                 ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:220:62: error: incompatible type for argument 1 of ‘size_mul’
  220 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                    ~~~~~~~~~~^~~~~
      |                                                              |
      |                                                              struct hci_std_codecs_v2_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_v2_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
net/bluetooth/hci_codec.c:226:16: error: invalid operands to binary < (have ‘int’ and ‘struct hci_std_codecs_v2_hdr’)
  226 |  for (i = 0; i < std_codecs->num; i++) {
      |                ^ ~~~~~~~~~~~~~~~
      |                            |
      |                            struct hci_std_codecs_v2_hdr
net/bluetooth/hci_codec.c:232:2: error: aggregate value used where an integer was expected
  232 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~~~~~~~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_v2_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:232:16: note: in expansion of macro ‘flex_array_size’
  232 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:232:61: error: incompatible type for argument 1 of ‘size_mul’
  232 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                   ~~~~~~~~~~^~~~~
      |                                                             |
      |                                                             struct hci_std_codecs_v2_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_v2_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
make[4]: *** [scripts/Makefile.build:289: net/bluetooth/hci_codec.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:549: net/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:549: net] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/github/workspace/src/src/Makefile:2187: .] Error 2
make: *** [Makefile:248: __sub-make] Error 2
##############################
Test: BuildKernel32 - FAIL
Desc: Build 32bit Kernel for Bluetooth
Output:

net/bluetooth/hci_codec.c: In function ‘hci_read_supported_codecs’:
net/bluetooth/hci_codec.c:151:2: error: aggregate value used where an integer was expected
  151 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_hdr’ and ‘unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:151:17: note: in expansion of macro ‘flex_array_size’
  151 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                 ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:151:62: error: incompatible type for argument 1 of ‘size_mul’
  151 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                    ~~~~~~~~~~^~~~~
      |                                                              |
      |                                                              struct hci_std_codecs_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘unsigned int’} but argument is of type ‘struct hci_std_codecs_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
net/bluetooth/hci_codec.c:157:16: error: invalid operands to binary < (have ‘int’ and ‘struct hci_std_codecs_hdr’)
  157 |  for (i = 0; i < std_codecs->num; i++) {
      |                ^ ~~~~~~~~~~~~~~~
      |                            |
      |                            struct hci_std_codecs_hdr
net/bluetooth/hci_codec.c:164:2: error: aggregate value used where an integer was expected
  164 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~~~~~~~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_hdr’ and ‘unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:164:16: note: in expansion of macro ‘flex_array_size’
  164 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:164:61: error: incompatible type for argument 1 of ‘size_mul’
  164 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                   ~~~~~~~~~~^~~~~
      |                                                             |
      |                                                             struct hci_std_codecs_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘unsigned int’} but argument is of type ‘struct hci_std_codecs_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
net/bluetooth/hci_codec.c: In function ‘hci_read_supported_codecs_v2’:
net/bluetooth/hci_codec.c:220:2: error: aggregate value used where an integer was expected
  220 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_v2_hdr’ and ‘unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:220:17: note: in expansion of macro ‘flex_array_size’
  220 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                 ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:220:62: error: incompatible type for argument 1 of ‘size_mul’
  220 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                    ~~~~~~~~~~^~~~~
      |                                                              |
      |                                                              struct hci_std_codecs_v2_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘unsigned int’} but argument is of type ‘struct hci_std_codecs_v2_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
net/bluetooth/hci_codec.c:226:16: error: invalid operands to binary < (have ‘int’ and ‘struct hci_std_codecs_v2_hdr’)
  226 |  for (i = 0; i < std_codecs->num; i++) {
      |                ^ ~~~~~~~~~~~~~~~
      |                            |
      |                            struct hci_std_codecs_v2_hdr
net/bluetooth/hci_codec.c:232:2: error: aggregate value used where an integer was expected
  232 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~~~~~~~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_v2_hdr’ and ‘unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:232:16: note: in expansion of macro ‘flex_array_size’
  232 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:232:61: error: incompatible type for argument 1 of ‘size_mul’
  232 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                   ~~~~~~~~~~^~~~~
      |                                                             |
      |                                                             struct hci_std_codecs_v2_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘unsigned int’} but argument is of type ‘struct hci_std_codecs_v2_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
make[4]: *** [scripts/Makefile.build:289: net/bluetooth/hci_codec.o] Error 1
make[3]: *** [scripts/Makefile.build:549: net/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:549: net] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/github/workspace/src/src/Makefile:2187: .] Error 2
make: *** [Makefile:248: __sub-make] Error 2
##############################
Test: CheckKernelLLVM - SKIP
Desc: Build kernel with LLVM + context analysis
Output:
Clang not found
##############################
Test: TestRunnerSetup - FAIL
Desc: Setup kernel and bluez for test-runner
Output:
Kernel: 
net/bluetooth/hci_codec.c: In function ‘hci_read_supported_codecs’:
net/bluetooth/hci_codec.c:151:2: error: aggregate value used where an integer was expected
  151 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:151:17: note: in expansion of macro ‘flex_array_size’
  151 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                 ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:151:62: error: incompatible type for argument 1 of ‘size_mul’
  151 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                    ~~~~~~~~~~^~~~~
      |                                                              |
      |                                                              struct hci_std_codecs_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
net/bluetooth/hci_codec.c:157:16: error: invalid operands to binary < (have ‘int’ and ‘struct hci_std_codecs_hdr’)
  157 |  for (i = 0; i < std_codecs->num; i++) {
      |                ^ ~~~~~~~~~~~~~~~
      |                            |
      |                            struct hci_std_codecs_hdr
net/bluetooth/hci_codec.c:164:2: error: aggregate value used where an integer was expected
  164 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~~~~~~~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:164:16: note: in expansion of macro ‘flex_array_size’
  164 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:164:61: error: incompatible type for argument 1 of ‘size_mul’
  164 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                   ~~~~~~~~~~^~~~~
      |                                                             |
      |                                                             struct hci_std_codecs_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
net/bluetooth/hci_codec.c: In function ‘hci_read_supported_codecs_v2’:
net/bluetooth/hci_codec.c:220:2: error: aggregate value used where an integer was expected
  220 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_v2_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:220:17: note: in expansion of macro ‘flex_array_size’
  220 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                 ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:220:62: error: incompatible type for argument 1 of ‘size_mul’
  220 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                    ~~~~~~~~~~^~~~~
      |                                                              |
      |                                                              struct hci_std_codecs_v2_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_v2_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
net/bluetooth/hci_codec.c:226:16: error: invalid operands to binary < (have ‘int’ and ‘struct hci_std_codecs_v2_hdr’)
  226 |  for (i = 0; i < std_codecs->num; i++) {
      |                ^ ~~~~~~~~~~~~~~~
      |                            |
      |                            struct hci_std_codecs_v2_hdr
net/bluetooth/hci_codec.c:232:2: error: aggregate value used where an integer was expected
  232 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~~~~~~~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_v2_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:232:16: note: in expansion of macro ‘flex_array_size’
  232 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:232:61: error: incompatible type for argument 1 of ‘size_mul’
  232 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                   ~~~~~~~~~~^~~~~
      |                                                             |
      |                                                             struct hci_std_codecs_v2_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_v2_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
make[4]: *** [scripts/Makefile.build:289: net/bluetooth/hci_codec.o] Error 1
make[3]: *** [scripts/Makefile.build:549: net/bluetooth] Error 2
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:549: net] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/github/workspace/src/src/Makefile:2187: .] Error 2
make: *** [Makefile:248: __sub-make] Error 2
##############################
Test: TestRunner_l2cap-tester - FAIL
Desc: Run l2cap-tester with test-runner
Output:

No kernel image found
##############################
Test: TestRunner_iso-tester - FAIL
Desc: Run iso-tester with test-runner
Output:

No kernel image found
##############################
Test: TestRunner_bnep-tester - FAIL
Desc: Run bnep-tester with test-runner
Output:

No kernel image found
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner
Output:

No kernel image found
##############################
Test: TestRunner_rfcomm-tester - FAIL
Desc: Run rfcomm-tester with test-runner
Output:

No kernel image found
##############################
Test: TestRunner_sco-tester - FAIL
Desc: Run sco-tester with test-runner
Output:

No kernel image found
##############################
Test: TestRunner_ioctl-tester - FAIL
Desc: Run ioctl-tester with test-runner
Output:

No kernel image found
##############################
Test: TestRunner_mesh-tester - FAIL
Desc: Run mesh-tester with test-runner
Output:

No kernel image found
##############################
Test: TestRunner_smp-tester - FAIL
Desc: Run smp-tester with test-runner
Output:

No kernel image found
##############################
Test: TestRunner_userchan-tester - FAIL
Desc: Run userchan-tester with test-runner
Output:

No kernel image found
##############################
Test: TestRunner_6lowpan-tester - FAIL
Desc: Run 6lowpan-tester with test-runner
Output:

No kernel image found
##############################
Test: IncrementalBuild - FAIL
Desc: Incremental build with the patches in the series
Output:

net/bluetooth/hci_codec.c: In function ‘hci_read_supported_codecs’:
net/bluetooth/hci_codec.c:151:2: error: aggregate value used where an integer was expected
  151 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:151:17: note: in expansion of macro ‘flex_array_size’
  151 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                 ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:151:62: error: incompatible type for argument 1 of ‘size_mul’
  151 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                    ~~~~~~~~~~^~~~~
      |                                                              |
      |                                                              struct hci_std_codecs_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
net/bluetooth/hci_codec.c:157:16: error: invalid operands to binary < (have ‘int’ and ‘struct hci_std_codecs_hdr’)
  157 |  for (i = 0; i < std_codecs->num; i++) {
      |                ^ ~~~~~~~~~~~~~~~
      |                            |
      |                            struct hci_std_codecs_hdr
net/bluetooth/hci_codec.c:164:2: error: aggregate value used where an integer was expected
  164 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~~~~~~~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:164:16: note: in expansion of macro ‘flex_array_size’
  164 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:164:61: error: incompatible type for argument 1 of ‘size_mul’
  164 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                   ~~~~~~~~~~^~~~~
      |                                                             |
      |                                                             struct hci_std_codecs_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
net/bluetooth/hci_codec.c: In function ‘hci_read_supported_codecs_v2’:
net/bluetooth/hci_codec.c:220:2: error: aggregate value used where an integer was expected
  220 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_v2_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:220:17: note: in expansion of macro ‘flex_array_size’
  220 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                 ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:220:62: error: incompatible type for argument 1 of ‘size_mul’
  220 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                    ~~~~~~~~~~^~~~~
      |                                                              |
      |                                                              struct hci_std_codecs_v2_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_v2_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
net/bluetooth/hci_codec.c:226:16: error: invalid operands to binary < (have ‘int’ and ‘struct hci_std_codecs_v2_hdr’)
  226 |  for (i = 0; i < std_codecs->num; i++) {
      |                ^ ~~~~~~~~~~~~~~~
      |                            |
      |                            struct hci_std_codecs_v2_hdr
net/bluetooth/hci_codec.c:232:2: error: aggregate value used where an integer was expected
  232 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~~~~~~~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_v2_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:232:16: note: in expansion of macro ‘flex_array_size’
  232 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:232:61: error: incompatible type for argument 1 of ‘size_mul’
  232 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                   ~~~~~~~~~~^~~~~
      |                                                             |
      |                                                             struct hci_std_codecs_v2_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_v2_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
make[4]: *** [scripts/Makefile.build:289: net/bluetooth/hci_codec.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:549: net/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:549: net] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/github/workspace/src/src/Makefile:2187: .] Error 2
make: *** [Makefile:248: __sub-make] Error 2
Bluetooth: hci-core: fix "declaration does not declare anything" error

net/bluetooth/hci_codec.c: In function ‘hci_read_supported_codecs’:
net/bluetooth/hci_codec.c:151:2: error: aggregate value used where an integer was expected
  151 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:151:17: note: in expansion of macro ‘flex_array_size’
  151 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                 ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:151:62: error: incompatible type for argument 1 of ‘size_mul’
  151 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                    ~~~~~~~~~~^~~~~
      |                                                              |
      |                                                              struct hci_std_codecs_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
net/bluetooth/hci_codec.c:157:16: error: invalid operands to binary < (have ‘int’ and ‘struct hci_std_codecs_hdr’)
  157 |  for (i = 0; i < std_codecs->num; i++) {
      |                ^ ~~~~~~~~~~~~~~~
      |                            |
      |                            struct hci_std_codecs_hdr
net/bluetooth/hci_codec.c:164:2: error: aggregate value used where an integer was expected
  164 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~~~~~~~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:164:16: note: in expansion of macro ‘flex_array_size’
  164 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:164:61: error: incompatible type for argument 1 of ‘size_mul’
  164 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                   ~~~~~~~~~~^~~~~
      |                                                             |
      |                                                             struct hci_std_codecs_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
net/bluetooth/hci_codec.c: In function ‘hci_read_supported_codecs_v2’:
net/bluetooth/hci_codec.c:220:2: error: aggregate value used where an integer was expected
  220 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_v2_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:220:17: note: in expansion of macro ‘flex_array_size’
  220 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                 ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:220:62: error: incompatible type for argument 1 of ‘size_mul’
  220 |  if (skb->len < flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                    ~~~~~~~~~~^~~~~
      |                                                              |
      |                                                              struct hci_std_codecs_v2_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_v2_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
net/bluetooth/hci_codec.c:226:16: error: invalid operands to binary < (have ‘int’ and ‘struct hci_std_codecs_v2_hdr’)
  226 |  for (i = 0; i < std_codecs->num; i++) {
      |                ^ ~~~~~~~~~~~~~~~
      |                            |
      |                            struct hci_std_codecs_v2_hdr
net/bluetooth/hci_codec.c:232:2: error: aggregate value used where an integer was expected
  232 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |  ^~~~~~~~
In file included from ./include/linux/bits.h:32,
                 from ./include/linux/ratelimit_types.h:5,
                 from ./include/linux/printk.h:9,
                 from ./include/asm-generic/bug.h:31,
                 from ./arch/x86/include/asm/bug.h:195,
                 from ./include/linux/ktime.h:24,
                 from ./include/linux/poll.h:7,
                 from ./include/net/bluetooth/bluetooth.h:26,
                 from net/bluetooth/hci_codec.c:5:
./include/linux/overflow.h:420:11: error: invalid operands to binary * (have ‘struct hci_std_codecs_v2_hdr’ and ‘long unsigned int’)
  420 |   (count) * sizeof(*(p)->member) + __must_be_array((p)->member), \
      |   ~~~~~~~ ^
net/bluetooth/hci_codec.c:232:16: note: in expansion of macro ‘flex_array_size’
  232 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                ^~~~~~~~~~~~~~~
net/bluetooth/hci_codec.c:232:61: error: incompatible type for argument 1 of ‘size_mul’
  232 |  skb_pull(skb, flex_array_size(std_codecs, codec, std_codecs->num)
      |                                                   ~~~~~~~~~~^~~~~
      |                                                             |
      |                                                             struct hci_std_codecs_v2_hdr
./include/linux/overflow.h:421:12: note: in definition of macro ‘flex_array_size’
  421 |   size_mul(count, sizeof(*(p)->member) + __must_be_array((p)->member)))
      |            ^~~~~
./include/linux/overflow.h:330:60: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘struct hci_std_codecs_v2_hdr’
  330 | static __always_inline size_t __must_check size_mul(size_t factor1, size_t factor2)
      |                                                     ~~~~~~~^~~~~~~
make[4]: *** [scripts/Makefile.build:289: net/bluetooth/hci_codec.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:549: net/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:549: net] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/github/workspace/src/src/Makefile:2187: .] Error 2
make: *** [Makefile:248: __sub-make] Error 2


https://github.com/bluez/bluetooth-next/pull/578

---
Regards,
Linux Bluetooth


      reply	other threads:[~2026-08-14  5:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-14  5:10 [PATCH] Bluetooth: hci-core: fix "declaration does not declare anything" error David Marlin
2026-08-14  5:46 ` bluez.test.bot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6a7eabd1.e5907290.1ecfbe.50a6@mx.google.com \
    --to=bluez.test.bot@gmail.com \
    --cc=dmarlin@redhat.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox