All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Jules Irenge <jbi.octave@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [PATCH] staging: emxx_udc: replace bool with unsigned base type to fix  possible alignment warning
Date: Fri, 8 Mar 2019 07:12:37 +0100	[thread overview]
Message-ID: <20190308061237.GA32256@kroah.com> (raw)
In-Reply-To: <20190308000632.23509-1-jbi.octave@gmail.com>

On Fri, Mar 08, 2019 at 12:06:32AM +0000, Jules Irenge wrote:
> replace bool with unsigned base type to fix the checkpatch.pl warning
>  Avoid using bool structure members because of possible alignment issues
> 
> Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
> ---
>  drivers/staging/emxx_udc/emxx_udc.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/emxx_udc/emxx_udc.h b/drivers/staging/emxx_udc/emxx_udc.h
> index b8c3dee5626c..4a610bc90db3 100644
> --- a/drivers/staging/emxx_udc/emxx_udc.h
> +++ b/drivers/staging/emxx_udc/emxx_udc.h
> @@ -528,7 +528,7 @@ struct nbu2ss_req {
>  	struct list_head		queue;
>  
>  	u32			div_len;
> -	bool		dma_flag;
> +	unsigned int		dma_flag;

No, there's no issue with the original code here.  See the archives for
why making this type of change is not always what you want to do.

thanks,

greg k-h


      reply	other threads:[~2019-03-08  6:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-08  0:06 [PATCH] staging: emxx_udc: replace bool with unsigned base type to fix possible alignment warning Jules Irenge
2019-03-08  6:12 ` Greg KH [this message]

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=20190308061237.GA32256@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=jbi.octave@gmail.com \
    --cc=outreachy-kernel@googlegroups.com \
    /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.