lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202204190545.DLGpryBz-lkp@intel.com>
Date:   Tue, 19 Apr 2022 05:47:29 +0800
From:   kernel test robot <lkp@...el.com>
To:     Ingo Molnar <mingo@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [mingo-tip:sched/headers 2222/2356]
 include/linux/mm_types_task.h:11:10: fatal error: generated/bounds.h: No
 such file or directory

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head:   af93551cf39027d176f30b9beafc60a4c130998a
commit: 1ac8ecdc4e754e164da21a64b262f7b0f097010f [2222/2356] headers/deps: bvec: Reduce <linux/bvec.h> dependencies, remove <linux/bvec_api.h> inclusion
config: powerpc-allnoconfig (https://download.01.org/0day-ci/archive/20220419/202204190545.DLGpryBz-lkp@intel.com/config)
compiler: powerpc-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/mingo/tip.git/commit/?id=1ac8ecdc4e754e164da21a64b262f7b0f097010f
        git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
        git fetch --no-tags mingo-tip sched/headers
        git checkout 1ac8ecdc4e754e164da21a64b262f7b0f097010f
        # 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=powerpc prepare

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

All errors (new ones prefixed by >>):

      83 | XCHG_GEN(u16, _relaxed, "cc");
         | ^~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h: In function '__cmpxchg_u8':
   arch/powerpc/include/asm/cmpxchg.h:11:63: error: 'BITS_PER_BYTE' undeclared (first use in this function); did you mean 'BITS_PER_LONG'?
      11 | #define BITOFF_CAL(size, off)   ((sizeof(u32) - size - off) * BITS_PER_BYTE)
         |                                                               ^~~~~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h:47:18: note: in expansion of macro 'BITOFF_CAL'
      47 |         bitoff = BITOFF_CAL(sizeof(type), off);                 \
         |                  ^~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h:206:1: note: in expansion of macro 'CMPXCHG_GEN'
     206 | CMPXCHG_GEN(u8, , PPC_ATOMIC_ENTRY_BARRIER, PPC_ATOMIC_EXIT_BARRIER, "memory");
         | ^~~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h: In function '__cmpxchg_u8_local':
   arch/powerpc/include/asm/cmpxchg.h:11:63: error: 'BITS_PER_BYTE' undeclared (first use in this function); did you mean 'BITS_PER_LONG'?
      11 | #define BITOFF_CAL(size, off)   ((sizeof(u32) - size - off) * BITS_PER_BYTE)
         |                                                               ^~~~~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h:47:18: note: in expansion of macro 'BITOFF_CAL'
      47 |         bitoff = BITOFF_CAL(sizeof(type), off);                 \
         |                  ^~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h:207:1: note: in expansion of macro 'CMPXCHG_GEN'
     207 | CMPXCHG_GEN(u8, _local, , , "memory");
         | ^~~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h: In function '__cmpxchg_u8_acquire':
   arch/powerpc/include/asm/cmpxchg.h:11:63: error: 'BITS_PER_BYTE' undeclared (first use in this function); did you mean 'BITS_PER_LONG'?
      11 | #define BITOFF_CAL(size, off)   ((sizeof(u32) - size - off) * BITS_PER_BYTE)
         |                                                               ^~~~~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h:47:18: note: in expansion of macro 'BITOFF_CAL'
      47 |         bitoff = BITOFF_CAL(sizeof(type), off);                 \
         |                  ^~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h:208:1: note: in expansion of macro 'CMPXCHG_GEN'
     208 | CMPXCHG_GEN(u8, _acquire, , PPC_ACQUIRE_BARRIER, "memory");
         | ^~~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h: In function '__cmpxchg_u8_relaxed':
   arch/powerpc/include/asm/cmpxchg.h:11:63: error: 'BITS_PER_BYTE' undeclared (first use in this function); did you mean 'BITS_PER_LONG'?
      11 | #define BITOFF_CAL(size, off)   ((sizeof(u32) - size - off) * BITS_PER_BYTE)
         |                                                               ^~~~~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h:47:18: note: in expansion of macro 'BITOFF_CAL'
      47 |         bitoff = BITOFF_CAL(sizeof(type), off);                 \
         |                  ^~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h:209:1: note: in expansion of macro 'CMPXCHG_GEN'
     209 | CMPXCHG_GEN(u8, _relaxed, , , "cc");
         | ^~~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h: In function '__cmpxchg_u16':
   arch/powerpc/include/asm/cmpxchg.h:11:63: error: 'BITS_PER_BYTE' undeclared (first use in this function); did you mean 'BITS_PER_LONG'?
      11 | #define BITOFF_CAL(size, off)   ((sizeof(u32) - size - off) * BITS_PER_BYTE)
         |                                                               ^~~~~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h:47:18: note: in expansion of macro 'BITOFF_CAL'
      47 |         bitoff = BITOFF_CAL(sizeof(type), off);                 \
         |                  ^~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h:210:1: note: in expansion of macro 'CMPXCHG_GEN'
     210 | CMPXCHG_GEN(u16, , PPC_ATOMIC_ENTRY_BARRIER, PPC_ATOMIC_EXIT_BARRIER, "memory");
         | ^~~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h: In function '__cmpxchg_u16_local':
   arch/powerpc/include/asm/cmpxchg.h:11:63: error: 'BITS_PER_BYTE' undeclared (first use in this function); did you mean 'BITS_PER_LONG'?
      11 | #define BITOFF_CAL(size, off)   ((sizeof(u32) - size - off) * BITS_PER_BYTE)
         |                                                               ^~~~~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h:47:18: note: in expansion of macro 'BITOFF_CAL'
      47 |         bitoff = BITOFF_CAL(sizeof(type), off);                 \
         |                  ^~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h:211:1: note: in expansion of macro 'CMPXCHG_GEN'
     211 | CMPXCHG_GEN(u16, _local, , , "memory");
         | ^~~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h: In function '__cmpxchg_u16_acquire':
   arch/powerpc/include/asm/cmpxchg.h:11:63: error: 'BITS_PER_BYTE' undeclared (first use in this function); did you mean 'BITS_PER_LONG'?
      11 | #define BITOFF_CAL(size, off)   ((sizeof(u32) - size - off) * BITS_PER_BYTE)
         |                                                               ^~~~~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h:47:18: note: in expansion of macro 'BITOFF_CAL'
      47 |         bitoff = BITOFF_CAL(sizeof(type), off);                 \
         |                  ^~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h:212:1: note: in expansion of macro 'CMPXCHG_GEN'
     212 | CMPXCHG_GEN(u16, _acquire, , PPC_ACQUIRE_BARRIER, "memory");
         | ^~~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h: In function '__cmpxchg_u16_relaxed':
   arch/powerpc/include/asm/cmpxchg.h:11:63: error: 'BITS_PER_BYTE' undeclared (first use in this function); did you mean 'BITS_PER_LONG'?
      11 | #define BITOFF_CAL(size, off)   ((sizeof(u32) - size - off) * BITS_PER_BYTE)
         |                                                               ^~~~~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h:47:18: note: in expansion of macro 'BITOFF_CAL'
      47 |         bitoff = BITOFF_CAL(sizeof(type), off);                 \
         |                  ^~~~~~~~~~
   arch/powerpc/include/asm/cmpxchg.h:213:1: note: in expansion of macro 'CMPXCHG_GEN'
     213 | CMPXCHG_GEN(u16, _relaxed, , , "cc");
         | ^~~~~~~~~~~
   In file included from include/linux/mm_types.h:7,
                    from include/linux/mm_page_address.h:14,
                    from include/asm-generic/memory_model.h:14,
                    from arch/powerpc/include/asm/page.h:334,
                    from arch/powerpc/include/asm/thread_info.h:13,
                    from include/linux/thread_info.h:63,
                    from arch/powerpc/include/asm/ptrace.h:323,
                    from arch/powerpc/include/asm/hw_irq.h:12,
                    from arch/powerpc/include/asm/irqflags.h:12,
                    from include/linux/irqflags.h:16,
                    from include/asm-generic/cmpxchg-local.h:6,
                    from arch/powerpc/include/asm/cmpxchg.h:526,
                    from arch/powerpc/include/asm/atomic.h:11,
                    from include/linux/atomic_api.h:8,
                    from include/linux/jump_label.h:257,
                    from include/linux/page-flags.h:9,
                    from kernel/bounds.c:12:
   include/linux/mm_types_task.h: At top level:
>> include/linux/mm_types_task.h:11:10: fatal error: generated/bounds.h: No such file or directory
      11 | #include <generated/bounds.h>
         |          ^~~~~~~~~~~~~~~~~~~~
   compilation terminated.
   make[2]: *** [scripts/Makefile.build:120: kernel/bounds.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1194: 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 +11 include/linux/mm_types_task.h

2e58f173ab89b2 Ingo Molnar 2017-02-04   4  
9e7d2e44dd88ba Ingo Molnar 2017-02-04   5  /*
9e7d2e44dd88ba Ingo Molnar 2017-02-04   6   * Here are the definitions of the MM data types that are embedded in 'struct task_struct'.
9e7d2e44dd88ba Ingo Molnar 2017-02-04   7   *
9e7d2e44dd88ba Ingo Molnar 2017-02-04   8   * (These are defined separately to decouple sched.h from mm_types.h as much as possible.)
9e7d2e44dd88ba Ingo Molnar 2017-02-04   9   */
9e7d2e44dd88ba Ingo Molnar 2017-02-04  10  
09a39ba16c28d9 Ingo Molnar 2022-03-15 @11  #include <generated/bounds.h>
09a39ba16c28d9 Ingo Molnar 2022-03-15  12  

:::::: The code at line 11 was first introduced by commit
:::::: 09a39ba16c28d98621d835b7e0618c2ee9daf6ef headers/deps: mm: Optimize <linux/mm_types.h> dependencies

:::::: TO: Ingo Molnar <mingo@...nel.org>
:::::: CC: Ingo Molnar <mingo@...nel.org>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ