[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75VfU8Pa+xoCP=ybCr067TbcOn+OU4VR=YJpXN__P-swJxw@mail.gmail.com>
Date: Fri, 30 Jun 2017 18:58:24 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: Andy Shevchenko <andy@...radead.org>,
Mattia Dongili <malattia@...ux.it>,
Darren Hart <dvhart@...radead.org>,
Arvind Yadav <arvind.yadav.cs@...il.com>,
Platform Driver <platform-driver-x86@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] platform/x86: sony-laptop: revert 'const' on keymap
On Fri, Jun 30, 2017 at 6:45 PM, Arnd Bergmann <arnd@...db.de> wrote:
> Marking sony_laptop_input_keycode_map 'const' sounds like a good
> idea in principle, but unfortunately causes a compiler warning:
>
> drivers/platform/x86/sony-laptop.c: In function 'sony_laptop_setup_input':
> drivers/platform/x86/sony-laptop.c:494:19: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-array-qualifiers]
>
> This reverts that part of the previous cleanup patch.
Thanks, pushed directly to for-next.
I didn't get a clear result from our 0day kbuild bot, so it was in
testing previously.
Darren, it looks like we need more clear coordination on what is going
to be applied for-next from testing.
>
> Fixes: a0f0a5e1978b ("platform/x86: sony-laptop: constify few static structures")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
> drivers/platform/x86/sony-laptop.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c
> index 5fc20473d51e..bfae79534f44 100644
> --- a/drivers/platform/x86/sony-laptop.c
> +++ b/drivers/platform/x86/sony-laptop.c
> @@ -299,7 +299,7 @@ static const int sony_laptop_input_index[] = {
> 59, /* 72 SONYPI_EVENT_VENDOR_PRESSED */
> };
>
> -static const int sony_laptop_input_keycode_map[] = {
> +static int sony_laptop_input_keycode_map[] = {
> KEY_CAMERA, /* 0 SONYPI_EVENT_CAPTURE_PRESSED */
> KEY_RESERVED, /* 1 SONYPI_EVENT_CAPTURE_RELEASED */
> KEY_RESERVED, /* 2 SONYPI_EVENT_CAPTURE_PARTIALPRESSED */
> --
> 2.9.0
>
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists