Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [kas:x86/lass 2/16] arch/x86/include/asm/string.h:40:8: error: expected relocatable expression
@ 2025-06-22  7:48 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-06-22  7:48 UTC (permalink / raw)
  To: Kirill A. Shutemov; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git x86/lass
head:   59822d1bcbc8a26ad84fffa7ff4e6840ef526285
commit: e408c89255c56175bcbed7e6b5ea5efd4074251d [2/16] x86/asm: Introduce inline memcpy and memset
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250622/202506221557.4DOemEgy-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
rustc: rustc 1.78.0 (9b00956e5 2024-04-29)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250622/202506221557.4DOemEgy-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/202506221557.4DOemEgy-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/iommu/iommufd/device.c:4:
   In file included from include/linux/iommu.h:10:
   In file included from include/linux/scatterlist.h:5:
   In file included from include/linux/string.h:65:
>> arch/x86/include/asm/string.h:40:8: error: expected relocatable expression
      40 |                      ALT_64("rep stosb",
         |                      ^
   arch/x86/include/asm/string.h:15:33: note: expanded from macro 'ALT_64'
      15 | #define ALT_64(orig, alt, feat) ALTERNATIVE(orig, alt, feat)
         |                                 ^
   arch/x86/include/asm/alternative.h:217:2: note: expanded from macro 'ALTERNATIVE'
     217 |         ALTINSTR_ENTRY(ft_flags)                                        \
         |         ^
   arch/x86/include/asm/alternative.h:203:3: note: expanded from macro 'ALTINSTR_ENTRY'
     203 |         " .4byte " __stringify(ft_flags) "\n"           /* feature + flags */ \
         |          ^
   <inline asm>:12:9: note: instantiated into assembly here
      12 |  .4byte (((1 << 0) << 16) | (X86_FEATURE_FSRM))
         |         ^
   1 error generated.


vim +40 arch/x86/include/asm/string.h

    34	
    35	static __always_inline void *__inline_memset(void *addr, int v, size_t len)
    36	{
    37		void *ret = addr;
    38	
    39		asm volatile("1:\n\t"
  > 40			     ALT_64("rep stosb",
    41				    "call rep_stos_alternative", ALT_NOT(X86_FEATURE_FSRM))
    42			     "2:\n\t"
    43			     _ASM_EXTABLE_UA(1b, 2b)
    44			     : "+c" (len), "+D" (addr), ASM_CALL_CONSTRAINT
    45			     : "a" ((uint8_t)v)
    46			     : "memory", _ASM_SI);
    47	
    48		return ret + len;
    49	}
    50	

-- 
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:[~2025-06-22  7:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-22  7:48 [kas:x86/lass 2/16] arch/x86/include/asm/string.h:40:8: error: expected relocatable expression kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox