From: kernel test robot <lkp@intel.com>
To: Heiko Carstens <hca@linux.ibm.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Alexander Gordeev <agordeev@linux.ibm.com>
Subject: arch/s390/include/asm/bitops.h:60:17: error: impossible constraint in 'asm'
Date: Sun, 9 Feb 2025 19:20:36 +0800 [thread overview]
Message-ID: <202502091912.xL2xTCGw-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9946eaf552b194bb352c2945b54ff98c8193b3f1
commit: b2bc1b1a77c0ffc2f51e90b1112d7f5530e4d15c s390/bitops: Provide optimized arch_test_bit()
date: 4 weeks ago
config: s390-randconfig-r052-20250209 (https://download.01.org/0day-ci/archive/20250209/202502091912.xL2xTCGw-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250209/202502091912.xL2xTCGw-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/202502091912.xL2xTCGw-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from include/linux/bitops.h:68,
from include/linux/thread_info.h:27,
from arch/s390/include/asm/preempt.h:6,
from include/linux/preempt.h:79,
from include/linux/alloc_tag.h:11,
from include/linux/vmalloc.h:5,
from mm/vmalloc.c:11:
In function 'arch_test_bit',
inlined from 'node_state' at include/linux/nodemask.h:423:9,
inlined from 'warn_if_node_offline' at include/linux/gfp.h:252:2,
inlined from '__alloc_pages_node_noprof' at include/linux/gfp.h:267:2,
inlined from 'alloc_pages_node_noprof' at include/linux/gfp.h:296:9,
inlined from 'vm_area_alloc_pages.constprop' at mm/vmalloc.c:3591:11:
>> arch/s390/include/asm/bitops.h:60:17: warning: 'asm' operand 2 probably does not match constraints
60 | asm volatile(
| ^~~
>> arch/s390/include/asm/bitops.h:60:17: error: impossible constraint in 'asm'
vim +/asm +60 arch/s390/include/asm/bitops.h
48
49 static __always_inline bool arch_test_bit(unsigned long nr, const volatile unsigned long *ptr)
50 {
51 #ifdef __HAVE_ASM_FLAG_OUTPUTS__
52 const volatile unsigned char *addr;
53 unsigned long mask;
54 int cc;
55
56 if (__builtin_constant_p(nr)) {
57 addr = (const volatile unsigned char *)ptr;
58 addr += (nr ^ (BITS_PER_LONG - BITS_PER_BYTE)) / BITS_PER_BYTE;
59 mask = 1UL << (nr & (BITS_PER_BYTE - 1));
> 60 asm volatile(
61 " tm %[addr],%[mask]\n"
62 : "=@cc" (cc)
63 : [addr] "R" (*addr), [mask] "I" (mask)
64 );
65 return cc == 3;
66 }
67 #endif
68 return generic_test_bit(nr, ptr);
69 }
70
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-02-09 11:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202502091912.xL2xTCGw-lkp@intel.com \
--to=lkp@intel.com \
--cc=agordeev@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®