linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [deller-parisc:for-next 5/6] arch/parisc/include/asm/bitops.h:20:2: error: #error "Please use 'ARCH=parisc64' to build the 64-bit kernel."
@ 2022-02-14 13:25 kernel test robot
  2022-02-14 15:06 ` Helge Deller
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2022-02-14 13:25 UTC (permalink / raw)
  To: Helge Deller; +Cc: kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git for-next
head:   dbd0b42350d5717786cb8257fbe5b528f3af9772
commit: b160628e9ebcdc85d0db9d7f423c26b3c7c179d0 [5/6] parisc: Show error if wrong 32/64-bit compiler is being used
config: parisc-randconfig-r004-20220213 (https://download.01.org/0day-ci/archive/20220214/202202142139.fHrrv9Oy-lkp@intel.com/config)
compiler: hppa64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git/commit/?id=b160628e9ebcdc85d0db9d7f423c26b3c7c179d0
        git remote add deller-parisc https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git
        git fetch --no-tags deller-parisc for-next
        git checkout b160628e9ebcdc85d0db9d7f423c26b3c7c179d0
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=parisc prepare

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from include/linux/bitops.h:33,
                    from include/linux/kernel.h:22,
                    from arch/parisc/include/asm/bug.h:5,
                    from include/linux/bug.h:5,
                    from include/linux/page-flags.h:10,
                    from kernel/bounds.c:10:
>> arch/parisc/include/asm/bitops.h:20:2: error: #error "Please use 'ARCH=parisc64' to build the 64-bit kernel."
      20 | #error "Please use 'ARCH=parisc64' to build the 64-bit kernel."
         |  ^~~~~
   In file included from arch/parisc/include/asm/bitops.h:209,
                    from include/linux/bitops.h:33,
                    from include/linux/kernel.h:22,
                    from arch/parisc/include/asm/bug.h:5,
                    from include/linux/bug.h:5,
                    from include/linux/page-flags.h:10,
                    from kernel/bounds.c:10:
   include/asm-generic/bitops/__fls.h: In function '__fls':
   include/asm-generic/bitops/__fls.h:18:28: warning: left shift count >= width of type [-Wshift-count-overflow]
      18 |         if (!(word & (~0ul << 32))) {
         |                            ^~
   include/asm-generic/bitops/__fls.h:20:22: warning: left shift count >= width of type [-Wshift-count-overflow]
      20 |                 word <<= 32;
         |                      ^~~
   include/asm-generic/bitops/__fls.h:23:28: warning: left shift count >= width of type [-Wshift-count-overflow]
      23 |         if (!(word & (~0ul << (BITS_PER_LONG-16)))) {
         |                            ^~
   include/asm-generic/bitops/__fls.h:27:28: warning: left shift count >= width of type [-Wshift-count-overflow]
      27 |         if (!(word & (~0ul << (BITS_PER_LONG-8)))) {
         |                            ^~
   include/asm-generic/bitops/__fls.h:31:28: warning: left shift count >= width of type [-Wshift-count-overflow]
      31 |         if (!(word & (~0ul << (BITS_PER_LONG-4)))) {
         |                            ^~
   include/asm-generic/bitops/__fls.h:35:28: warning: left shift count >= width of type [-Wshift-count-overflow]
      35 |         if (!(word & (~0ul << (BITS_PER_LONG-2)))) {
         |                            ^~
   include/asm-generic/bitops/__fls.h:39:28: warning: left shift count >= width of type [-Wshift-count-overflow]
      39 |         if (!(word & (~0ul << (BITS_PER_LONG-1))))
         |                            ^~
   make[2]: *** [scripts/Makefile.build:121: kernel/bounds.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1191: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:219: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +20 arch/parisc/include/asm/bitops.h

    14	
    15	/* compiler build environment sanity checks: */
    16	#if !defined(CONFIG_64BIT) && defined(__LP64__)
    17	#error "Please use 'ARCH=parisc' to build the 32-bit kernel."
    18	#endif
    19	#if defined(CONFIG_64BIT) && !defined(__LP64__)
  > 20	#error "Please use 'ARCH=parisc64' to build the 64-bit kernel."
    21	#endif
    22	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [deller-parisc:for-next 5/6] arch/parisc/include/asm/bitops.h:20:2: error: #error "Please use 'ARCH=parisc64' to build the 64-bit kernel."
  2022-02-14 13:25 [deller-parisc:for-next 5/6] arch/parisc/include/asm/bitops.h:20:2: error: #error "Please use 'ARCH=parisc64' to build the 64-bit kernel." kernel test robot
@ 2022-02-14 15:06 ` Helge Deller
  0 siblings, 0 replies; 2+ messages in thread
From: Helge Deller @ 2022-02-14 15:06 UTC (permalink / raw)
  To: kernel test robot; +Cc: kbuild-all, linux-kernel

On 2/14/22 14:25, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git for-next
> head:   dbd0b42350d5717786cb8257fbe5b528f3af9772
> commit: b160628e9ebcdc85d0db9d7f423c26b3c7c179d0 [5/6] parisc: Show error if wrong 32/64-bit compiler is being used
> config: parisc-randconfig-r004-20220213 (https://download.01.org/0day-ci/archive/20220214/202202142139.fHrrv9Oy-lkp@intel.com/config)
> compiler: hppa64-linux-gcc (GCC) 11.2.0
> reproduce (this is a W=1 build):
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git/commit/?id=b160628e9ebcdc85d0db9d7f423c26b3c7c179d0
>         git remote add deller-parisc https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git
>         git fetch --no-tags deller-parisc for-next
>         git checkout b160628e9ebcdc85d0db9d7f423c26b3c7c179d0
>         # save the config file to linux build tree
>         mkdir build_dir
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=parisc prepare
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
>    In file included from include/linux/bitops.h:33,
>                     from include/linux/kernel.h:22,
>                     from arch/parisc/include/asm/bug.h:5,
>                     from include/linux/bug.h:5,
>                     from include/linux/page-flags.h:10,
>                     from kernel/bounds.c:10:
>>> arch/parisc/include/asm/bitops.h:20:2: error: #error "Please use 'ARCH=parisc64' to build the 64-bit kernel."
>       20 | #error "Please use 'ARCH=parisc64' to build the 64-bit kernel."

The newly introduced error message works as intended :-)

#error "Please use 'ARCH=parisc64' to build the 64-bit kernel."

Helge

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-14 15:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-14 13:25 [deller-parisc:for-next 5/6] arch/parisc/include/asm/bitops.h:20:2: error: #error "Please use 'ARCH=parisc64' to build the 64-bit kernel." kernel test robot
2022-02-14 15:06 ` Helge Deller

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).