From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Pirko Subject: Re: [Patch v2] net: move ifenslave from Documentation/networking to tools/networking Date: Wed, 1 Feb 2012 21:06:01 +0100 Message-ID: <20120201200600.GA2602@minipsycho> References: <1328088205-26211-1-git-send-email-xiyou.wangcong@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org, "David S. Miller" To: Cong Wang Return-path: Received: from mx1.redhat.com ([209.132.183.28]:44996 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755234Ab2BAUGF (ORCPT ); Wed, 1 Feb 2012 15:06:05 -0500 Content-Disposition: inline In-Reply-To: <1328088205-26211-1-git-send-email-xiyou.wangcong@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: How about to just let ifenslave rot on the place it is? Wed, Feb 01, 2012 at 10:23:25AM CET, xiyou.wangcong@gmail.com wrote: >V2: fix Documentation/networking/Makefile > >ifenslave is a real tool, and it seems main distros already ship this. >It is nice to move it to tools/networking/ directory. > >(Note that this patch is generated by 'git diff -C', in case of having >a large patch. It can be applied with git-apply.) > >Cc: "David S. Miller" >Signed-off-by: WANG Cong > >--- > Documentation/networking/Makefile | 11 ----------- > tools/networking/Makefile | 10 ++++++++++ > {Documentation => tools}/networking/ifenslave.c | 0 > 3 files changed, 10 insertions(+), 11 deletions(-) > >diff --git a/Documentation/networking/Makefile b/Documentation/networking/Makefile >index 24c308d..5594972 100644 >--- a/Documentation/networking/Makefile >+++ b/Documentation/networking/Makefile >@@ -1,12 +1 @@ >-# kbuild trick to avoid linker error. Can be omitted if a module is built. >-obj- := dummy.o >- >-# List of programs to build >-hostprogs-y := ifenslave >- >-HOSTCFLAGS_ifenslave.o += -I$(objtree)/usr/include >- >-# Tell kbuild to always build the programs >-always := $(hostprogs-y) >- > obj-m := timestamping/ >diff --git a/tools/networking/Makefile b/tools/networking/Makefile >new file mode 100644 >index 0000000..7aec262 >--- /dev/null >+++ b/tools/networking/Makefile >@@ -0,0 +1,10 @@ >+ >+CC := $(CROSS_COMPILE)gcc >+CFLAGS := -Wall -Wstrict-prototypes >+RM := rm -f >+ >+all: ifenslave >+ifenslave: ifenslave.c >+ $(CC) $(CFLAGS) -o $@ $^ >+clean: >+ $(RM) ifenslave >diff --git a/Documentation/networking/ifenslave.c b/tools/networking/ifenslave.c >similarity index 100% >rename from Documentation/networking/ifenslave.c >rename to tools/networking/ifenslave.c >-- >To unsubscribe from this list: send the line "unsubscribe netdev" in >the body of a message to majordomo@vger.kernel.org >More majordomo info at http://vger.kernel.org/majordomo-info.html