Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933076Ab1EZTH6 (ORCPT ); Thu, 26 May 2011 15:07:58 -0400 Received: from mail.perches.com ([173.55.12.10]:2069 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932746Ab1EZTH5 (ORCPT ); Thu, 26 May 2011 15:07:57 -0400 Subject: Re: [patch] net/core/filter.c: Fix build error From: Joe Perches To: David Miller , Jiri Kosina Cc: mingo@elte.hu, greearb@candelatech.com, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, arnd@arndb.de, netdev@vger.kernel.org In-Reply-To: <20110526.143843.205897228685761536.davem@davemloft.net> References: <20110526123153.GA16002@elte.hu> <1306423866.16087.10.camel@Joe-Laptop> <20110526.143843.205897228685761536.davem@davemloft.net> Content-Type: text/plain; charset="UTF-8" Date: Thu, 26 May 2011 12:07:55 -0700 Message-ID: <1306436876.16087.25.camel@Joe-Laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1727 Lines: 45 On Thu, 2011-05-26 at 14:38 -0400, David Miller wrote: > From: Joe Perches > Date: Thu, 26 May 2011 08:31:06 -0700 > > My suggestion would be to see about again adding > > #include somehow > > back to kernel.h which commit 3fff4c42bd0a removed > > in 2009 because of the spinlock issues. > > Any suggestion on how best to fix it generically? > I don't think we want spinlock_t's definition being sucked > into kernel.h's dependency food chain. > Even if desirable, I think it'd be quite a bit of surgery, > too much to do at this stage. > So for now how about we make the ratelimit warn interfaces be a true, > instead of a pseudo, dependency on ratelimit.h by moving those > definitions into ratelimit.h? Thanks, I suppose that's good enough for now. Perhaps it'd also be good to move the pr__ratelimited declarations from printk.h. It seems that would not cause new compilation problems. $ grep -rP --include=*.[ch] -wl "pr_[a-z]+_ratelimited" * | \ xargs grep -L "include.*ratelimit\.h" include/linux/printk.h And, though it's sure to cause some compilation problems: $ grep -rP --include=*.[ch] -wl "printk_ratelimit" * | \ xargs grep -L "include.*ratelimit\.h" | wc -l 127 Perhaps it'd also be good to move the printk_ratelimit block from printk.h into ratelimited.h and add #include to the current source files that use it in a later patchset. Maybe Jiri could pick it up through trivial. Jiri? -- 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/