[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210060408.DfcdLcup-lkp@intel.com>
Date: Thu, 6 Oct 2022 04:27:30 +0800
From: kernel test robot <lkp@...el.com>
To: Mikulas Patocka <mpatocka@...hat.com>
Cc: kbuild-all@...ts.01.org, Ammar Faizi <ammarfaizi2@...weeb.org>,
GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
linux-kernel@...r.kernel.org, Sasha Levin <sashal@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: [ammarfaizi2-block:stable/linux-stable-rc/queue/4.14 24/24]
arch/m68k/include/asm/bitops.h:156:24: error: unknown type name 'bool'
tree: https://github.com/ammarfaizi2/linux-block stable/linux-stable-rc/queue/4.14
head: ceb6204cfb03922adbad294d6e188c5dca390452
commit: ceb6204cfb03922adbad294d6e188c5dca390452 [24/24] provide arch_test_bit_acquire for architectures that define test_bit
config: m68k-randconfig-r031-20221003
compiler: m68k-linux-gcc (GCC) 7.5.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://github.com/ammarfaizi2/linux-block/commit/ceb6204cfb03922adbad294d6e188c5dca390452
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block stable/linux-stable-rc/queue/4.14
git checkout ceb6204cfb03922adbad294d6e188c5dca390452
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash kernel/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from include/linux/bitops.h:19:0,
from include/linux/radix-tree.h:24,
from kernel/memremap.c:13:
>> arch/m68k/include/asm/bitops.h:156:24: error: unknown type name 'bool'
static __always_inline bool
^~~~
In file included from arch/m68k/include/asm/bitops.h:15:0,
from include/linux/bitops.h:19,
from include/linux/radix-tree.h:24,
from kernel/memremap.c:13:
arch/m68k/include/asm/bitops.h: In function 'test_bit_acquire':
include/linux/compiler.h:313:3: error: unknown type name 'bool'; did you mean '_Bool'?
bool __cond = !(condition); \
^
include/linux/compiler.h:324:2: note: in expansion of macro '__compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:336:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:339:2: note: in expansion of macro 'compiletime_assert'
compiletime_assert(__native_word(t), \
^~~~~~~~~~~~~~~~~~
include/asm-generic/barrier.h:191:2: note: in expansion of macro 'compiletime_assert_atomic_type'
compiletime_assert_atomic_type(*p); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/m68k/include/asm/bitops.h:160:16: note: in expansion of macro 'smp_load_acquire'
return 1UL & (smp_load_acquire(p) >> (nr & (BITS_PER_LONG-1)));
^~~~~~~~~~~~~~~~
In file included from arch/m68k/include/asm/page.h:47:0,
from arch/m68k/include/asm/thread_info.h:6,
from include/linux/thread_info.h:39,
from include/asm-generic/preempt.h:5,
from ./arch/m68k/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:81,
from include/linux/radix-tree.h:28,
from kernel/memremap.c:13:
include/linux/pfn_t.h: In function 'pfn_t_valid':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra]
#define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
^
arch/m68k/include/asm/page_mm.h:170:25: note: in expansion of macro 'virt_addr_valid'
#define pfn_valid(pfn) virt_addr_valid(pfn_to_virt(pfn))
^~~~~~~~~~~~~~~
include/linux/pfn_t.h:79:9: note: in expansion of macro 'pfn_valid'
return pfn_valid(pfn_t_to_pfn(pfn));
^~~~~~~~~
kernel/memremap.c: In function 'try_ram_remap':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra]
#define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
^
arch/m68k/include/asm/page_mm.h:170:25: note: in expansion of macro 'virt_addr_valid'
#define pfn_valid(pfn) virt_addr_valid(pfn_to_virt(pfn))
^~~~~~~~~~~~~~~
kernel/memremap.c:52:6: note: in expansion of macro 'pfn_valid'
if (pfn_valid(pfn) && !PageHighMem(pfn_to_page(pfn)) &&
^~~~~~~~~
vim +/bool +156 arch/m68k/include/asm/bitops.h
155
> 156 static __always_inline bool
157 test_bit_acquire(unsigned long nr, const volatile unsigned long *addr)
158 {
159 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
160 return 1UL & (smp_load_acquire(p) >> (nr & (BITS_PER_LONG-1)));
161 }
162
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (86561 bytes)
Powered by blists - more mailing lists