From: kernel test robot <lkp@intel.com>
To: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>,
marcel@holtmann.org, luiz.dentz@gmail.com
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org,
amitkumar.karwar@nxp.com, sherry.sun@nxp.com,
dmitrii.lebed@nxp.com, neeraj.sanjaykale@nxp.com
Subject: Re: [PATCH v1 07/11] Bluetooth: btnxpuart: Add device authentication
Date: Sat, 22 Nov 2025 19:03:40 +0800 [thread overview]
Message-ID: <202511221835.jzKFsvPM-lkp@intel.com> (raw)
In-Reply-To: <20251118142025.1982263-8-neeraj.sanjaykale@nxp.com>
Hi Neeraj,
kernel test robot noticed the following build warnings:
[auto build test WARNING on bluetooth/master]
[also build test WARNING on bluetooth-next/master linus/master v6.18-rc6 next-20251121]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Neeraj-Sanjay-Kale/Bluetooth-btnxpuart-Add-firmware-metadata-parsing-for-secure-interface/20251118-223605
base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth.git master
patch link: https://lore.kernel.org/r/20251118142025.1982263-8-neeraj.sanjaykale%40nxp.com
patch subject: [PATCH v1 07/11] Bluetooth: btnxpuart: Add device authentication
config: arm-randconfig-001-20251122 (https://download.01.org/0day-ci/archive/20251122/202511221835.jzKFsvPM-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9e9fe08b16ea2c4d9867fb4974edf2a3776d6ece)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251122/202511221835.jzKFsvPM-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511221835.jzKFsvPM-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/bluetooth/btnxpuart.c:459:29: warning: field host_hello within 'struct nxp_tls_host_hello_payload::(anonymous at drivers/bluetooth/btnxpuart.c:457:2)' is less aligned than 'struct nxp_tls_host_hello' and is usually due to 'struct nxp_tls_host_hello_payload::(anonymous at drivers/bluetooth/btnxpuart.c:457:2)' being packed, which can lead to unaligned accesses [-Wunaligned-access]
459 | struct nxp_tls_host_hello host_hello;
| ^
>> drivers/bluetooth/btnxpuart.c:513:32: warning: field host_finished within 'struct nxp_tls_host_finished_payload::(anonymous at drivers/bluetooth/btnxpuart.c:511:2)' is less aligned than 'struct nxp_tls_host_finished' and is usually due to 'struct nxp_tls_host_finished_payload::(anonymous at drivers/bluetooth/btnxpuart.c:511:2)' being packed, which can lead to unaligned accesses [-Wunaligned-access]
513 | struct nxp_tls_host_finished host_finished;
| ^
2 warnings generated.
vim +513 drivers/bluetooth/btnxpuart.c
455
456 union nxp_tls_host_hello_payload {
457 struct {
458 u8 msg_type;
> 459 struct nxp_tls_host_hello host_hello;
460 } __packed;
461 u8 buf[113];
462 };
463
464 struct nxp_tls_device_info {
465 __le16 chip_id;
466 __le16 device_flags;
467 u8 reserved[4];
468 u8 uuid[NXP_DEVICE_UUID_LEN];
469 };
470
471 struct nxp_tls_signature {
472 u8 sig[64]; /* P-256 ECDSA signature, two points */
473 };
474
475 struct nxp_tls_finished {
476 u8 verify_data[32];
477 };
478
479 struct nxp_tls_device_hello {
480 struct nxp_tls_message_hdr hdr;
481 __le32 reserved;
482 u8 random[32];
483 u8 pubkey[NXP_TLS_ECDH_PUBLIC_KEY_SIZE];
484 /* Encrypted portion */
485 struct {
486 struct nxp_tls_device_info device_info;
487 struct nxp_tls_signature device_handshake_sig; /* TLS Certificate Verify */
488 struct nxp_tls_finished device_finished;
489 } enc;
490 u8 auth_tag[NXP_ENC_AUTH_TAG_SIZE]; /* Auth tag for the encrypted portion */
491 };
492
493 struct nxp_tls_data_add {
494 u8 version; /* NXP_TLS_VERSION */
495 u8 reserved[5]; /* zeroes */
496 __le16 len;
497 };
498
499 struct nxp_tls_host_finished {
500 struct nxp_tls_message_hdr hdr;
501 __le32 reserved;
502 /* Encrypted portion */
503 struct {
504 struct nxp_tls_signature reserved2;
505 struct nxp_tls_finished host_finished;
506 } enc;
507 u8 auth_tag[NXP_ENC_AUTH_TAG_SIZE]; /* Auth tag for the encrypted portion */
508 };
509
510 union nxp_tls_host_finished_payload {
511 struct {
512 u8 msg_type;
> 513 struct nxp_tls_host_finished host_finished;
514 } __packed;
515 u8 buf[125];
516 };
517
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
parent reply other threads:[~2025-11-22 11:04 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20251118142025.1982263-8-neeraj.sanjaykale@nxp.com>]
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=202511221835.jzKFsvPM-lkp@intel.com \
--to=lkp@intel.com \
--cc=amitkumar.karwar@nxp.com \
--cc=dmitrii.lebed@nxp.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=luiz.dentz@gmail.com \
--cc=marcel@holtmann.org \
--cc=neeraj.sanjaykale@nxp.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sherry.sun@nxp.com \
/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;
as well as URLs for NNTP newsgroup(s).