public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Changbin Du <changbin.du@gmail.com>
Cc: kbuild-all@01.org, linux-kbuild@vger.kernel.org,
	Masahiro Yamada <yamada.masahiro@socionext.com>
Subject: [kbuild:kbuild 2/4] arch/openrisc/include/asm/spr.h:20:27: error: impossible constraint in 'asm'
Date: Mon, 12 Nov 2018 02:17:02 +0800	[thread overview]
Message-ID: <201811120258.np3G1anC%fengguang.wu@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2353 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git kbuild
head:   e73c4f947acbe6ff12d1f1711d6a8c0ad1c9483a
commit: cc2b86bb90b2d045b82d45a6dbe7c9285e0f00b9 [2/4] kernel hacking: add a config option to disable compiler auto-inlining
config: openrisc-allyesconfig (attached as .config)
compiler: or1k-linux-gcc (GCC) 6.0.0 20160327 (experimental)
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout cc2b86bb90b2d045b82d45a6dbe7c9285e0f00b9
        # save the attached .config to linux build tree
        make.cross ARCH=openrisc 

All errors (new ones prefixed by >>):

   In file included from arch/openrisc/mm/cache.c:17:0:
   arch/openrisc/mm/cache.c: In function 'cache_loop':
   arch/openrisc/include/asm/spr.h:20:27: warning: asm operand 0 probably doesn't match constraints
    #define mtspr(_spr, _val) __asm__ __volatile__ (  \
                              ^
   arch/openrisc/mm/cache.c:29:3: note: in expansion of macro 'mtspr'
      mtspr(reg, line);
      ^~~~~
>> arch/openrisc/include/asm/spr.h:20:27: error: impossible constraint in 'asm'
    #define mtspr(_spr, _val) __asm__ __volatile__ (  \
                              ^
   arch/openrisc/mm/cache.c:29:3: note: in expansion of macro 'mtspr'
      mtspr(reg, line);
      ^~~~~

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

58e0166a4 Jonas Bonn 2011-06-04  19  
58e0166a4 Jonas Bonn 2011-06-04 @20  #define mtspr(_spr, _val) __asm__ __volatile__ (		\
58e0166a4 Jonas Bonn 2011-06-04  21  	"l.mtspr r0,%1,%0"					\
58e0166a4 Jonas Bonn 2011-06-04  22  	: : "K" (_spr), "r" (_val))
58e0166a4 Jonas Bonn 2011-06-04  23  #define mtspr_off(_spr, _off, _val) __asm__ __volatile__ (	\
58e0166a4 Jonas Bonn 2011-06-04  24  	"l.mtspr %0,%1,%2"					\
58e0166a4 Jonas Bonn 2011-06-04  25  	: : "r" (_off), "r" (_val), "K" (_spr))
58e0166a4 Jonas Bonn 2011-06-04  26  

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

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

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 47219 bytes --]

             reply	other threads:[~2018-11-12  4:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-11 18:17 kbuild test robot [this message]
     [not found] ` <CAAfxs76Qe7ORo7RFqSXc28bY15DR3zCy6rUAvg9T76xWS1TsWw@mail.gmail.com>
2018-11-11 21:51   ` [kbuild-all] [kbuild:kbuild 2/4] arch/openrisc/include/asm/spr.h:20:27: error: impossible constraint in 'asm' Stafford Horne
2018-11-12 14:36     ` Changbin Du
2018-11-13 20:36       ` Stafford Horne
2018-11-13  0:09     ` Rong Chen
2018-11-13 20:32       ` Stafford Horne

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=201811120258.np3G1anC%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=changbin.du@gmail.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=yamada.masahiro@socionext.com \
    /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