* [PATCH] Bluetooth: hci-core: fix "declaration does not declare anything" error
@ 2026-08-14 5:10 David Marlin
2026-08-14 5:46 ` bluez.test.bot
0 siblings, 1 reply; 2+ messages in thread
From: David Marlin @ 2026-08-14 5:10 UTC (permalink / raw)
To: linux-bluetooth, Luiz Augusto von Dentz
Cc: Gustavo A . R . Silva, David Marlin, Bastien Nocera
A recent build attempt, using gcc-14.4 on RHEL-10, produced the
following errors:
In file included from ./include/net/bluetooth/hci_core.h:35,
from net/bluetooth/hci_core.c:39:
./include/net/bluetooth/hci.h:1476:34: error: declaration does not
declare anything [-Werror]
1476 | struct hci_std_codecs_hdr;
| ^
./include/net/bluetooth/hci.h:1477:17: error: flexible array member in a
struct with no named members
1477 | __u8 codec[];
| ^~~~~
./include/net/bluetooth/hci.h:1516:37: error: declaration does not
declare anything [-Werror]
1516 | struct hci_std_codecs_v2_hdr;
| ^
./include/net/bluetooth/hci.h:1517:33: error: flexible array member in a
struct with no named members
1517 | struct hci_std_codec_v2 codec[];
| ^~~~~
cc1: all warnings being treated as errors
Adding a variable name (e.g., 'num') to each of the above struct definitions
avoids the error without changing the layout of the struct.
Fixes: a0cff16d0f6e ("Bluetooth: hci.h: Avoid a couple -Wflex-array-member-not-at-end warnings")
Reviewed-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: David Marlin <dmarlin@redhat.com>
---
include/net/bluetooth/hci.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index 1641d879dbda..5ccc4545e380 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -1472,7 +1472,7 @@ struct hci_std_codecs_hdr {
} __packed;
struct hci_std_codecs {
- struct hci_std_codecs_hdr;
+ struct hci_std_codecs_hdr num;
__u8 codec[];
} __packed;
@@ -1512,7 +1512,7 @@ struct hci_std_codecs_v2_hdr {
} __packed;
struct hci_std_codecs_v2 {
- struct hci_std_codecs_v2_hdr;
+ struct hci_std_codecs_v2_hdr num;
struct hci_std_codec_v2 codec[];
} __packed;
--
2.55.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: Bluetooth: hci-core: fix "declaration does not declare anything" error
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
0 siblings, 0 replies; 2+ messages in thread
From: bluez.test.bot @ 2026-08-14 5:46 UTC (permalink / raw)
To: linux-bluetooth, dmarlin
[-- 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-14 5:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox