* [PATCH] platform/x86: dell: Use *-y instead of *-objs in Makefile
@ 2025-02-14 21:45 Kurt Borja
2025-02-16 20:24 ` Andy Shevchenko
2025-02-17 8:58 ` Ilpo Järvinen
0 siblings, 2 replies; 4+ messages in thread
From: Kurt Borja @ 2025-02-14 21:45 UTC (permalink / raw)
To: Ilpo Järvinen
Cc: Hans de Goede, platform-driver-x86, linux-kernel, Pali Rohár,
Dell.Client.Kernel, Matthew Garrett, Kurt Borja, Andy Shevchenko
The `objs` suffix is reserved for user-space tools. Use the `y` suffix
instead, which is usually used for kernel drivers.
Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Kurt Borja <kuurtb@gmail.com>
---
Hi all,
I based this patch on top of the for-next branch.
Ilpo, if you prefer this patch to be based on top of the fixes branch,
let me know. I'd submit two separate patches, one for alienware-wmi, on
top of the for-next branch and one for the other drivers, on top of
fixes.
~ Kurt
drivers/platform/x86/dell/Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/platform/x86/dell/Makefile b/drivers/platform/x86/dell/Makefile
index 8ac9a933c770..c7501c25e627 100644
--- a/drivers/platform/x86/dell/Makefile
+++ b/drivers/platform/x86/dell/Makefile
@@ -5,7 +5,7 @@
#
obj-$(CONFIG_ALIENWARE_WMI) += alienware-wmi.o
-alienware-wmi-objs := alienware-wmi-base.o
+alienware-wmi-y := alienware-wmi-base.o
alienware-wmi-$(CONFIG_ALIENWARE_WMI_LEGACY) += alienware-wmi-legacy.o
alienware-wmi-$(CONFIG_ALIENWARE_WMI_WMAX) += alienware-wmi-wmax.o
obj-$(CONFIG_DCDBAS) += dcdbas.o
@@ -14,14 +14,14 @@ obj-$(CONFIG_DELL_RBTN) += dell-rbtn.o
obj-$(CONFIG_DELL_RBU) += dell_rbu.o
obj-$(CONFIG_DELL_PC) += dell-pc.o
obj-$(CONFIG_DELL_SMBIOS) += dell-smbios.o
-dell-smbios-objs := dell-smbios-base.o
+dell-smbios-y := dell-smbios-base.o
dell-smbios-$(CONFIG_DELL_SMBIOS_WMI) += dell-smbios-wmi.o
dell-smbios-$(CONFIG_DELL_SMBIOS_SMM) += dell-smbios-smm.o
obj-$(CONFIG_DELL_SMO8800) += dell-smo8800.o
obj-$(CONFIG_DELL_SMO8800) += dell-lis3lv02d.o
obj-$(CONFIG_DELL_UART_BACKLIGHT) += dell-uart-backlight.o
obj-$(CONFIG_DELL_WMI) += dell-wmi.o
-dell-wmi-objs := dell-wmi-base.o
+dell-wmi-y := dell-wmi-base.o
dell-wmi-$(CONFIG_DELL_WMI_PRIVACY) += dell-wmi-privacy.o
obj-$(CONFIG_DELL_WMI_AIO) += dell-wmi-aio.o
obj-$(CONFIG_DELL_WMI_DESCRIPTOR) += dell-wmi-descriptor.o
base-commit: d497c47481f8e8f13e3191c9a707ed942d3bb3d7
--
2.48.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] platform/x86: dell: Use *-y instead of *-objs in Makefile
2025-02-14 21:45 [PATCH] platform/x86: dell: Use *-y instead of *-objs in Makefile Kurt Borja
@ 2025-02-16 20:24 ` Andy Shevchenko
2025-02-17 8:58 ` Ilpo Järvinen
1 sibling, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2025-02-16 20:24 UTC (permalink / raw)
To: Kurt Borja
Cc: Ilpo Järvinen, Hans de Goede, platform-driver-x86,
linux-kernel, Pali Rohár, Dell.Client.Kernel,
Matthew Garrett
On Fri, Feb 14, 2025 at 04:45:35PM -0500, Kurt Borja wrote:
> The `objs` suffix is reserved for user-space tools. Use the `y` suffix
> instead, which is usually used for kernel drivers.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Thanks!
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] platform/x86: dell: Use *-y instead of *-objs in Makefile
2025-02-14 21:45 [PATCH] platform/x86: dell: Use *-y instead of *-objs in Makefile Kurt Borja
2025-02-16 20:24 ` Andy Shevchenko
@ 2025-02-17 8:58 ` Ilpo Järvinen
2025-02-18 19:09 ` Kurt Borja
1 sibling, 1 reply; 4+ messages in thread
From: Ilpo Järvinen @ 2025-02-17 8:58 UTC (permalink / raw)
To: Kurt Borja
Cc: Hans de Goede, platform-driver-x86, LKML, Pali Rohár,
Dell.Client.Kernel, Matthew Garrett, Andy Shevchenko
On Fri, 14 Feb 2025, Kurt Borja wrote:
> The `objs` suffix is reserved for user-space tools. Use the `y` suffix
> instead, which is usually used for kernel drivers.
>
> Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> Signed-off-by: Kurt Borja <kuurtb@gmail.com>
> ---
> Hi all,
>
> I based this patch on top of the for-next branch.
>
> Ilpo, if you prefer this patch to be based on top of the fixes branch,
> let me know. I'd submit two separate patches, one for alienware-wmi, on
> top of the for-next branch and one for the other drivers, on top of
> fixes.
Thanks for the fix.
I took this through for-next branch to not make our lives unnecessarily
complicated. If there would be only handful of -objs, I might have decide
otherwise but this (wrong) pattern is really widespread so removing a few
drops from the ocean is not going to sound us the finish line fanfare. But
it's still an important step towards the right direction, regardless.
TBH, I didn't know the distinction either until Andy explained it (and
like you, would have just copied the pattern if one was readily
available). But I've never really deep dived into the kernel's build
system anyway.
I wonder why checkpatch doesn't catch it, or does it? At least there are
no "objs" strings in its source.
--
i.
>
> ~ Kurt
>
> drivers/platform/x86/dell/Makefile | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/platform/x86/dell/Makefile b/drivers/platform/x86/dell/Makefile
> index 8ac9a933c770..c7501c25e627 100644
> --- a/drivers/platform/x86/dell/Makefile
> +++ b/drivers/platform/x86/dell/Makefile
> @@ -5,7 +5,7 @@
> #
>
> obj-$(CONFIG_ALIENWARE_WMI) += alienware-wmi.o
> -alienware-wmi-objs := alienware-wmi-base.o
> +alienware-wmi-y := alienware-wmi-base.o
> alienware-wmi-$(CONFIG_ALIENWARE_WMI_LEGACY) += alienware-wmi-legacy.o
> alienware-wmi-$(CONFIG_ALIENWARE_WMI_WMAX) += alienware-wmi-wmax.o
> obj-$(CONFIG_DCDBAS) += dcdbas.o
> @@ -14,14 +14,14 @@ obj-$(CONFIG_DELL_RBTN) += dell-rbtn.o
> obj-$(CONFIG_DELL_RBU) += dell_rbu.o
> obj-$(CONFIG_DELL_PC) += dell-pc.o
> obj-$(CONFIG_DELL_SMBIOS) += dell-smbios.o
> -dell-smbios-objs := dell-smbios-base.o
> +dell-smbios-y := dell-smbios-base.o
> dell-smbios-$(CONFIG_DELL_SMBIOS_WMI) += dell-smbios-wmi.o
> dell-smbios-$(CONFIG_DELL_SMBIOS_SMM) += dell-smbios-smm.o
> obj-$(CONFIG_DELL_SMO8800) += dell-smo8800.o
> obj-$(CONFIG_DELL_SMO8800) += dell-lis3lv02d.o
> obj-$(CONFIG_DELL_UART_BACKLIGHT) += dell-uart-backlight.o
> obj-$(CONFIG_DELL_WMI) += dell-wmi.o
> -dell-wmi-objs := dell-wmi-base.o
> +dell-wmi-y := dell-wmi-base.o
> dell-wmi-$(CONFIG_DELL_WMI_PRIVACY) += dell-wmi-privacy.o
> obj-$(CONFIG_DELL_WMI_AIO) += dell-wmi-aio.o
> obj-$(CONFIG_DELL_WMI_DESCRIPTOR) += dell-wmi-descriptor.o
>
> base-commit: d497c47481f8e8f13e3191c9a707ed942d3bb3d7
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] platform/x86: dell: Use *-y instead of *-objs in Makefile
2025-02-17 8:58 ` Ilpo Järvinen
@ 2025-02-18 19:09 ` Kurt Borja
0 siblings, 0 replies; 4+ messages in thread
From: Kurt Borja @ 2025-02-18 19:09 UTC (permalink / raw)
To: Ilpo Järvinen
Cc: Hans de Goede, platform-driver-x86, LKML, Pali Rohár,
Dell.Client.Kernel, Matthew Garrett, Andy Shevchenko
On Mon Feb 17, 2025 at 3:58 AM -05, Ilpo Järvinen wrote:
> On Fri, 14 Feb 2025, Kurt Borja wrote:
>
>> The `objs` suffix is reserved for user-space tools. Use the `y` suffix
>> instead, which is usually used for kernel drivers.
>>
>> Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>> Signed-off-by: Kurt Borja <kuurtb@gmail.com>
>> ---
>> Hi all,
>>
>> I based this patch on top of the for-next branch.
>>
>> Ilpo, if you prefer this patch to be based on top of the fixes branch,
>> let me know. I'd submit two separate patches, one for alienware-wmi, on
>> top of the for-next branch and one for the other drivers, on top of
>> fixes.
>
> Thanks for the fix.
>
> I took this through for-next branch to not make our lives unnecessarily
> complicated. If there would be only handful of -objs, I might have decide
> otherwise but this (wrong) pattern is really widespread so removing a few
> drops from the ocean is not going to sound us the finish line fanfare. But
> it's still an important step towards the right direction, regardless.
>
> TBH, I didn't know the distinction either until Andy explained it (and
> like you, would have just copied the pattern if one was readily
> available). But I've never really deep dived into the kernel's build
> system anyway.
I will finish the job for this subsystem, so no one copies this pattern
again :p
>
> I wonder why checkpatch doesn't catch it, or does it? At least there are
> no "objs" strings in its source.
It doesn't actually. Not even with --strict.
--
~ Kurt
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-02-18 19:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-14 21:45 [PATCH] platform/x86: dell: Use *-y instead of *-objs in Makefile Kurt Borja
2025-02-16 20:24 ` Andy Shevchenko
2025-02-17 8:58 ` Ilpo Järvinen
2025-02-18 19:09 ` Kurt Borja
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).