* [PATCH] Fix const confusion in intel-mid x86 platform drivers
@ 2017-12-22 0:14 Andi Kleen
2017-12-22 2:08 ` Darren Hart
0 siblings, 1 reply; 3+ messages in thread
From: Andi Kleen @ 2017-12-22 0:14 UTC (permalink / raw)
To: dvhart; +Cc: andy, platform-driver-x86, akpm, Andi Kleen
From: Andi Kleen <ak@linux.intel.com>
const must be marked __initconst, not __initdata
Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
arch/x86/platform/intel-mid/device_libs/platform_bt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/platform/intel-mid/device_libs/platform_bt.c b/arch/x86/platform/intel-mid/device_libs/platform_bt.c
index dc036e511f48..2b5d86ce24c2 100644
--- a/arch/x86/platform/intel-mid/device_libs/platform_bt.c
+++ b/arch/x86/platform/intel-mid/device_libs/platform_bt.c
@@ -60,7 +60,7 @@ static int __init tng_bt_sfi_setup(struct bt_sfi_data *ddata)
return 0;
}
-static const struct bt_sfi_data tng_bt_sfi_data __initdata = {
+static const struct bt_sfi_data tng_bt_sfi_data __initconst = {
.setup = tng_bt_sfi_setup,
};
--
2.15.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix const confusion in intel-mid x86 platform drivers
2017-12-22 0:14 [PATCH] Fix const confusion in intel-mid x86 platform drivers Andi Kleen
@ 2017-12-22 2:08 ` Darren Hart
2017-12-28 9:47 ` Andy Shevchenko
0 siblings, 1 reply; 3+ messages in thread
From: Darren Hart @ 2017-12-22 2:08 UTC (permalink / raw)
To: Andi Kleen
Cc: andy, platform-driver-x86, akpm, Andi Kleen, Thomas Gleixner,
Ingo Molnar, H. Peter Anvin, x86
On Thu, Dec 21, 2017 at 04:14:43PM -0800, Andi Kleen wrote:
> From: Andi Kleen <ak@linux.intel.com>
>
> const must be marked __initconst, not __initdata
>
Thanks Andi,
This file should go through the x86 maintainers per the current MAINTAINERS
file. So to avoid risk of duplication, added Thomas et al. to Cc.
Thomas, we discussed moving more of arch/x86/platform to drivers/platform/x86.
We have migrated pmc_atom already, but a lot remains. Do you want to pull
patches like this in the interim, or should we move arch/x86/platform under
our entry in MAINTAINERS now?
Reviewed-by: Darren Hart (VMware) <dvhart@infradead.org>
> Signed-off-by: Andi Kleen <ak@linux.intel.com>
> ---
> arch/x86/platform/intel-mid/device_libs/platform_bt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/x86/platform/intel-mid/device_libs/platform_bt.c b/arch/x86/platform/intel-mid/device_libs/platform_bt.c
> index dc036e511f48..2b5d86ce24c2 100644
> --- a/arch/x86/platform/intel-mid/device_libs/platform_bt.c
> +++ b/arch/x86/platform/intel-mid/device_libs/platform_bt.c
> @@ -60,7 +60,7 @@ static int __init tng_bt_sfi_setup(struct bt_sfi_data *ddata)
> return 0;
> }
>
> -static const struct bt_sfi_data tng_bt_sfi_data __initdata = {
> +static const struct bt_sfi_data tng_bt_sfi_data __initconst = {
> .setup = tng_bt_sfi_setup,
> };
>
> --
> 2.15.0
>
>
--
Darren Hart
VMware Open Source Technology Center
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix const confusion in intel-mid x86 platform drivers
2017-12-22 2:08 ` Darren Hart
@ 2017-12-28 9:47 ` Andy Shevchenko
0 siblings, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2017-12-28 9:47 UTC (permalink / raw)
To: Darren Hart, Bhumika Goyal
Cc: Andi Kleen, Andy Shevchenko, Platform Driver, Andrew Morton,
Andi Kleen, Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86
On Fri, Dec 22, 2017 at 4:08 AM, Darren Hart <dvhart@infradead.org> wrote:
> On Thu, Dec 21, 2017 at 04:14:43PM -0800, Andi Kleen wrote:
>> From: Andi Kleen <ak@linux.intel.com>
>>
>> const must be marked __initconst, not __initdata
>>
>
> Thanks Andi,
>
> This file should go through the x86 maintainers per the current MAINTAINERS
> file. So to avoid risk of duplication, added Thomas et al. to Cc.
>
> Thomas, we discussed moving more of arch/x86/platform to drivers/platform/x86.
> We have migrated pmc_atom already, but a lot remains. Do you want to pull
> patches like this in the interim, or should we move arch/x86/platform under
> our entry in MAINTAINERS now?
>
> Reviewed-by: Darren Hart (VMware) <dvhart@infradead.org>
I'm sorry, but the patch which brings const there have made already a
regression [1].
So, NAK for this either.
Unbelievable that the other patch had been send w/o me in Cc list and
blindly applied.
[1]: https://github.com/andy-shev/linux/issues/20
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-12-28 9:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-22 0:14 [PATCH] Fix const confusion in intel-mid x86 platform drivers Andi Kleen
2017-12-22 2:08 ` Darren Hart
2017-12-28 9:47 ` Andy Shevchenko
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.