All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: jzp0409 <jzp0409@163.com>
Cc: linux-usb@vger.kernel.org, "edison.jiang" <jiangzhipeng@yulong.com>
Subject: Re: [PATCH] usb: acpi: Fix shifting 31 bits
Date: Wed, 17 Mar 2021 15:51:02 +0100	[thread overview]
Message-ID: <YFIXVojHb3LmCOTb@kroah.com> (raw)
In-Reply-To: <20210317142513.1340-1-jzp0409@163.com>

On Wed, Mar 17, 2021 at 10:25:13PM +0800, jzp0409 wrote:
> From: "edison.jiang" <jiangzhipeng@yulong.com>
> 
> Fix undefined behaviour in the usb apci driver by using 'BIT' marcro.

What is undefined about it?

> 
> Signed-off-by: edison.jiang <jiangzhipeng@yulong.com>

This name is not a valid signed-off-by name (I doubt you sign documents
with a ".", right?) and it does not match the "From:" name either, so
something needs to be fixed before this patch could be accepted.

> ---
>  drivers/usb/core/usb-acpi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/core/usb-acpi.c b/drivers/usb/core/usb-acpi.c
> index 50b2fc7..3e467a8 100644
> --- a/drivers/usb/core/usb-acpi.c
> +++ b/drivers/usb/core/usb-acpi.c
> @@ -122,7 +122,7 @@ static enum usb_port_connect_type usb_acpi_get_connect_type(acpi_handle handle,
>   * Private to usb-acpi, all the core needs to know is that
>   * port_dev->location is non-zero when it has been set by the firmware.
>   */
> -#define USB_ACPI_LOCATION_VALID (1 << 31)
> +#define USB_ACPI_LOCATION_VALID BIT(31)

I do not understand what this is trying to fix, please be more specific.

thanks,

greg k-h

  reply	other threads:[~2021-03-17 15:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-17 14:25 [PATCH] usb: acpi: Fix shifting 31 bits jzp0409
2021-03-17 14:51 ` Greg KH [this message]
2021-03-18  2:14   ` jiangzhipeng
2021-03-18  5:27     ` Greg KH
2021-03-18  8:34       ` Greg KH

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=YFIXVojHb3LmCOTb@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=jiangzhipeng@yulong.com \
    --cc=jzp0409@163.com \
    --cc=linux-usb@vger.kernel.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.