From: kernel test robot <lkp@intel.com>
To: "Andreas Kemnade" <andreas@kemnade.info>,
marcel@holtmann.org, luiz.dentz@gmail.com, johan@kernel.org,
gregkh@linuxfoundation.org, jirislaby@kernel.org,
pmenzel@molgen.mpg.de, linux-kernel@vger.kernel.org,
linux-bluetooth@vger.kernel.org, "Adam Ford" <aford173@gmail.com>,
"Tony Lindgren" <tony@atomide.com>,
tomi.valkeinen@ideasonboard.com,
"Péter Ujfalusi" <peter.ujfalusi@gmail.com>,
robh@kernel.org, hns@goldelico.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH v3 3/4] gnss: Add driver for AI2 protocol
Date: Tue, 4 Jun 2024 08:46:28 +0800 [thread overview]
Message-ID: <202406040854.fSEvlFam-lkp@intel.com> (raw)
In-Reply-To: <20240603144400.2195564-4-andreas@kemnade.info>
Hi Andreas,
kernel test robot noticed the following build errors:
[auto build test ERROR on bluetooth/master]
[also build test ERROR on bluetooth-next/master char-misc/char-misc-testing char-misc/char-misc-next char-misc/char-misc-linus linus/master v6.10-rc2 next-20240603]
[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/Andreas-Kemnade/gnss-Add-AI2-protocol-used-by-some-TI-combo-chips/20240603-224753
base: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth.git master
patch link: https://lore.kernel.org/r/20240603144400.2195564-4-andreas%40kemnade.info
patch subject: [PATCH v3 3/4] gnss: Add driver for AI2 protocol
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20240604/202406040854.fSEvlFam-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240604/202406040854.fSEvlFam-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/202406040854.fSEvlFam-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/gnss/ai2.c: In function 'process_ai2_frame':
>> drivers/gnss/ai2.c:340:13: error: implicit declaration of function 'get_unaligned_le16' [-Werror=implicit-function-declaration]
340 | if (get_unaligned_le16(data + i) != sum) {
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/get_unaligned_le16 +340 drivers/gnss/ai2.c
324
325 /* do some sanity checks and split frame into packets */
326 static void process_ai2_frame(struct ai2_device *ai2dev)
327 {
328 u16 sum;
329 int i;
330 u8 *head;
331 u8 *data;
332
333 sum = 0;
334 data = ai2dev->recv_skb->data;
335 for (i = 0; i < ai2dev->recv_skb->len - 2; i++)
336 sum += data[i];
337
338 print_hex_dump_bytes("ai2 frame: ", DUMP_PREFIX_OFFSET, data, ai2dev->recv_skb->len);
339
> 340 if (get_unaligned_le16(data + i) != sum) {
341 dev_dbg(ai2dev->dev,
342 "checksum error in reception, dropping frame\n");
343 return;
344 }
345
346 /* reached if byte 1 in the command packet is set to 1 */
347 if (data[1] == AI2_ACK)
348 return;
349
350 head = skb_pull(ai2dev->recv_skb, 2); /* drop frame start marker */
351 while (head && (ai2dev->recv_skb->len >= 3)) {
352 u8 cmd;
353 u16 pktlen;
354
355 cmd = head[0];
356 pktlen = get_unaligned_le16(head + 1);
357 data = skb_pull(ai2dev->recv_skb, 3);
358 if (!data)
359 break;
360
361 if (pktlen > ai2dev->recv_skb->len)
362 break;
363
364 head = skb_pull(ai2dev->recv_skb, pktlen);
365
366 process_ai2_packet(ai2dev, cmd, data, pktlen);
367 }
368 }
369
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-06-04 0:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-03 14:43 [PATCH v3 0/4] bluetooth/gnss: GNSS support for TiWi chips Andreas Kemnade
2024-06-03 14:43 ` [PATCH v3 1/4] gnss: Add AI2 protocol used by some TI combo chips Andreas Kemnade
2024-06-03 15:34 ` bluetooth/gnss: GNSS support for TiWi chips bluez.test.bot
2024-06-03 14:43 ` [PATCH v3 2/4] Bluetooth: ti-st: Add GNSS subdevice for TI Wilink chips Andreas Kemnade
2024-06-03 14:43 ` [PATCH v3 3/4] gnss: Add driver for AI2 protocol Andreas Kemnade
2024-06-04 0:46 ` kernel test robot [this message]
2024-06-04 11:29 ` kernel test robot
2024-06-03 14:44 ` [PATCH RFC v3 4/4] gnss: ai2: replace long sleeps by wait for acks Andreas Kemnade
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=202406040854.fSEvlFam-lkp@intel.com \
--to=lkp@intel.com \
--cc=aford173@gmail.com \
--cc=andreas@kemnade.info \
--cc=gregkh@linuxfoundation.org \
--cc=hns@goldelico.com \
--cc=jirislaby@kernel.org \
--cc=johan@kernel.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=marcel@holtmann.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=peter.ujfalusi@gmail.com \
--cc=pmenzel@molgen.mpg.de \
--cc=robh@kernel.org \
--cc=tomi.valkeinen@ideasonboard.com \
--cc=tony@atomide.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.