Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752439AbdCEVkr (ORCPT ); Sun, 5 Mar 2017 16:40:47 -0500 Received: from mail-pf0-f173.google.com ([209.85.192.173]:35988 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751863AbdCEVkq (ORCPT ); Sun, 5 Mar 2017 16:40:46 -0500 Date: Mon, 6 Mar 2017 06:40:41 +0900 From: Stafford Horne To: kbuild test robot Cc: Stefan Kristiansson , kbuild-all@01.org, linux-kernel@vger.kernel.org Subject: Re: arch/openrisc/include/asm/bitops/atomic.h:35: Error: unknown opcode2 `l.lwa'. Message-ID: <20170305214041.GC2449@lianli.shorne-pla.net> References: <201703050720.YGWcD72o%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201703050720.YGWcD72o%fengguang.wu@intel.com> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 10374 Lines: 156 On Sun, Mar 05, 2017 at 07:56:25AM +0800, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 2d62e0768d3c28536d4cfe4c40ba1e5e8e442a93 > commit: 0e9f9fd20ce931cc2cf0519c56ae33fc74d656ad openrisc: add atomic bitops > date: 8 days ago > config: openrisc-or1ksim_defconfig (attached as .config) > compiler: or32-linux-gcc (GCC) 4.5.1-or32-1.0rc1 Hello, This should not happen, I patched make.cross to download the or1k-linux-gcc toolchain. Could you let me know if there is really something wrong? Maybe an old version or make.cross on this host? -Stafford > reproduce: > wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > git checkout 0e9f9fd20ce931cc2cf0519c56ae33fc74d656ad > # save the attached .config to linux build tree > make.cross ARCH=openrisc > > All errors (new ones prefixed by >>): > > arch/openrisc/include/asm/bitops/atomic.h: Assembler messages: > >> arch/openrisc/include/asm/bitops/atomic.h:35: Error: unknown opcode2 `l.lwa'. > >> arch/openrisc/include/asm/bitops/atomic.h:37: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:18: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:20: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:18: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:20: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:18: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:20: Error: unknown opcode2 `l.swa'. > >> arch/openrisc/include/asm/bitops/atomic.h:35: Error: unknown opcode2 `l.lwa'. > >> arch/openrisc/include/asm/bitops/atomic.h:37: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:18: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:20: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:18: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:20: Error: unknown opcode2 `l.swa'. > >> arch/openrisc/include/asm/bitops/atomic.h:35: Error: unknown opcode2 `l.lwa'. > >> arch/openrisc/include/asm/bitops/atomic.h:37: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:18: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:20: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:18: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:20: Error: unknown opcode2 `l.swa'. > >> arch/openrisc/include/asm/bitops/atomic.h:35: Error: unknown opcode2 `l.lwa'. > >> arch/openrisc/include/asm/bitops/atomic.h:37: Error: unknown opcode2 `l.swa'. > >> arch/openrisc/include/asm/bitops/atomic.h:35: Error: unknown opcode2 `l.lwa'. > >> arch/openrisc/include/asm/bitops/atomic.h:37: Error: unknown opcode2 `l.swa'. > -- > arch/openrisc/include/asm/bitops/atomic.h: Assembler messages: > arch/openrisc/include/asm/bitops/atomic.h:18: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:20: Error: unknown opcode2 `l.swa'. > >> arch/openrisc/include/asm/bitops/atomic.h:35: Error: unknown opcode2 `l.lwa'. > >> arch/openrisc/include/asm/bitops/atomic.h:37: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:18: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:20: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:18: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:20: Error: unknown opcode2 `l.swa'. > >> arch/openrisc/include/asm/bitops/atomic.h:35: Error: unknown opcode2 `l.lwa'. > >> arch/openrisc/include/asm/bitops/atomic.h:37: Error: unknown opcode2 `l.swa'. > -- > arch/openrisc/include/asm/bitops/atomic.h: Assembler messages: > arch/openrisc/include/asm/bitops/atomic.h:90: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:92: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:18: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:20: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:90: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:92: Error: unknown opcode2 `l.swa'. > >> arch/openrisc/include/asm/bitops/atomic.h:35: Error: unknown opcode2 `l.lwa'. > >> arch/openrisc/include/asm/bitops/atomic.h:37: Error: unknown opcode2 `l.swa'. > >> arch/openrisc/include/asm/bitops/atomic.h:35: Error: unknown opcode2 `l.lwa'. > >> arch/openrisc/include/asm/bitops/atomic.h:37: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:70: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:72: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:70: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:72: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:90: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:92: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:90: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:92: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:18: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:20: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:18: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:20: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:90: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:92: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:70: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:72: Error: unknown opcode2 `l.swa'. > >> arch/openrisc/include/asm/bitops/atomic.h:35: Error: unknown opcode2 `l.lwa'. > >> arch/openrisc/include/asm/bitops/atomic.h:37: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:18: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:20: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:70: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:72: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:70: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:72: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:70: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:72: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:70: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:72: Error: unknown opcode2 `l.swa'. > >> arch/openrisc/include/asm/bitops/atomic.h:35: Error: unknown opcode2 `l.lwa'. > >> arch/openrisc/include/asm/bitops/atomic.h:37: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:18: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:20: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:70: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:72: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:90: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:92: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:70: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:72: Error: unknown opcode2 `l.swa'. > net/core/dev.c: In function 'validate_xmit_skb_list': > net/core/dev.c:2989:39: warning: 'tail' may be used uninitialized in this function > >> arch/openrisc/include/asm/bitops/atomic.h:35: Error: unknown opcode2 `l.lwa'. > >> arch/openrisc/include/asm/bitops/atomic.h:37: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:18: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:20: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:18: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:20: Error: unknown opcode2 `l.swa'. > >> arch/openrisc/include/asm/bitops/atomic.h:35: Error: unknown opcode2 `l.lwa'. > >> arch/openrisc/include/asm/bitops/atomic.h:37: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:18: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:20: Error: unknown opcode2 `l.swa'. > -- > arch/openrisc/include/asm/bitops/atomic.h: Assembler messages: > >> arch/openrisc/include/asm/bitops/atomic.h:35: Error: unknown opcode2 `l.lwa'. > >> arch/openrisc/include/asm/bitops/atomic.h:37: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:70: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:72: Error: unknown opcode2 `l.swa'. > arch/openrisc/include/asm/bitops/atomic.h:70: Error: unknown opcode2 `l.lwa'. > arch/openrisc/include/asm/bitops/atomic.h:72: Error: unknown opcode2 `l.swa'. > >> arch/openrisc/include/asm/bitops/atomic.h:35: Error: unknown opcode2 `l.lwa'. > >> arch/openrisc/include/asm/bitops/atomic.h:37: Error: unknown opcode2 `l.swa'. > > vim +35 arch/openrisc/include/asm/bitops/atomic.h > > 29 static inline void clear_bit(int nr, volatile unsigned long *addr) > 30 { > 31 unsigned long mask = BIT_MASK(nr); > 32 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); > 33 unsigned long tmp; > 34 > > 35 __asm__ __volatile__( > 36 "1: l.lwa %0,0(%1) \n" > > 37 " l.and %0,%0,%2 \n" > 38 " l.swa 0(%1),%0 \n" > 39 " l.bnf 1b \n" > 40 " l.nop \n" > > --- > 0-DAY kernel test infrastructure Open Source Technology Center > https://lists.01.org/pipermail/kbuild-all Intel Corporation