* [PATCH] EDAC/ppc_4xx: Reorder symbols to get rid of a few forward declarations
@ 2022-09-17 23:20 Uwe Kleine-König
2022-09-18 18:46 ` Borislav Petkov
0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2022-09-17 23:20 UTC (permalink / raw)
To: Borislav Petkov, Mauro Carvalho Chehab, Tony Luck
Cc: James Morse, Robert Richter, linux-edac, Michael Ellerman,
Nicholas Piggin, Christophe Leroy, linuxppc-dev, kernel
When moving the definition of ppc4xx_edac_driver further down, the
forward declarations can just be dropped.
Do this to reduce line needless repetition.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
drivers/edac/ppc4xx_edac.c | 23 +++++++++--------------
1 file changed, 9 insertions(+), 14 deletions(-)
diff --git a/drivers/edac/ppc4xx_edac.c b/drivers/edac/ppc4xx_edac.c
index 0bc670778c99..046969b4e82e 100644
--- a/drivers/edac/ppc4xx_edac.c
+++ b/drivers/edac/ppc4xx_edac.c
@@ -178,11 +178,6 @@ struct ppc4xx_ecc_status {
u32 wmirq;
};
-/* Function Prototypes */
-
-static int ppc4xx_edac_probe(struct platform_device *device);
-static int ppc4xx_edac_remove(struct platform_device *device);
-
/* Global Variables */
/*
@@ -197,15 +192,6 @@ static const struct of_device_id ppc4xx_edac_match[] = {
};
MODULE_DEVICE_TABLE(of, ppc4xx_edac_match);
-static struct platform_driver ppc4xx_edac_driver = {
- .probe = ppc4xx_edac_probe,
- .remove = ppc4xx_edac_remove,
- .driver = {
- .name = PPC4XX_EDAC_MODULE_NAME,
- .of_match_table = ppc4xx_edac_match,
- },
-};
-
/*
* TODO: The row and channel parameters likely need to be dynamically
* set based on the aforementioned variant controller realizations.
@@ -1391,6 +1377,15 @@ ppc4xx_edac_opstate_init(void)
EDAC_OPSTATE_UNKNOWN_STR)));
}
+static struct platform_driver ppc4xx_edac_driver = {
+ .probe = ppc4xx_edac_probe,
+ .remove = ppc4xx_edac_remove,
+ .driver = {
+ .name = PPC4XX_EDAC_MODULE_NAME,
+ .of_match_table = ppc4xx_edac_match,
+ },
+};
+
/**
* ppc4xx_edac_init - driver/module insertion entry point
*
base-commit: 568035b01cfb107af8d2e4bd2fb9aea22cf5b868
--
2.37.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] EDAC/ppc_4xx: Reorder symbols to get rid of a few forward declarations
2022-09-17 23:20 [PATCH] EDAC/ppc_4xx: Reorder symbols to get rid of a few forward declarations Uwe Kleine-König
@ 2022-09-18 18:46 ` Borislav Petkov
0 siblings, 0 replies; 2+ messages in thread
From: Borislav Petkov @ 2022-09-18 18:46 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Mauro Carvalho Chehab, Tony Luck, James Morse, Robert Richter,
linux-edac, Michael Ellerman, Nicholas Piggin, Christophe Leroy,
linuxppc-dev, kernel
On Sun, Sep 18, 2022 at 01:20:13AM +0200, Uwe Kleine-König wrote:
> When moving the definition of ppc4xx_edac_driver further down, the
> forward declarations can just be dropped.
>
> Do this to reduce line needless repetition.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
> drivers/edac/ppc4xx_edac.c | 23 +++++++++--------------
> 1 file changed, 9 insertions(+), 14 deletions(-)
Applied, thanks.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-18 18:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-17 23:20 [PATCH] EDAC/ppc_4xx: Reorder symbols to get rid of a few forward declarations Uwe Kleine-König
2022-09-18 18:46 ` Borislav Petkov
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).