All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: kbuild-all@lists.01.org
Subject: Re: [char-misc:char-misc-testing 33/62] drivers/misc/bcm-vk/bcm_vk_msg.c:56:35: warning: operator has lower precedence than '|'; '|' will be evaluated first
Date: Thu, 28 Jan 2021 09:06:37 +0100	[thread overview]
Message-ID: <YBJwjTi77iQWwD3s@kroah.com> (raw)
In-Reply-To: <202101281343.HHBfhVkw-lkp@intel.com>

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

On Thu, Jan 28, 2021 at 01:42:55PM +0800, kernel test robot wrote:
> vim +56 drivers/misc/bcm-vk/bcm_vk_msg.c
> 
>     52	
>     53	static void set_q_num(struct vk_msg_blk *msg, u32 q_num)
>     54	{
>     55		msg->trans_id = (msg->trans_id & ~BCM_VK_MSG_Q_MASK) |
>   > 56			(q_num >= VK_MSGQ_PER_CHAN_MAX) ? VK_MSGQ_NUM_DEFAULT : q_num;

That is a pretty horrible chunk of code, Scott, can you make this a
"real" if statement please so that we can read it?  :)

thanks,

greg k-h

  reply	other threads:[~2021-01-28  8:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-28  5:42 [char-misc:char-misc-testing 33/62] drivers/misc/bcm-vk/bcm_vk_msg.c:56:35: warning: operator has lower precedence than '|'; '|' will be evaluated first kernel test robot
2021-01-28  8:06 ` Greg Kroah-Hartman [this message]
2021-01-29  0:35   ` Scott Branden
2021-01-29  6:07     ` Scott Branden

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=YBJwjTi77iQWwD3s@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=kbuild-all@lists.01.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 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.