[linux-next:master 5187/6333] arch/alpha/include/asm/string.h:22:16: warning: '__builtin_memcpy' offset [0, 2] is out of the bounds [0, 0]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: alpha-randconfig-r011-20220512 (https://download.01.org/0day-ci/archive/20230919/202309191804.VDlimbHj-lkp@xxxxxxxxx/config)
compiler: alpha-linux-gcc (GCC) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230919/202309191804.VDlimbHj-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309191804.VDlimbHj-lkp@xxxxxxxxx/

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/alpha/include/asm/string.h:22:16: warning: '__builtin_memcpy' offset [0, 2] is out of the bounds [0, 0] [-Warray-bounds]
      22 | #define memcpy __builtin_memcpy
   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 +22 arch/alpha/include/asm/string.h

^1da177e4c3f41 include/asm-alpha/string.h Linus Torvalds 2005-04-16  21  
^1da177e4c3f41 include/asm-alpha/string.h Linus Torvalds 2005-04-16 @22  #define memcpy __builtin_memcpy
^1da177e4c3f41 include/asm-alpha/string.h Linus Torvalds 2005-04-16  23  

:::::: The code at line 22 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux