* [PATCH] hwmon: (xgene) Drop bogus __refdata annotation
@ 2020-12-11 13:35 Geert Uytterhoeven
2020-12-11 15:26 ` Guenter Roeck
0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2020-12-11 13:35 UTC (permalink / raw)
To: Jean Delvare, Guenter Roeck; +Cc: linux-hwmon, linux-kernel, Geert Uytterhoeven
As the X-Gene hardware monitoring driver does not have any code or data
located in initmem, there is no need to annotate the xgene_hwmon_driver
structure with __refdata. Drop the annotation, to avoid suppressing
future section warnings.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
drivers/hwmon/xgene-hwmon.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hwmon/xgene-hwmon.c b/drivers/hwmon/xgene-hwmon.c
index f2a5af239c9569b2..1489e83cb0c44011 100644
--- a/drivers/hwmon/xgene-hwmon.c
+++ b/drivers/hwmon/xgene-hwmon.c
@@ -784,7 +784,7 @@ static const struct of_device_id xgene_hwmon_of_match[] = {
};
MODULE_DEVICE_TABLE(of, xgene_hwmon_of_match);
-static struct platform_driver xgene_hwmon_driver __refdata = {
+static struct platform_driver xgene_hwmon_driver = {
.probe = xgene_hwmon_probe,
.remove = xgene_hwmon_remove,
.driver = {
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] hwmon: (xgene) Drop bogus __refdata annotation
2020-12-11 13:35 [PATCH] hwmon: (xgene) Drop bogus __refdata annotation Geert Uytterhoeven
@ 2020-12-11 15:26 ` Guenter Roeck
0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2020-12-11 15:26 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Jean Delvare, linux-hwmon, linux-kernel
On Fri, Dec 11, 2020 at 02:35:31PM +0100, Geert Uytterhoeven wrote:
> As the X-Gene hardware monitoring driver does not have any code or data
> located in initmem, there is no need to annotate the xgene_hwmon_driver
> structure with __refdata. Drop the annotation, to avoid suppressing
> future section warnings.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Applied.
Thanks,
Guenter
> ---
> drivers/hwmon/xgene-hwmon.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/hwmon/xgene-hwmon.c b/drivers/hwmon/xgene-hwmon.c
> index f2a5af239c9569b2..1489e83cb0c44011 100644
> --- a/drivers/hwmon/xgene-hwmon.c
> +++ b/drivers/hwmon/xgene-hwmon.c
> @@ -784,7 +784,7 @@ static const struct of_device_id xgene_hwmon_of_match[] = {
> };
> MODULE_DEVICE_TABLE(of, xgene_hwmon_of_match);
>
> -static struct platform_driver xgene_hwmon_driver __refdata = {
> +static struct platform_driver xgene_hwmon_driver = {
> .probe = xgene_hwmon_probe,
> .remove = xgene_hwmon_remove,
> .driver = {
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-11 16:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-11 13:35 [PATCH] hwmon: (xgene) Drop bogus __refdata annotation Geert Uytterhoeven
2020-12-11 15:26 ` Guenter Roeck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).