From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262256AbUCAG1Z (ORCPT ); Mon, 1 Mar 2004 01:27:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262255AbUCAG1Y (ORCPT ); Mon, 1 Mar 2004 01:27:24 -0500 Received: from dp.samba.org ([66.70.73.150]:33469 "EHLO lists.samba.org") by vger.kernel.org with ESMTP id S262259AbUCAG1P (ORCPT ); Mon, 1 Mar 2004 01:27:15 -0500 From: Rusty Russell To: "Petr Vandrovec" Cc: Linux Kernel Mailing List , Sam Ravnborg Subject: Re: [PATCH] Add a MODULE_VERSION macro In-reply-to: Your message of "Fri, 27 Feb 2004 18:38:58 +0200." Date: Mon, 01 Mar 2004 16:41:24 +1100 Message-Id: <20040301062725.844652C39D@lists.samba.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org In message you write: > > ifneq ($(filter-out $(modules),$(__modules)),) > > + $(warning Trouble: $(__modules) ) > > $(warning *** Uh-oh, you have stale module entries. You messed with SUBDIRS,) > > $(warning do not complain if something goes wrong.) > > endif > > Hi Rusty, > what is this line supposed to do, except making it impossible > to build kernel modules in temporary directories? Now when I build > out-of-tree modules, I get 'Trouble:' followed by approximate 16000 > characters listing paths to all modules I have in kernel Patch below: does it help? Rusty -- Anyone who quotes me in their sig is an idiot. -- Rusty Russell. diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal linux-2.6.4-rc1-bk1/scripts/Makefile.modpost tmp/scripts/Makefile.modpost --- linux-2.6.4-rc1-bk1/scripts/Makefile.modpost 2004-02-29 19:11:38.000000000 +1100 +++ tmp/scripts/Makefile.modpost 2004-03-01 16:40:33.000000000 +1100 @@ -14,7 +14,7 @@ __modules := $(shell head -q -n1 /dev/nu modules := $(patsubst %.o,%.ko,$(wildcard $(__modules:.ko=.o))) ifneq ($(filter-out $(modules),$(__modules)),) - $(warning Trouble: $(__modules) ) + $(warning Trouble: $(filter-out $(modules),$(__modules))) $(warning *** Uh-oh, you have stale module entries. You messed with SUBDIRS,) $(warning do not complain if something goes wrong.) endif