Patchwork Drivers: ata: Makefile: replace the use of <module>-objs with <module>-y

login
register
mail settings
Submitter Tracey Dent
Date Oct. 16, 2010, 3:41 a.m.
Message ID <1287200493-2024-1-git-send-email-tdent48227@gmail.com>
Download mbox | patch
Permalink /patch/68021/
State Not Applicable
Delegated to: David Miller
Headers show

Comments

Tracey Dent - Oct. 16, 2010, 3:41 a.m.
Changed <module>-objs to <module>-y in Makefile.

Signed-off-by: Tracey Dent <tdent48227@gmail.com>
---
 drivers/ata/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Mark Lord - Oct. 17, 2010, 2:45 a.m.
On 10-10-15 11:41 PM, Tracey Dent wrote:
> Changed<module>-objs to<module>-y in Makefile.
..
> -libata-objs	:= libata-core.o libata-scsi.o libata-eh.o libata-transport.o
> +libata-y	:= libata-core.o libata-scsi.o libata-eh.o libata-transport.o


Why?
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Tracey Dent - Oct. 17, 2010, 10:45 a.m.
On 10/16/10, Mark Lord <kernel@teksavvy.com> wrote:
> On 10-10-15 11:41 PM, Tracey Dent wrote:
>> Changed<module>-objs to<module>-y in Makefile.
> ..
>> -libata-objs	:= libata-core.o libata-scsi.o libata-eh.o libata-transport.o
>> +libata-y	:= libata-core.o libata-scsi.o libata-eh.o libata-transport.o
>
>
> Why?
>

Using <module>-objs is deprecated and should now be replaced with
<module>-y(which is specified in Documentation/kbuild/makefiles.txt).

Regards,

Tracey D
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/ata/Makefile b/drivers/ata/Makefile
index ccd461b..c501af5 100644
--- a/drivers/ata/Makefile
+++ b/drivers/ata/Makefile
@@ -99,7 +99,7 @@  obj-$(CONFIG_ATA_GENERIC)	+= ata_generic.o
 # Should be last libata driver
 obj-$(CONFIG_PATA_LEGACY)	+= pata_legacy.o
 
-libata-objs	:= libata-core.o libata-scsi.o libata-eh.o libata-transport.o
+libata-y	:= libata-core.o libata-scsi.o libata-eh.o libata-transport.o
 libata-$(CONFIG_ATA_SFF)	+= libata-sff.o
 libata-$(CONFIG_SATA_PMP)	+= libata-pmp.o
 libata-$(CONFIG_ATA_ACPI)	+= libata-acpi.o