From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 39F381C1611 for ; Sat, 13 Sep 2014 08:56:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 343CA91FDA for ; Sat, 13 Sep 2014 08:56:55 +0000 (UTC) Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NKKOakJU6pau for ; Sat, 13 Sep 2014 08:56:54 +0000 (UTC) Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) by whitealder.osuosl.org (Postfix) with ESMTPS id 7CE5391FDE for ; Sat, 13 Sep 2014 08:56:53 +0000 (UTC) Date: Sat, 13 Sep 2014 11:56:52 +0300 From: Dan Carpenter Subject: Re: [PATCH 1/1] staging: emxx_udc: fix compile warnings: discarding const qualifier Message-ID: <20140913085651.GA6600@mwanda> References: <1410546078-9873-1-git-send-email-vinc94@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1410546078-9873-1-git-send-email-vinc94@gmail.com> List-Id: Linux Driver Project Developer List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: driverdev-devel-bounces@linuxdriverproject.org To: Vincenzo Scotti Cc: gregkh@linuxfoundation.org, driverdev-devel@linuxdriverproject.org On Fri, Sep 12, 2014 at 08:21:18PM +0200, Vincenzo Scotti wrote: > Signed-off-by: Vincenzo Scotti > Reported-by: kbuild test robot > --- > 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