* [linux-next:master 5187/6333] arch/m68k/include/asm/string.h:53:25: warning: '__builtin_memcpy' offset [0, 2] is out of the bounds [0, 0]
@ 2023-09-19 11:38 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-09-19 11:38 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: oe-kbuild-all, Linux Memory Management List
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 29e400e3ea486bf942b214769fc9778098114113
commit: 0e2bdaccb10a440a7a451343e8347d29a874b58e [5187/6333] Bluetooth: hci_core: Fix build warnings
config: m68k-buildonly-randconfig-r002-20210930 (https://download.01.org/0day-ci/archive/20230919/202309191933.2FJx5yys-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230919/202309191933.2FJx5yys-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/202309191933.2FJx5yys-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/string.h:20,
from include/linux/bitmap.h:11,
from include/linux/cpumask.h:12,
from include/linux/smp.h:13,
from include/linux/lockdep.h:14,
from include/linux/spinlock.h:63,
from include/linux/wait.h:9,
from include/linux/poll.h:8,
from include/net/bluetooth/bluetooth.h:29,
from net/bluetooth/hci_event.c:30:
In function 'hci_cc_read_class_of_dev',
inlined from 'hci_cc_read_class_of_dev' at net/bluetooth/hci_event.c:511:11:
>> arch/m68k/include/asm/string.h:53:25: warning: '__builtin_memcpy' offset [0, 2] is out of the bounds [0, 0] [-Warray-bounds]
53 | #define memcpy(d, s, n) __builtin_memcpy(d, s, n)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
net/bluetooth/hci_event.c:521:9: note: in expansion of macro 'memcpy'
521 | memcpy(hdev->dev_class, rp->dev_class, 3);
| ^~~~~~
vim +/__builtin_memcpy +53 arch/m68k/include/asm/string.h
ea61bc461d09e8 Greg Ungerer 2010-09-07 50
ea61bc461d09e8 Greg Ungerer 2010-09-07 51 #define __HAVE_ARCH_MEMCPY
ea61bc461d09e8 Greg Ungerer 2010-09-07 52 extern void *memcpy(void *, const void *, __kernel_size_t);
ea61bc461d09e8 Greg Ungerer 2010-09-07 @53 #define memcpy(d, s, n) __builtin_memcpy(d, s, n)
ea61bc461d09e8 Greg Ungerer 2010-09-07 54
:::::: The code at line 53 was first introduced by commit
:::::: ea61bc461d09e8d331a307916530aaae808c72a2 m68k/m68knommu: merge MMU and non-MMU string.h
:::::: TO: Greg Ungerer <gerg@snapgear.com>
:::::: CC: Geert Uytterhoeven <geert@linux-m68k.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-next:master 5187/6333] arch/m68k/include/asm/string.h:53:25: warning: '__builtin_memcpy' offset [0, 2] is out of the bounds [0, 0]
@ 2024-07-31 14:55 Christopher Kerr
0 siblings, 0 replies; 2+ messages in thread
From: Christopher Kerr @ 2024-07-31 14:55 UTC (permalink / raw)
To: lkp; +Cc: linux-mm, luiz.von.dentz, oe-kbuild-all
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: Type: text/html, Size: 75 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-07-31 14:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-19 11:38 [linux-next:master 5187/6333] arch/m68k/include/asm/string.h:53:25: warning: '__builtin_memcpy' offset [0, 2] is out of the bounds [0, 0] kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2024-07-31 14:55 Christopher Kerr
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).