* [PATCH 1/1] staging: emxx_udc: fix compile warnings: discarding const qualifier
@ 2014-09-12 18:21 Vincenzo Scotti
2014-09-13 8:56 ` Dan Carpenter
0 siblings, 1 reply; 2+ messages in thread
From: Vincenzo Scotti @ 2014-09-12 18:21 UTC (permalink / raw)
To: driverdev-devel; +Cc: gregkh
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]);
list_del_init(&udc->ep[0].ep.ep_list);
}
--
2.1.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] staging: emxx_udc: fix compile warnings: discarding const qualifier
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
0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2014-09-13 8:56 UTC (permalink / raw)
To: Vincenzo Scotti; +Cc: gregkh, driverdev-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-13 8:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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.