mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Archie Pusaka <apusaka@chromium.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Shyh-In Hwang <josephsih@chromium.org>,
	Sonny Sasaka <sonnysasaka@chromium.org>
Subject: [jsarha:topic/chromeos-4.19-s0ix 9741/9999] net/bluetooth/af_bluetooth.c:551: Error: unrecognized opcode `csrc sstatus,a5'
Date: Mon, 12 Sep 2022 19:49:49 +0800	[thread overview]
Message-ID: <202209121904.dOfF1woq-lkp@intel.com> (raw)

tree:   https://github.com/jsarha/linux topic/chromeos-4.19-s0ix
head:   430bdaa0a8c38697780f45a148964d71951df11f
commit: 9b30b4dd29c7f6b53f53076d7339e112c308f05e [9741/9999] CHROMIUM: bluetooth: enable turn on/off debug logs at runtime
config: riscv-buildonly-randconfig-r003-20220911 (https://download.01.org/0day-ci/archive/20220912/202209121904.dOfF1woq-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 12.1.0
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
        # https://github.com/jsarha/linux/commit/9b30b4dd29c7f6b53f53076d7339e112c308f05e
        git remote add jsarha https://github.com/jsarha/linux
        git fetch --no-tags jsarha topic/chromeos-4.19-s0ix
        git checkout 9b30b4dd29c7f6b53f53076d7339e112c308f05e
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash M=net/bluetooth

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

All errors (new ones prefixed by >>):

   net/bluetooth/af_bluetooth.c: Assembler messages:
   net/bluetooth/af_bluetooth.c:540: Error: unrecognized opcode `csrs sstatus,a5'
>> net/bluetooth/af_bluetooth.c:551: Error: unrecognized opcode `csrc sstatus,a5'
   net/bluetooth/af_bluetooth.c:551: Error: unrecognized opcode `csrs sstatus,a5'


vim +551 net/bluetooth/af_bluetooth.c

^1da177e4c3f41 Linus Torvalds  2005-04-16  522  
3241ad820dbb17 Marcel Holtmann 2008-07-14  523  int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
3241ad820dbb17 Marcel Holtmann 2008-07-14  524  {
3241ad820dbb17 Marcel Holtmann 2008-07-14  525  	struct sock *sk = sock->sk;
43cbeee9f9b263 Marcel Holtmann 2008-07-14  526  	struct sk_buff *skb;
43cbeee9f9b263 Marcel Holtmann 2008-07-14  527  	long amount;
3241ad820dbb17 Marcel Holtmann 2008-07-14  528  	int err;
3241ad820dbb17 Marcel Holtmann 2008-07-14  529  
3241ad820dbb17 Marcel Holtmann 2008-07-14  530  	BT_DBG("sk %p cmd %x arg %lx", sk, cmd, arg);
3241ad820dbb17 Marcel Holtmann 2008-07-14  531  
3241ad820dbb17 Marcel Holtmann 2008-07-14  532  	switch (cmd) {
43cbeee9f9b263 Marcel Holtmann 2008-07-14  533  	case TIOCOUTQ:
43cbeee9f9b263 Marcel Holtmann 2008-07-14  534  		if (sk->sk_state == BT_LISTEN)
43cbeee9f9b263 Marcel Holtmann 2008-07-14  535  			return -EINVAL;
43cbeee9f9b263 Marcel Holtmann 2008-07-14  536  
31e6d363abcd0d Eric Dumazet    2009-06-17  537  		amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk);
43cbeee9f9b263 Marcel Holtmann 2008-07-14  538  		if (amount < 0)
43cbeee9f9b263 Marcel Holtmann 2008-07-14  539  			amount = 0;
43cbeee9f9b263 Marcel Holtmann 2008-07-14  540  		err = put_user(amount, (int __user *) arg);
43cbeee9f9b263 Marcel Holtmann 2008-07-14  541  		break;
43cbeee9f9b263 Marcel Holtmann 2008-07-14  542  
43cbeee9f9b263 Marcel Holtmann 2008-07-14  543  	case TIOCINQ:
43cbeee9f9b263 Marcel Holtmann 2008-07-14  544  		if (sk->sk_state == BT_LISTEN)
43cbeee9f9b263 Marcel Holtmann 2008-07-14  545  			return -EINVAL;
43cbeee9f9b263 Marcel Holtmann 2008-07-14  546  
43cbeee9f9b263 Marcel Holtmann 2008-07-14  547  		lock_sock(sk);
43cbeee9f9b263 Marcel Holtmann 2008-07-14  548  		skb = skb_peek(&sk->sk_receive_queue);
43cbeee9f9b263 Marcel Holtmann 2008-07-14  549  		amount = skb ? skb->len : 0;
43cbeee9f9b263 Marcel Holtmann 2008-07-14  550  		release_sock(sk);
43cbeee9f9b263 Marcel Holtmann 2008-07-14 @551  		err = put_user(amount, (int __user *) arg);
43cbeee9f9b263 Marcel Holtmann 2008-07-14  552  		break;
43cbeee9f9b263 Marcel Holtmann 2008-07-14  553  
3241ad820dbb17 Marcel Holtmann 2008-07-14  554  	case SIOCGSTAMP:
3241ad820dbb17 Marcel Holtmann 2008-07-14  555  		err = sock_get_timestamp(sk, (struct timeval __user *) arg);
3241ad820dbb17 Marcel Holtmann 2008-07-14  556  		break;
3241ad820dbb17 Marcel Holtmann 2008-07-14  557  
3241ad820dbb17 Marcel Holtmann 2008-07-14  558  	case SIOCGSTAMPNS:
3241ad820dbb17 Marcel Holtmann 2008-07-14  559  		err = sock_get_timestampns(sk, (struct timespec __user *) arg);
3241ad820dbb17 Marcel Holtmann 2008-07-14  560  		break;
3241ad820dbb17 Marcel Holtmann 2008-07-14  561  
3241ad820dbb17 Marcel Holtmann 2008-07-14  562  	default:
3241ad820dbb17 Marcel Holtmann 2008-07-14  563  		err = -ENOIOCTLCMD;
3241ad820dbb17 Marcel Holtmann 2008-07-14  564  		break;
3241ad820dbb17 Marcel Holtmann 2008-07-14  565  	}
3241ad820dbb17 Marcel Holtmann 2008-07-14  566  
3241ad820dbb17 Marcel Holtmann 2008-07-14  567  	return err;
3241ad820dbb17 Marcel Holtmann 2008-07-14  568  }
3241ad820dbb17 Marcel Holtmann 2008-07-14  569  EXPORT_SYMBOL(bt_sock_ioctl);
3241ad820dbb17 Marcel Holtmann 2008-07-14  570  

:::::: The code at line 551 was first introduced by commit
:::::: 43cbeee9f9b26300275e4e2d55ed1607f8c5f760 [Bluetooth] Add support for TIOCOUTQ and TIOCINQ ioctls

:::::: TO: Marcel Holtmann <marcel@holtmann.org>
:::::: CC: Marcel Holtmann <marcel@holtmann.org>

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

                 reply	other threads:[~2022-09-12 11:51 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=202209121904.dOfF1woq-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=apusaka@chromium.org \
    --cc=josephsih@chromium.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sonnysasaka@chromium.org \
    /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

all inboxes | Powered by JetHome®