linux-next: build warning after merge of the drivers-x86 tree

3 messages, 3 authors, 2021-02-04 · open the first message on its own page

linux-next: build warning after merge of the drivers-x86 tree

From: Stephen Rothwell <hidden>
Date: 2021-02-04 05:14:54

Hi all,

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

drivers/platform/x86/intel_scu_wdt.c: In function 'register_mid_wdt':
drivers/platform/x86/intel_scu_wdt.c:66:28: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   66 |  wdt_dev.dev.platform_data = (const struct intel_mid_wdt_pdata *)id->driver_data;
      |                            ^

Introduced by commit

  a507e5d90f3d ("platform/x86: intel_scu_wdt: Get rid of custom x86 model comparison")

-- 
Cheers,
Stephen Rothwell

Re: linux-next: build warning after merge of the drivers-x86 tree

From: Hans de Goede <hidden>
Date: 2021-02-04 07:40:59

Hi Stephen, Andy,

On 2/4/21 6:13 AM, Stephen Rothwell wrote:
Hi all,

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

drivers/platform/x86/intel_scu_wdt.c: In function 'register_mid_wdt':
drivers/platform/x86/intel_scu_wdt.c:66:28: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   66 |  wdt_dev.dev.platform_data = (const struct intel_mid_wdt_pdata *)id->driver_data;
      |                            ^

Introduced by commit

  a507e5d90f3d ("platform/x86: intel_scu_wdt: Get rid of custom x86 model comparison")
Thank you for the bug report.

Andy can you send me a fix for this please ?

Regards,

Hans

Re: linux-next: build warning after merge of the drivers-x86 tree

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2021-02-04 16:23:49

On Thu, Feb 04, 2021 at 08:38:40AM +0100, Hans de Goede wrote:
Hi Stephen, Andy,

On 2/4/21 6:13 AM, Stephen Rothwell wrote:
quoted
Hi all,

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

drivers/platform/x86/intel_scu_wdt.c: In function 'register_mid_wdt':
drivers/platform/x86/intel_scu_wdt.c:66:28: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   66 |  wdt_dev.dev.platform_data = (const struct intel_mid_wdt_pdata *)id->driver_data;
      |                            ^

Introduced by commit

  a507e5d90f3d ("platform/x86: intel_scu_wdt: Get rid of custom x86 model comparison")
Thank you for the bug report.

Andy can you send me a fix for this please ?
Fix just has been sent.

-- 
With Best Regards,
Andy Shevchenko

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help