* [PATCH] soc: microchip: make mpfs_sys_controller_put static
@ 2022-02-26 12:48 Conor Dooley
2022-02-28 15:42 ` Arnd Bergmann
0 siblings, 1 reply; 3+ messages in thread
From: Conor Dooley @ 2022-02-26 12:48 UTC (permalink / raw)
To: conor.dooley, nicolas.ferre
Cc: arnd, olof, linux-riscv, linux-arm-kernel, linux-kernel,
kernel test robot, Conor Dooley
From: Conor Dooley <conor.dooley@microchip.com>
dsafsdfd0054 ("soc: add microchip polarfire soc system controller")
incorrectly exported mpfs_sys_controller_put. Remove the export and make
the function static instead. This fixes the "no previous prototype
for 'mpfs_sys_controller_put'" warning spotted by the kernel test robot.
Fixes: dsafsdfd0054 ("soc: add microchip polarfire soc system
controller")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Conor Dooley <mail@conchuod.ie>
---
drivers/soc/microchip/mpfs-sys-controller.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/soc/microchip/mpfs-sys-controller.c b/drivers/soc/microchip/mpfs-sys-controller.c
index 2f4535929762..31f3f29fc1ae 100644
--- a/drivers/soc/microchip/mpfs-sys-controller.c
+++ b/drivers/soc/microchip/mpfs-sys-controller.c
@@ -73,13 +73,12 @@ static void mpfs_sys_controller_delete(struct kref *kref)
kfree(sys_controller);
}
-void mpfs_sys_controller_put(void *data)
+static void mpfs_sys_controller_put(void *data)
{
struct mpfs_sys_controller *sys_controller = data;
kref_put(&sys_controller->consumers, mpfs_sys_controller_delete);
}
-EXPORT_SYMBOL(mpfs_sys_controller_put);
static struct platform_device subdevs[] = {
{
--
2.32.0
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] soc: microchip: make mpfs_sys_controller_put static
2022-02-26 12:48 [PATCH] soc: microchip: make mpfs_sys_controller_put static Conor Dooley
@ 2022-02-28 15:42 ` Arnd Bergmann
2022-02-28 16:25 ` Nicolas Ferre
0 siblings, 1 reply; 3+ messages in thread
From: Arnd Bergmann @ 2022-02-28 15:42 UTC (permalink / raw)
To: Conor Dooley
Cc: conor.dooley, Nicolas Ferre, Arnd Bergmann, Olof Johansson,
linux-riscv, Linux ARM, Linux Kernel Mailing List,
kernel test robot
On Sat, Feb 26, 2022 at 1:48 PM Conor Dooley <mail@conchuod.ie> wrote:
>
> From: Conor Dooley <conor.dooley@microchip.com>
>
> dsafsdfd0054 ("soc: add microchip polarfire soc system controller")
> incorrectly exported mpfs_sys_controller_put. Remove the export and make
> the function static instead. This fixes the "no previous prototype
> for 'mpfs_sys_controller_put'" warning spotted by the kernel test robot.
>
> Fixes: dsafsdfd0054 ("soc: add microchip polarfire soc system
> controller")
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
> Signed-off-by: Conor Dooley <mail@conchuod.ie>
For reference, I saw the same report and added a different fix for this
at first, but replaced it with this patch now. No need to add it to the at91
tree. Nicolas, in case there is another problem with this patch, let me know.
Arnd
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] soc: microchip: make mpfs_sys_controller_put static
2022-02-28 15:42 ` Arnd Bergmann
@ 2022-02-28 16:25 ` Nicolas Ferre
0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Ferre @ 2022-02-28 16:25 UTC (permalink / raw)
To: Arnd Bergmann, Conor Dooley
Cc: conor.dooley, Olof Johansson, linux-riscv, Linux ARM,
Linux Kernel Mailing List, kernel test robot
On 28/02/2022 at 16:42, Arnd Bergmann wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> On Sat, Feb 26, 2022 at 1:48 PM Conor Dooley <mail@conchuod.ie> wrote:
>>
>> From: Conor Dooley <conor.dooley@microchip.com>
>>
>> dsafsdfd0054 ("soc: add microchip polarfire soc system controller")
>> incorrectly exported mpfs_sys_controller_put. Remove the export and make
>> the function static instead. This fixes the "no previous prototype
>> for 'mpfs_sys_controller_put'" warning spotted by the kernel test robot.
>>
>> Fixes: dsafsdfd0054 ("soc: add microchip polarfire soc system
>> controller")
>> Reported-by: kernel test robot <lkp@intel.com>
>> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
>> Signed-off-by: Conor Dooley <mail@conchuod.ie>
>
> For reference, I saw the same report and added a different fix for this
> at first, but replaced it with this patch now. No need to add it to the at91
> tree. Nicolas, in case there is another problem with this patch, let me know.
Ok Arnd, thanks.
For the record:
Reviewed-by: Nicolas Ferre <nicolas.ferre@microchip.com>
--
Nicolas Ferre
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-02-28 16:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-26 12:48 [PATCH] soc: microchip: make mpfs_sys_controller_put static Conor Dooley
2022-02-28 15:42 ` Arnd Bergmann
2022-02-28 16:25 ` Nicolas Ferre
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox