All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 13940/14141] arch/openrisc/include/asm/spr.h:16:27: error: impossible constraint in 'asm'
@ 2025-03-31 11:05 kernel test robot
  2025-03-31 14:12 ` Stafford Horne
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2025-03-31 11:05 UTC (permalink / raw)
  To: Sahil Siddiq; +Cc: oe-kbuild-all, Stafford Horne

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   405e2241def89c88f008dcb899eb5b6d4be8b43c
commit: c5c6fd8be51207f0abd3e5a6ed4fd5220b0bdecd [13940/14141] openrisc: Introduce new utility functions to flush and invalidate caches
config: openrisc-randconfig-r062-20250331 (https://download.01.org/0day-ci/archive/20250331/202503311807.BZaUHY5L-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 13.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250331/202503311807.BZaUHY5L-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/202503311807.BZaUHY5L-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   In file included from arch/openrisc/mm/cache.c:13:
   In function 'cache_loop',
       inlined from 'cache_loop_page' at arch/openrisc/mm/cache.c:51:2:
>> arch/openrisc/include/asm/spr.h:16:27: warning: 'asm' operand 0 probably does not match constraints
      16 | #define mtspr(_spr, _val) __asm__ __volatile__ (                \
         |                           ^~~~~~~
   arch/openrisc/mm/cache.c:38:17: note: in expansion of macro 'mtspr'
      38 |                 mtspr(reg, paddr);
         |                 ^~~~~
>> arch/openrisc/include/asm/spr.h:16:27: error: impossible constraint in 'asm'
      16 | #define mtspr(_spr, _val) __asm__ __volatile__ (                \
         |                           ^~~~~~~
   arch/openrisc/mm/cache.c:38:17: note: in expansion of macro 'mtspr'
      38 |                 mtspr(reg, paddr);
         |                 ^~~~~


vim +/asm +16 arch/openrisc/include/asm/spr.h

58e0166a4772aa Jonas Bonn 2011-06-04  15  
58e0166a4772aa Jonas Bonn 2011-06-04 @16  #define mtspr(_spr, _val) __asm__ __volatile__ (		\
58e0166a4772aa Jonas Bonn 2011-06-04  17  	"l.mtspr r0,%1,%0"					\
58e0166a4772aa Jonas Bonn 2011-06-04  18  	: : "K" (_spr), "r" (_val))
58e0166a4772aa Jonas Bonn 2011-06-04  19  #define mtspr_off(_spr, _off, _val) __asm__ __volatile__ (	\
58e0166a4772aa Jonas Bonn 2011-06-04  20  	"l.mtspr %0,%1,%2"					\
58e0166a4772aa Jonas Bonn 2011-06-04  21  	: : "r" (_off), "r" (_val), "K" (_spr))
58e0166a4772aa Jonas Bonn 2011-06-04  22  

:::::: The code at line 16 was first introduced by commit
:::::: 58e0166a4772aaeb10c9b0f6d59f19099d2047df OpenRISC: Headers

:::::: TO: Jonas Bonn <jonas@southpole.se>
:::::: CC: Jonas Bonn <jonas@southpole.se>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-04-01  6:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-31 11:05 [linux-next:master 13940/14141] arch/openrisc/include/asm/spr.h:16:27: error: impossible constraint in 'asm' kernel test robot
2025-03-31 14:12 ` Stafford Horne
2025-04-01  6:49   ` Sahil Siddiq

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.