Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964917AbVKMQ1r (ORCPT ); Sun, 13 Nov 2005 11:27:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964918AbVKMQ1r (ORCPT ); Sun, 13 Nov 2005 11:27:47 -0500 Received: from mailout.stusta.mhn.de ([141.84.69.5]:44809 "HELO mailout.stusta.mhn.de") by vger.kernel.org with SMTP id S964915AbVKMQ1r (ORCPT ); Sun, 13 Nov 2005 11:27:47 -0500 Date: Sun, 13 Nov 2005 17:27:45 +0100 From: Adrian Bunk To: hostap@shmoo.com, linux-kernel@vger.kernel.org, jgarzik@pobox.com, netdev@vger.kernel.org Cc: sam@ravnborg.org Subject: [2.6 patch] rename hostap.c to hostap_main.c Message-ID: <20051113162745.GM21448@stusta.de> References: <20051106005343.GF3668@stusta.de> <20051106041543.GC8972@jm.kir.nu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051106041543.GC8972@jm.kir.nu> User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2003 Lines: 59 On Sat, Nov 05, 2005 at 08:15:43PM -0800, Jouni Malinen wrote: > On Sun, Nov 06, 2005 at 01:53:43AM +0100, Adrian Bunk wrote: > > I wanted to remove the #include "hostap_ioctl.c" from hostap.c and build > > hostap_ioctl.c separately, but this doesn't work since hostap.c has the > > same name as the module. > > Is this patch changing anything in hostap.c or is it just a rename of > the file? Patch file is not exactly ideal for this kind of changes and I > hope git has a better way of storing this kind of rename. There's no other change. If you agree, Jeff might be able to do the mv drivers/net/wireless/hostap/hostap.c \ drivers/net/wireless/hostap/hostap_main.c plus applying the patch below. > I would rather not rename the file, but if this is the only way of > getting the module built in pieces, I'm okay with the change (assuming > nothing else changed in hostap.c in this changeset). >... AFAIK you can't build a module hostap.o consisting of multiple objects with the source files of one of them named hostap.c (Sam Cc'ed for this). > Jouni Malinen PGP id EFC895FA cu Adrian <-- snip --> I wanted to remove the #include "hostap_ioctl.c" from hostap.c and build hostap_ioctl.c separately, but this doesn't work since hostap.c has the same name as the module. After renaming hostap.c this will be possible. Signed-off-by: Adrian Bunk --- linux-2.6.14-mm2-full/drivers/net/wireless/hostap/Makefile.old 2005-11-13 17:10:33.000000000 +0100 +++ linux-2.6.14-mm2-full/drivers/net/wireless/hostap/Makefile 2005-11-13 17:11:11.000000000 +0100 @@ -1,3 +1,4 @@ +hostap-y := hostap_main.o obj-$(CONFIG_HOSTAP) += hostap.o obj-$(CONFIG_HOSTAP_CS) += hostap_cs.o - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/