2017-06-30 04:00:58

by Stephen Rothwell

[permalink] [raw]
Subject: linux-next: build warning after merge of the drivers-x86 tree

Hi Darren,

After merging the drivers-x86 tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

drivers/platform/x86/sony-laptop.c: In function 'sony_laptop_setup_input':
drivers/platform/x86/sony-laptop.c:494:19: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers]
key_dev->keycode = &sony_laptop_input_keycode_map;
^

Introduced by commit

a0f0a5e1978b ("platform/x86: sony-laptop: constify few static structures")

--
Cheers,
Stephen Rothwell


2017-06-30 05:12:31

by Arvind Yadav

[permalink] [raw]
Subject: Re: linux-next: build warning after merge of the drivers-x86 tree

Hi,
I have push one more patch which does not have this warning.
please avoid my first patch.

Thanks
~ arvind

On Friday 30 June 2017 09:30 AM, Stephen Rothwell wrote:
> Hi Darren,
>
> After merging the drivers-x86 tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
>
> drivers/platform/x86/sony-laptop.c: In function 'sony_laptop_setup_input':
> drivers/platform/x86/sony-laptop.c:494:19: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers]
> key_dev->keycode = &sony_laptop_input_keycode_map;
> ^
>
> Introduced by commit
>
> a0f0a5e1978b ("platform/x86: sony-laptop: constify few static structures")
>

2017-07-01 03:32:11

by Darren Hart

[permalink] [raw]
Subject: Re: linux-next: build warning after merge of the drivers-x86 tree

On Fri, Jun 30, 2017 at 02:00:54PM +1000, Stephen Rothwell wrote:
> Hi Darren,
>
> After merging the drivers-x86 tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
>
> drivers/platform/x86/sony-laptop.c: In function 'sony_laptop_setup_input':
> drivers/platform/x86/sony-laptop.c:494:19: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers]
> key_dev->keycode = &sony_laptop_input_keycode_map;
> ^
>
> Introduced by commit
>
> a0f0a5e1978b ("platform/x86: sony-laptop: constify few static structures")

Apologies, and thanks for the catch. Rolled the fix from Arnd together with this
and the new one from Arvind. for-next had to be rebased to avoid introducing
this error into mainline.

--
Darren Hart
VMware Open Source Technology Center