All of lore.kernel.org
 help / color / mirror / Atom feed
* [norov:bm-f2 15/15] arch/powerpc/include/asm/book3s/64/mmu-hash.h:703:2: error: type name requires a specifier or qualifier
@ 2021-06-28 20:42 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-28 20:42 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 12997 bytes --]

tree:   https://github.com/norov/linux bm-f2
head:   932180476f68cbd3c654bde06f760b6a21fe5310
commit: 932180476f68cbd3c654bde06f760b6a21fe5310 [15/15] move DECLARE_BITMAP
config: powerpc-randconfig-r006-20210628 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 4c92e31dd0f1bd152eda883af20ff7fbcaa14945)
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
        # install powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://github.com/norov/linux/commit/932180476f68cbd3c654bde06f760b6a21fe5310
        git remote add norov https://github.com/norov/linux
        git fetch --no-tags norov bm-f2
        git checkout 932180476f68cbd3c654bde06f760b6a21fe5310
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=powerpc olddefconfig

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 arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:14:
   In file included from include/linux/sem.h:5:
   In file included from include/uapi/linux/sem.h:5:
   In file included from include/linux/ipc.h:5:
   In file included from include/linux/spinlock.h:51:
   In file included from include/linux/preempt.h:11:
   In file included from include/linux/list.h:9:
   In file included from include/linux/kernel.h:12:
   In file included from include/linux/bitops.h:32:
   In file included from arch/powerpc/include/asm/bitops.h:62:
   arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
   #define __lwsync()      __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
           ^
   <built-in>:310:9: note: previous definition is here
   #define __lwsync __builtin_ppc_lwsync
           ^
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:14:
   In file included from include/linux/sem.h:5:
   In file included from include/uapi/linux/sem.h:5:
   In file included from include/linux/ipc.h:5:
   In file included from include/linux/spinlock.h:51:
   In file included from include/linux/preempt.h:78:
   In file included from ./arch/powerpc/include/generated/asm/preempt.h:1:
   In file included from include/asm-generic/preempt.h:5:
   In file included from include/linux/thread_info.h:23:
   In file included from arch/powerpc/include/asm/current.h:13:
   In file included from arch/powerpc/include/asm/paca.h:17:
   In file included from arch/powerpc/include/asm/lppaca.h:46:
   In file included from arch/powerpc/include/asm/mmu.h:390:
   In file included from arch/powerpc/include/asm/book3s/64/mmu.h:31:
>> arch/powerpc/include/asm/book3s/64/mmu-hash.h:703:2: error: type name requires a specifier or qualifier
           DECLARE_BITMAP(high_slices, SLICE_NUM_HIGH);
           ^
>> arch/powerpc/include/asm/book3s/64/mmu-hash.h:703:30: error: expected identifier
           DECLARE_BITMAP(high_slices, SLICE_NUM_HIGH);
                                       ^
   arch/powerpc/include/asm/book3s/64/slice.h:11:25: note: expanded from macro 'SLICE_NUM_HIGH'
   #define SLICE_NUM_HIGH          (H_PGTABLE_RANGE >> SLICE_HIGH_SHIFT)
                                   ^
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:14:
   In file included from include/linux/sem.h:5:
   In file included from include/uapi/linux/sem.h:5:
   In file included from include/linux/ipc.h:5:
   In file included from include/linux/spinlock.h:51:
   In file included from include/linux/preempt.h:78:
   In file included from ./arch/powerpc/include/generated/asm/preempt.h:1:
   In file included from include/asm-generic/preempt.h:5:
   In file included from include/linux/thread_info.h:23:
   In file included from arch/powerpc/include/asm/current.h:13:
   In file included from arch/powerpc/include/asm/paca.h:17:
   In file included from arch/powerpc/include/asm/lppaca.h:46:
   In file included from arch/powerpc/include/asm/mmu.h:390:
   In file included from arch/powerpc/include/asm/book3s/64/mmu.h:31:
>> arch/powerpc/include/asm/book3s/64/mmu-hash.h:703:16: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
           DECLARE_BITMAP(high_slices, SLICE_NUM_HIGH);
                         ^
                                                     void
   In file included from arch/powerpc/kernel/asm-offsets.c:21:
   include/linux/mman.h:157:9: warning: division by zero is undefined [-Wdivision-by-zero]
                  _calc_vm_trans(flags, MAP_LOCKED,     VM_LOCKED    ) |
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/mman.h:135:21: note: expanded from macro '_calc_vm_trans'
      : ((x) & (bit1)) / ((bit1) / (bit2))))
                       ^ ~~~~~~~~~~~~~~~~~
   include/linux/mman.h:158:9: warning: division by zero is undefined [-Wdivision-by-zero]
                  _calc_vm_trans(flags, MAP_SYNC,       VM_SYNC      ) |
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/mman.h:135:21: note: expanded from macro '_calc_vm_trans'
      : ((x) & (bit1)) / ((bit1) / (bit2))))
                       ^ ~~~~~~~~~~~~~~~~~
   3 warnings and 3 errors generated.
--
   error: no override and no default toolchain set
   init/Kconfig:70:warning: 'RUSTC_VERSION': number is invalid
   In file included from kernel/bounds.c:13:
   In file included from include/linux/log2.h:12:
   In file included from include/linux/bitops.h:32:
   In file included from arch/powerpc/include/asm/bitops.h:62:
   arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
   #define __lwsync()      __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
           ^
   <built-in>:310:9: note: previous definition is here
   #define __lwsync __builtin_ppc_lwsync
           ^
   1 warning generated.
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:14:
   In file included from include/linux/sem.h:5:
   In file included from include/uapi/linux/sem.h:5:
   In file included from include/linux/ipc.h:5:
   In file included from include/linux/spinlock.h:51:
   In file included from include/linux/preempt.h:11:
   In file included from include/linux/list.h:9:
   In file included from include/linux/kernel.h:12:
   In file included from include/linux/bitops.h:32:
   In file included from arch/powerpc/include/asm/bitops.h:62:
   arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
   #define __lwsync()      __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
           ^
   <built-in>:310:9: note: previous definition is here
   #define __lwsync __builtin_ppc_lwsync
           ^
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:14:
   In file included from include/linux/sem.h:5:
   In file included from include/uapi/linux/sem.h:5:
   In file included from include/linux/ipc.h:5:
   In file included from include/linux/spinlock.h:51:
   In file included from include/linux/preempt.h:78:
   In file included from ./arch/powerpc/include/generated/asm/preempt.h:1:
   In file included from include/asm-generic/preempt.h:5:
   In file included from include/linux/thread_info.h:23:
   In file included from arch/powerpc/include/asm/current.h:13:
   In file included from arch/powerpc/include/asm/paca.h:17:
   In file included from arch/powerpc/include/asm/lppaca.h:46:
   In file included from arch/powerpc/include/asm/mmu.h:390:
   In file included from arch/powerpc/include/asm/book3s/64/mmu.h:31:
>> arch/powerpc/include/asm/book3s/64/mmu-hash.h:703:2: error: type name requires a specifier or qualifier
           DECLARE_BITMAP(high_slices, SLICE_NUM_HIGH);
           ^
>> arch/powerpc/include/asm/book3s/64/mmu-hash.h:703:30: error: expected identifier
           DECLARE_BITMAP(high_slices, SLICE_NUM_HIGH);
                                       ^
   arch/powerpc/include/asm/book3s/64/slice.h:11:25: note: expanded from macro 'SLICE_NUM_HIGH'
   #define SLICE_NUM_HIGH          (H_PGTABLE_RANGE >> SLICE_HIGH_SHIFT)
                                   ^
   In file included from arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:14:
   In file included from include/linux/sem.h:5:
   In file included from include/uapi/linux/sem.h:5:
   In file included from include/linux/ipc.h:5:
   In file included from include/linux/spinlock.h:51:
   In file included from include/linux/preempt.h:78:
   In file included from ./arch/powerpc/include/generated/asm/preempt.h:1:
   In file included from include/asm-generic/preempt.h:5:
   In file included from include/linux/thread_info.h:23:
   In file included from arch/powerpc/include/asm/current.h:13:
   In file included from arch/powerpc/include/asm/paca.h:17:
   In file included from arch/powerpc/include/asm/lppaca.h:46:
   In file included from arch/powerpc/include/asm/mmu.h:390:
   In file included from arch/powerpc/include/asm/book3s/64/mmu.h:31:
>> arch/powerpc/include/asm/book3s/64/mmu-hash.h:703:16: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
           DECLARE_BITMAP(high_slices, SLICE_NUM_HIGH);
                         ^
                                                     void
   In file included from arch/powerpc/kernel/asm-offsets.c:21:
   include/linux/mman.h:157:9: warning: division by zero is undefined [-Wdivision-by-zero]
                  _calc_vm_trans(flags, MAP_LOCKED,     VM_LOCKED    ) |
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/mman.h:135:21: note: expanded from macro '_calc_vm_trans'
      : ((x) & (bit1)) / ((bit1) / (bit2))))
                       ^ ~~~~~~~~~~~~~~~~~
   include/linux/mman.h:158:9: warning: division by zero is undefined [-Wdivision-by-zero]
                  _calc_vm_trans(flags, MAP_SYNC,       VM_SYNC      ) |
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/mman.h:135:21: note: expanded from macro '_calc_vm_trans'
      : ((x) & (bit1)) / ((bit1) / (bit2))))
                       ^ ~~~~~~~~~~~~~~~~~
   3 warnings and 3 errors generated.
   make[2]: *** [scripts/Makefile.build:118: arch/powerpc/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1288: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:222: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +703 arch/powerpc/include/asm/book3s/64/mmu-hash.h

d28513bc7f675d arch/powerpc/include/asm/mmu-hash64.h         David Gibson     2009-11-26  695  
701101865f5d3e arch/powerpc/include/asm/book3s/64/mmu-hash.h Aneesh Kumar K.V 2019-04-17  696  /*
701101865f5d3e arch/powerpc/include/asm/book3s/64/mmu-hash.h Aneesh Kumar K.V 2019-04-17  697   * One bit per slice. We have lower slices which cover 256MB segments
701101865f5d3e arch/powerpc/include/asm/book3s/64/mmu-hash.h Aneesh Kumar K.V 2019-04-17  698   * upto 4G range. That gets us 16 low slices. For the rest we track slices
701101865f5d3e arch/powerpc/include/asm/book3s/64/mmu-hash.h Aneesh Kumar K.V 2019-04-17  699   * in 1TB size.
701101865f5d3e arch/powerpc/include/asm/book3s/64/mmu-hash.h Aneesh Kumar K.V 2019-04-17  700   */
701101865f5d3e arch/powerpc/include/asm/book3s/64/mmu-hash.h Aneesh Kumar K.V 2019-04-17  701  struct slice_mask {
701101865f5d3e arch/powerpc/include/asm/book3s/64/mmu-hash.h Aneesh Kumar K.V 2019-04-17  702  	u64 low_slices;
701101865f5d3e arch/powerpc/include/asm/book3s/64/mmu-hash.h Aneesh Kumar K.V 2019-04-17 @703  	DECLARE_BITMAP(high_slices, SLICE_NUM_HIGH);
701101865f5d3e arch/powerpc/include/asm/book3s/64/mmu-hash.h Aneesh Kumar K.V 2019-04-17  704  };
701101865f5d3e arch/powerpc/include/asm/book3s/64/mmu-hash.h Aneesh Kumar K.V 2019-04-17  705  

:::::: The code at line 703 was first introduced by commit
:::::: 701101865f5d3e268281ce7a254eb4a97d16cbdc powerpc/mm: Reduce memory usage for mm_context_t for radix

:::::: TO: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
:::::: CC: Michael Ellerman <mpe@ellerman.id.au>

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 41167 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-28 20:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28 20:42 [norov:bm-f2 15/15] arch/powerpc/include/asm/book3s/64/mmu-hash.h:703:2: error: type name requires a specifier or qualifier kernel test robot

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.