From df68a01014fd5dea890349321787ca08a5377f0b Mon Sep 17 00:00:00 2001 From: Peter Foley Date: Thu, 25 Sep 2014 11:23:02 -0700 Subject: Documentation: use subdir-y to avoid unnecessary built-in.o files Change the Documentation makefiles from obj-m to subdir-y to avoid generating unnecessary built-in.o files since nothing in Documentation/ is ever linked in to vmlinux. Signed-off-by: Peter Foley Acked-by: Sam Ravnborg Signed-off-by: Randy Dunlap Signed-off-by: Jiri Kosina --- Documentation/networking/Makefile | 8 +------- Documentation/networking/timestamping/Makefile | 3 --- 2 files changed, 1 insertion(+), 10 deletions(-) (limited to 'Documentation/networking') diff --git a/Documentation/networking/Makefile b/Documentation/networking/Makefile index 0aa1ac98fc2..4c5d7c48543 100644 --- a/Documentation/networking/Makefile +++ b/Documentation/networking/Makefile @@ -1,7 +1 @@ -# kbuild trick to avoid linker error. Can be omitted if a module is built. -obj- := dummy.o - -# Tell kbuild to always build the programs -always := $(hostprogs-y) - -obj-m := timestamping/ +subdir-y := timestamping diff --git a/Documentation/networking/timestamping/Makefile b/Documentation/networking/timestamping/Makefile index d934afc8306..bbe6f810535 100644 --- a/Documentation/networking/timestamping/Makefile +++ b/Documentation/networking/timestamping/Makefile @@ -1,6 +1,3 @@ -# kbuild trick to avoid linker error. Can be omitted if a module is built. -obj- := dummy.o - # List of programs to build hostprogs-y := timestamping hwtstamp_config -- cgit v1.2.3-70-g09d2