* [PATCH -next] platform/x86: hfi: Remove unnecessary .owner for amd_hfi_driver
@ 2025-07-25 8:27 Jiapeng Chong
2025-07-25 15:30 ` Mario Limonciello
2025-08-19 8:31 ` Ilpo Järvinen
0 siblings, 2 replies; 3+ messages in thread
From: Jiapeng Chong @ 2025-07-25 8:27 UTC (permalink / raw)
To: mario.limonciello
Cc: perry.yuan, hansg, ilpo.jarvinen, platform-driver-x86,
linux-kernel, Jiapeng Chong, Abaci Robot
Remove .owner field if calls are used which set it automatically.
./drivers/platform/x86/amd/hfi/hfi.c:512:3-8: No need to set .owner here. The core will do it.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=22940
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
drivers/platform/x86/amd/hfi/hfi.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/platform/x86/amd/hfi/hfi.c b/drivers/platform/x86/amd/hfi/hfi.c
index 4f56149b3774..b633363ebf70 100644
--- a/drivers/platform/x86/amd/hfi/hfi.c
+++ b/drivers/platform/x86/amd/hfi/hfi.c
@@ -509,7 +509,6 @@ static int amd_hfi_probe(struct platform_device *pdev)
static struct platform_driver amd_hfi_driver = {
.driver = {
.name = AMD_HFI_DRIVER,
- .owner = THIS_MODULE,
.pm = &amd_hfi_pm_ops,
.acpi_match_table = ACPI_PTR(amd_hfi_platform_match),
},
--
2.43.5
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -next] platform/x86: hfi: Remove unnecessary .owner for amd_hfi_driver
2025-07-25 8:27 [PATCH -next] platform/x86: hfi: Remove unnecessary .owner for amd_hfi_driver Jiapeng Chong
@ 2025-07-25 15:30 ` Mario Limonciello
2025-08-19 8:31 ` Ilpo Järvinen
1 sibling, 0 replies; 3+ messages in thread
From: Mario Limonciello @ 2025-07-25 15:30 UTC (permalink / raw)
To: Jiapeng Chong, Borislav Petkov
Cc: perry.yuan, hansg, ilpo.jarvinen, platform-driver-x86,
linux-kernel, Abaci Robot
+Boris for this to go through tip.
On 7/25/2025 3:27 AM, Jiapeng Chong wrote:
> Remove .owner field if calls are used which set it automatically.
>
> ./drivers/platform/x86/amd/hfi/hfi.c:512:3-8: No need to set .owner here. The core will do it.
>
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=22940
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
> ---
> drivers/platform/x86/amd/hfi/hfi.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/platform/x86/amd/hfi/hfi.c b/drivers/platform/x86/amd/hfi/hfi.c
> index 4f56149b3774..b633363ebf70 100644
> --- a/drivers/platform/x86/amd/hfi/hfi.c
> +++ b/drivers/platform/x86/amd/hfi/hfi.c
> @@ -509,7 +509,6 @@ static int amd_hfi_probe(struct platform_device *pdev)
> static struct platform_driver amd_hfi_driver = {
> .driver = {
> .name = AMD_HFI_DRIVER,
> - .owner = THIS_MODULE,
> .pm = &amd_hfi_pm_ops,
> .acpi_match_table = ACPI_PTR(amd_hfi_platform_match),
> },
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -next] platform/x86: hfi: Remove unnecessary .owner for amd_hfi_driver
2025-07-25 8:27 [PATCH -next] platform/x86: hfi: Remove unnecessary .owner for amd_hfi_driver Jiapeng Chong
2025-07-25 15:30 ` Mario Limonciello
@ 2025-08-19 8:31 ` Ilpo Järvinen
1 sibling, 0 replies; 3+ messages in thread
From: Ilpo Järvinen @ 2025-08-19 8:31 UTC (permalink / raw)
To: Jiapeng Chong
Cc: mario.limonciello, perry.yuan, hansg, platform-driver-x86, LKML,
Abaci Robot
On Fri, 25 Jul 2025, Jiapeng Chong wrote:
> Remove .owner field if calls are used which set it automatically.
This changelog is too confusing, please improve. You state "if calls are
used which set it automatically", are they used or not? Preferrably name
the call. Please don't leave things like that hanging into air.
> ./drivers/platform/x86/amd/hfi/hfi.c:512:3-8: No need to set .owner here. The core will do it.
This looks like an error/warning message from something? Please explain
before the quote what outputted it.
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=22940
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
> ---
> drivers/platform/x86/amd/hfi/hfi.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/platform/x86/amd/hfi/hfi.c b/drivers/platform/x86/amd/hfi/hfi.c
> index 4f56149b3774..b633363ebf70 100644
> --- a/drivers/platform/x86/amd/hfi/hfi.c
> +++ b/drivers/platform/x86/amd/hfi/hfi.c
> @@ -509,7 +509,6 @@ static int amd_hfi_probe(struct platform_device *pdev)
> static struct platform_driver amd_hfi_driver = {
> .driver = {
> .name = AMD_HFI_DRIVER,
> - .owner = THIS_MODULE,
> .pm = &amd_hfi_pm_ops,
> .acpi_match_table = ACPI_PTR(amd_hfi_platform_match),
> },
>
--
i.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-08-19 8:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-25 8:27 [PATCH -next] platform/x86: hfi: Remove unnecessary .owner for amd_hfi_driver Jiapeng Chong
2025-07-25 15:30 ` Mario Limonciello
2025-08-19 8:31 ` Ilpo Järvinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®