All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: Vincenzo Scotti <vinc94@gmail.com>
Cc: gregkh@linuxfoundation.org, driverdev-devel@linuxdriverproject.org
Subject: Re: [PATCH 1/1] staging: emxx_udc: fix compile warnings: discarding const qualifier
Date: Sat, 13 Sep 2014 11:56:52 +0300	[thread overview]
Message-ID: <20140913085651.GA6600@mwanda> (raw)
In-Reply-To: <1410546078-9873-1-git-send-email-vinc94@gmail.com>

On Fri, Sep 12, 2014 at 08:21:18PM +0200, Vincenzo Scotti wrote:
> Signed-off-by: Vincenzo Scotti <vinc94@gmail.com>
> Reported-by: kbuild test robot <fengguang.wu@intel.com>
> ---
>  drivers/staging/emxx_udc/emxx_udc.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c
> index ef956df..4b5210fc 100644
> --- a/drivers/staging/emxx_udc/emxx_udc.c
> +++ b/drivers/staging/emxx_udc/emxx_udc.c
> @@ -3235,7 +3235,7 @@ static const char g_epb_name[] = "epb-bulk";
>  static const char g_epc_name[] = "epc-nulk";
>  static const char g_epd_name[] = "epdin-int";
>  
> -static char *gp_ep_name[NUM_ENDPOINTS] = {
> +static const char *gp_ep_name[NUM_ENDPOINTS] = {
>  	g_ep0_name,
>  	g_ep1_name,
>  	g_ep2_name,
> @@ -3298,7 +3298,7 @@ static void __init nbu2ss_drv_ep_init(struct nbu2ss_udc *udc)
>  
>  
>  	for (i = 0; i < NUM_ENDPOINTS; i++)
> -		nbu2ss_drv_set_ep_info(udc, &udc->ep[i], gp_ep_name[i]);
> +		nbu2ss_drv_set_ep_info(udc, &udc->ep[i], (u8*)gp_ep_name[i]);

nbu2ss_drv_set_ep_info() needs to be fixed.  It should take a "char *"
instead of a "u8 *".  Please redo.

regards,
dan carpenter

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

      reply	other threads:[~2014-09-13  8:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-12 18:21 [PATCH 1/1] staging: emxx_udc: fix compile warnings: discarding const qualifier Vincenzo Scotti
2014-09-13  8:56 ` Dan Carpenter [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=20140913085651.GA6600@mwanda \
    --to=dan.carpenter@oracle.com \
    --cc=driverdev-devel@linuxdriverproject.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=vinc94@gmail.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.