* [willy-pagecache:folio-flags 15/19] arch/alpha/include/asm/bitops.h:315:33: error: 'nr' undeclared
@ 2023-07-21 2:34 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-07-21 2:34 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: oe-kbuild-all
tree: git://git.infradead.org/users/willy/pagecache folio-flags
head: 35ffa765605bc8156660ed51b97fa97f21d88aba
commit: bcf25031ae39ec676a85a99bf0cacdefde781901 [15/19] bitops: Add change_and_unlock_is_negative_byte()
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20230721/202307211029.TtjwANfr-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230721/202307211029.TtjwANfr-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307211029.TtjwANfr-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/bitops.h:68,
from include/linux/log2.h:12,
from kernel/bounds.c:13:
arch/alpha/include/asm/bitops.h: In function 'change_and_unlock_is_negative_byte':
>> arch/alpha/include/asm/bitops.h:315:33: error: 'nr' undeclared (first use in this function)
315 | int *m = ((int *) p) + (nr >> 5);
| ^~
arch/alpha/include/asm/bitops.h:315:33: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [scripts/Makefile.build:116: kernel/bounds.s] Error 1
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1275: prepare0] Error 2
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:234: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/nr +315 arch/alpha/include/asm/bitops.h
309
310 static inline bool change_and_unlock_is_negative_byte(int change_bit,
311 int lock_bit, volatile unsigned long *p)
312 {
313 unsigned long temp, old;
314 unsigned long mask = (1 << change_bit) | (1 << lock_bit);
> 315 int *m = ((int *) p) + (nr >> 5);
316
317 __asm__ __volatile__(
318 "1: ldl_l %0,%4\n"
319 " xor %0,%3,%0\n"
320 " xor %0,%3,%2\n"
321 " stl_c %0,%1\n"
322 " beq %0,2f\n"
323 ".subsection 2\n"
324 "2: br 1b\n"
325 ".previous"
326 :"=&r" (temp), "=m" (*m), "=&r" (old)
327 :"Ir" (mask), "m" (*m));
328
329 return (old & BIT(7)) != 0;
330 }
331
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-21 2:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-21 2:34 [willy-pagecache:folio-flags 15/19] arch/alpha/include/asm/bitops.h:315:33: error: 'nr' undeclared 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.