linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: popcornmix <popcornmix@gmail.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org, "Kari Suvanto" <karis79@gmail.com>,
	"Noralf Trønnes" <noralf@tronnes.org>,
	"Phil Elwell" <phil@raspberrypi.org>,
	"Malik Olivier Boussejra" <malik@boussejra.com>,
	"Paul Zimmerman" <paulz@synopsys.com>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Lukas Wunner" <lukas@wunner.de>,
	"Nathan Chancellor" <natechancellor@gmail.com>,
	"Dave Stevenson" <dave.stevenson@raspberrypi.org>,
	"Michael Zoran" <mzoran@crowfest.net>,
	"Marek Behún" <marek.behun@nic.cz>,
	"Jonathan Bell" <jonathan@raspberrypi.org>,
	"Hui Wang" <hui.wang@canonical.com>,
	"Zixuan Wang" <wangzixuan@sjtu.edu.cn>
Subject: [l1k:smsc95xx_5.17 56/887] arch/arm/include/asm/irqflags.h:182:3: error: invalid operand for instruction
Date: Fri, 8 Apr 2022 20:56:50 +0800	[thread overview]
Message-ID: <202204082019.m8kwLvwM-lkp@intel.com> (raw)

tree:   https://github.com/l1k/linux smsc95xx_5.17
head:   05d68ced287b30f62f18f95b5476135ef669804a
commit: a8197852bb8f1f6804cff9442d426888e97aaed3 [56/887] Add dwc_otg driver
config: arm-randconfig-r013-20220408 (https://download.01.org/0day-ci/archive/20220408/202204082019.m8kwLvwM-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c29a51b3a257908aebc01cd7c4655665db317d66)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://github.com/l1k/linux/commit/a8197852bb8f1f6804cff9442d426888e97aaed3
        git remote add l1k https://github.com/l1k/linux
        git fetch --no-tags l1k smsc95xx_5.17
        git checkout a8197852bb8f1f6804cff9442d426888e97aaed3
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/usb/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from drivers/usb/core/hub.c:13:
   In file included from include/linux/kernel.h:22:
   In file included from include/linux/bitops.h:33:
   In file included from arch/arm/include/asm/bitops.h:28:
   In file included from include/linux/irqflags.h:16:
>> arch/arm/include/asm/irqflags.h:182:3: error: invalid operand for instruction
                   "    msr    cpsr_c, %0    @ local_irq_restore"
                   ^
   <inline asm>:1:13: note: instantiated into assembly here
               msr    cpsr_c, r0    @ local_irq_restore
                      ^
   1 error generated.
--
   In file included from drivers/usb/core/hcd.c:13:
   In file included from include/linux/module.h:13:
   In file included from include/linux/stat.h:19:
   In file included from include/linux/time.h:6:
   In file included from include/linux/math64.h:6:
   In file included from include/linux/math.h:5:
   In file included from arch/arm/include/asm/div64.h:107:
   In file included from include/asm-generic/div64.h:55:
   In file included from include/linux/log2.h:12:
   In file included from include/linux/bitops.h:33:
   In file included from arch/arm/include/asm/bitops.h:28:
   In file included from include/linux/irqflags.h:16:
>> arch/arm/include/asm/irqflags.h:182:3: error: invalid operand for instruction
                   "    msr    cpsr_c, %0    @ local_irq_restore"
                   ^
   <inline asm>:1:13: note: instantiated into assembly here
               msr    cpsr_c, r1    @ local_irq_restore
                      ^
   In file included from drivers/usb/core/hcd.c:13:
   In file included from include/linux/module.h:13:
   In file included from include/linux/stat.h:19:
   In file included from include/linux/time.h:6:
   In file included from include/linux/math64.h:6:
   In file included from include/linux/math.h:5:
   In file included from arch/arm/include/asm/div64.h:107:
   In file included from include/asm-generic/div64.h:55:
   In file included from include/linux/log2.h:12:
   In file included from include/linux/bitops.h:33:
   In file included from arch/arm/include/asm/bitops.h:28:
   In file included from include/linux/irqflags.h:16:
>> arch/arm/include/asm/irqflags.h:182:3: error: invalid operand for instruction
                   "    msr    cpsr_c, %0    @ local_irq_restore"
                   ^
   <inline asm>:1:13: note: instantiated into assembly here
               msr    cpsr_c, r1    @ local_irq_restore
                      ^
>> <inline asm>:1:13: error: invalid operand for instruction
               msr    cpsr_c, r0    @ local_irq_restore
                      ^
   In file included from drivers/usb/core/hcd.c:13:
   In file included from include/linux/module.h:13:
   In file included from include/linux/stat.h:19:
   In file included from include/linux/time.h:6:
   In file included from include/linux/math64.h:6:
   In file included from include/linux/math.h:5:
   In file included from arch/arm/include/asm/div64.h:107:
   In file included from include/asm-generic/div64.h:55:
   In file included from include/linux/log2.h:12:
   In file included from include/linux/bitops.h:33:
   In file included from arch/arm/include/asm/bitops.h:28:
   In file included from include/linux/irqflags.h:16:
>> arch/arm/include/asm/irqflags.h:182:3: error: invalid operand for instruction
                   "    msr    cpsr_c, %0    @ local_irq_restore"
                   ^
   <inline asm>:1:13: note: instantiated into assembly here
               msr    cpsr_c, r1    @ local_irq_restore
                      ^
   In file included from drivers/usb/core/hcd.c:13:
   In file included from include/linux/module.h:13:
   In file included from include/linux/stat.h:19:
   In file included from include/linux/time.h:6:
   In file included from include/linux/math64.h:6:
   In file included from include/linux/math.h:5:
   In file included from arch/arm/include/asm/div64.h:107:
   In file included from include/asm-generic/div64.h:55:
   In file included from include/linux/log2.h:12:
   In file included from include/linux/bitops.h:33:
   In file included from arch/arm/include/asm/bitops.h:28:
   In file included from include/linux/irqflags.h:16:
>> arch/arm/include/asm/irqflags.h:182:3: error: invalid operand for instruction
                   "    msr    cpsr_c, %0    @ local_irq_restore"
                   ^
   <inline asm>:1:13: note: instantiated into assembly here
               msr    cpsr_c, r1    @ local_irq_restore
                      ^
   In file included from drivers/usb/core/hcd.c:13:
   In file included from include/linux/module.h:13:
   In file included from include/linux/stat.h:19:
   In file included from include/linux/time.h:6:
   In file included from include/linux/math64.h:6:
   In file included from include/linux/math.h:5:
   In file included from arch/arm/include/asm/div64.h:107:
   In file included from include/asm-generic/div64.h:55:
   In file included from include/linux/log2.h:12:
   In file included from include/linux/bitops.h:33:
   In file included from arch/arm/include/asm/bitops.h:28:
   In file included from include/linux/irqflags.h:16:
>> arch/arm/include/asm/irqflags.h:182:3: error: invalid operand for instruction
                   "    msr    cpsr_c, %0    @ local_irq_restore"
                   ^
   <inline asm>:1:13: note: instantiated into assembly here
               msr    cpsr_c, r0    @ local_irq_restore
                      ^
   In file included from drivers/usb/core/hcd.c:13:
   In file included from include/linux/module.h:13:
   In file included from include/linux/stat.h:19:
   In file included from include/linux/time.h:6:
   In file included from include/linux/math64.h:6:
   In file included from include/linux/math.h:5:
   In file included from arch/arm/include/asm/div64.h:107:
   In file included from include/asm-generic/div64.h:55:
   In file included from include/linux/log2.h:12:
   In file included from include/linux/bitops.h:33:
   In file included from arch/arm/include/asm/bitops.h:28:
   In file included from include/linux/irqflags.h:16:
>> arch/arm/include/asm/irqflags.h:182:3: error: invalid operand for instruction
                   "    msr    cpsr_c, %0    @ local_irq_restore"
                   ^
   <inline asm>:1:13: note: instantiated into assembly here
               msr    cpsr_c, r0    @ local_irq_restore
                      ^
   In file included from drivers/usb/core/hcd.c:13:
   In file included from include/linux/module.h:13:
   In file included from include/linux/stat.h:19:
   In file included from include/linux/time.h:6:
   In file included from include/linux/math64.h:6:
   In file included from include/linux/math.h:5:
   In file included from arch/arm/include/asm/div64.h:107:
   In file included from include/asm-generic/div64.h:55:
   In file included from include/linux/log2.h:12:
   In file included from include/linux/bitops.h:33:
   In file included from arch/arm/include/asm/bitops.h:28:
   In file included from include/linux/irqflags.h:16:
>> arch/arm/include/asm/irqflags.h:182:3: error: invalid operand for instruction
                   "    msr    cpsr_c, %0    @ local_irq_restore"
                   ^
   <inline asm>:1:13: note: instantiated into assembly here
               msr    cpsr_c, r0    @ local_irq_restore
                      ^
   In file included from drivers/usb/core/hcd.c:13:
   In file included from include/linux/module.h:13:
   In file included from include/linux/stat.h:19:
   In file included from include/linux/time.h:6:
   In file included from include/linux/math64.h:6:
   In file included from include/linux/math.h:5:
   In file included from arch/arm/include/asm/div64.h:107:
   In file included from include/asm-generic/div64.h:55:
   In file included from include/linux/log2.h:12:
   In file included from include/linux/bitops.h:33:
   In file included from arch/arm/include/asm/bitops.h:28:
   In file included from include/linux/irqflags.h:16:
>> arch/arm/include/asm/irqflags.h:182:3: error: invalid operand for instruction
                   "    msr    cpsr_c, %0    @ local_irq_restore"
                   ^
   <inline asm>:1:13: note: instantiated into assembly here
               msr    cpsr_c, r0    @ local_irq_restore
                      ^
   In file included from drivers/usb/core/hcd.c:13:
   In file included from include/linux/module.h:13:
   In file included from include/linux/stat.h:19:
   In file included from include/linux/time.h:6:
   In file included from include/linux/math64.h:6:
   In file included from include/linux/math.h:5:
   In file included from arch/arm/include/asm/div64.h:107:
   In file included from include/asm-generic/div64.h:55:
   In file included from include/linux/log2.h:12:
   In file included from include/linux/bitops.h:33:
   In file included from arch/arm/include/asm/bitops.h:28:
   In file included from include/linux/irqflags.h:16:
>> arch/arm/include/asm/irqflags.h:182:3: error: invalid operand for instruction
                   "    msr    cpsr_c, %0    @ local_irq_restore"
                   ^
   <inline asm>:1:13: note: instantiated into assembly here
               msr    cpsr_c, r0    @ local_irq_restore
                      ^
   In file included from drivers/usb/core/hcd.c:13:
   In file included from include/linux/module.h:13:
   In file included from include/linux/stat.h:19:
   In file included from include/linux/time.h:6:
   In file included from include/linux/math64.h:6:
   In file included from include/linux/math.h:5:
   In file included from arch/arm/include/asm/div64.h:107:
   In file included from include/asm-generic/div64.h:55:
   In file included from include/linux/log2.h:12:
   In file included from include/linux/bitops.h:33:
   In file included from arch/arm/include/asm/bitops.h:28:
   In file included from include/linux/irqflags.h:16:
>> arch/arm/include/asm/irqflags.h:182:3: error: invalid operand for instruction
                   "    msr    cpsr_c, %0    @ local_irq_restore"
                   ^
   <inline asm>:1:13: note: instantiated into assembly here
               msr    cpsr_c, r0    @ local_irq_restore
                      ^
   In file included from drivers/usb/core/hcd.c:13:
   In file included from include/linux/module.h:13:
   In file included from include/linux/stat.h:19:
   In file included from include/linux/time.h:6:
   In file included from include/linux/math64.h:6:
   In file included from include/linux/math.h:5:
   In file included from arch/arm/include/asm/div64.h:107:
   In file included from include/asm-generic/div64.h:55:
   In file included from include/linux/log2.h:12:
   In file included from include/linux/bitops.h:33:
   In file included from arch/arm/include/asm/bitops.h:28:
   In file included from include/linux/irqflags.h:16:
>> arch/arm/include/asm/irqflags.h:182:3: error: invalid operand for instruction
                   "    msr    cpsr_c, %0    @ local_irq_restore"
                   ^
   <inline asm>:1:13: note: instantiated into assembly here
               msr    cpsr_c, r0    @ local_irq_restore
                      ^
   In file included from drivers/usb/core/hcd.c:13:
   In file included from include/linux/module.h:13:
   In file included from include/linux/stat.h:19:
   In file included from include/linux/time.h:6:
   In file included from include/linux/math64.h:6:
   In file included from include/linux/math.h:5:
   In file included from arch/arm/include/asm/div64.h:107:
   In file included from include/asm-generic/div64.h:55:
   In file included from include/linux/log2.h:12:
   In file included from include/linux/bitops.h:33:
   In file included from arch/arm/include/asm/bitops.h:28:
   In file included from include/linux/irqflags.h:16:
>> arch/arm/include/asm/irqflags.h:182:3: error: invalid operand for instruction
                   "    msr    cpsr_c, %0    @ local_irq_restore"
                   ^
   <inline asm>:1:13: note: instantiated into assembly here
               msr    cpsr_c, r1    @ local_irq_restore
                      ^
   In file included from drivers/usb/core/hcd.c:13:
   In file included from include/linux/module.h:13:
   In file included from include/linux/stat.h:19:
   In file included from include/linux/time.h:6:
   In file included from include/linux/math64.h:6:
   In file included from include/linux/math.h:5:
   In file included from arch/arm/include/asm/div64.h:107:
   In file included from include/asm-generic/div64.h:55:
   In file included from include/linux/log2.h:12:
   In file included from include/linux/bitops.h:33:
   In file included from arch/arm/include/asm/bitops.h:28:
   In file included from include/linux/irqflags.h:16:
>> arch/arm/include/asm/irqflags.h:182:3: error: invalid operand for instruction
                   "    msr    cpsr_c, %0    @ local_irq_restore"
                   ^
   <inline asm>:1:13: note: instantiated into assembly here
               msr    cpsr_c, r0    @ local_irq_restore
                      ^
   In file included from drivers/usb/core/hcd.c:13:
   In file included from include/linux/module.h:13:
   In file included from include/linux/stat.h:19:
   In file included from include/linux/time.h:6:
   In file included from include/linux/math64.h:6:
   In file included from include/linux/math.h:5:
   In file included from arch/arm/include/asm/div64.h:107:
   In file included from include/asm-generic/div64.h:55:
   In file included from include/linux/log2.h:12:
   In file included from include/linux/bitops.h:33:
   In file included from arch/arm/include/asm/bitops.h:28:
   In file included from include/linux/irqflags.h:16:
>> arch/arm/include/asm/irqflags.h:182:3: error: invalid operand for instruction
                   "    msr    cpsr_c, %0    @ local_irq_restore"
                   ^
   <inline asm>:1:13: note: instantiated into assembly here
               msr    cpsr_c, r0    @ local_irq_restore
                      ^
   In file included from drivers/usb/core/hcd.c:13:
   In file included from include/linux/module.h:13:
   In file included from include/linux/stat.h:19:
   In file included from include/linux/time.h:6:
   In file included from include/linux/math64.h:6:
   In file included from include/linux/math.h:5:
   In file included from arch/arm/include/asm/div64.h:107:
   In file included from include/asm-generic/div64.h:55:
   In file included from include/linux/log2.h:12:
   In file included from include/linux/bitops.h:33:
   In file included from arch/arm/include/asm/bitops.h:28:
   In file included from include/linux/irqflags.h:16:
>> arch/arm/include/asm/irqflags.h:182:3: error: invalid operand for instruction
                   "    msr    cpsr_c, %0    @ local_irq_restore"
                   ^
   <inline asm>:1:13: note: instantiated into assembly here
               msr    cpsr_c, r0    @ local_irq_restore
                      ^
   In file included from drivers/usb/core/hcd.c:13:
   In file included from include/linux/module.h:13:
   In file included from include/linux/stat.h:19:
   In file included from include/linux/time.h:6:
   In file included from include/linux/math64.h:6:
   In file included from include/linux/math.h:5:
   In file included from arch/arm/include/asm/div64.h:107:
   In file included from include/asm-generic/div64.h:55:
   In file included from include/linux/log2.h:12:
   In file included from include/linux/bitops.h:33:
   In file included from arch/arm/include/asm/bitops.h:28:
   In file included from include/linux/irqflags.h:16:
>> arch/arm/include/asm/irqflags.h:182:3: error: invalid operand for instruction
                   "    msr    cpsr_c, %0    @ local_irq_restore"
                   ^
   <inline asm>:1:13: note: instantiated into assembly here
               msr    cpsr_c, r0    @ local_irq_restore
                      ^
   In file included from drivers/usb/core/hcd.c:13:
   In file included from include/linux/module.h:13:
   In file included from include/linux/stat.h:19:
   In file included from include/linux/time.h:6:
   In file included from include/linux/math64.h:6:
   In file included from include/linux/math.h:5:
   In file included from arch/arm/include/asm/div64.h:107:
   In file included from include/asm-generic/div64.h:55:
   In file included from include/linux/log2.h:12:
   In file included from include/linux/bitops.h:33:
   In file included from arch/arm/include/asm/bitops.h:28:
   In file included from include/linux/irqflags.h:16:
>> arch/arm/include/asm/irqflags.h:182:3: error: invalid operand for instruction
                   "    msr    cpsr_c, %0    @ local_irq_restore"
                   ^
   <inline asm>:1:13: note: instantiated into assembly here
               msr    cpsr_c, r0    @ local_irq_restore
                      ^
   18 errors generated.
..


vim +182 arch/arm/include/asm/irqflags.h

   164	
   165	/*
   166	 * restore saved IRQ state
   167	 */
   168	#define arch_local_irq_restore arch_local_irq_restore
   169	static inline void arch_local_irq_restore(unsigned long flags)
   170	{
   171		unsigned long temp = 0;
   172		flags &= ~(1 << 6);
   173		asm volatile (
   174			" mrs %0, cpsr"
   175			: "=r" (temp)
   176			:
   177			: "memory", "cc");
   178			/* Preserve FIQ bit */
   179			temp &= (1 << 6);
   180			flags = flags | temp;
   181		asm volatile (
 > 182			"    msr    cpsr_c, %0    @ local_irq_restore"
   183			:
   184			: "r" (flags)
   185			: "memory", "cc");
   186	}
   187	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-04-08 12:57 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=202204082019.m8kwLvwM-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dave.stevenson@raspberrypi.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=hui.wang@canonical.com \
    --cc=jonathan@raspberrypi.org \
    --cc=karis79@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=lukas@wunner.de \
    --cc=malik@boussejra.com \
    --cc=marek.behun@nic.cz \
    --cc=mzoran@crowfest.net \
    --cc=natechancellor@gmail.com \
    --cc=noralf@tronnes.org \
    --cc=paulz@synopsys.com \
    --cc=phil@raspberrypi.org \
    --cc=popcornmix@gmail.com \
    --cc=wangzixuan@sjtu.edu.cn \
    /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;
as well as URLs for NNTP newsgroup(s).