Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753653Ab3IZCcn (ORCPT ); Wed, 25 Sep 2013 22:32:43 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:52355 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751167Ab3IZCcl (ORCPT ); Wed, 25 Sep 2013 22:32:41 -0400 Date: Wed, 25 Sep 2013 19:32:50 -0700 From: Andrew Morton To: Joe Perches Cc: Linus Torvalds , Frederic Weisbecker , LKML , Benjamin Herrenschmidt , Paul Mackerras , Ingo Molnar , Thomas Gleixner , Peter Zijlstra , "H. Peter Anvin" , James Hogan , "James E.J. Bottomley" , Helge Deller , Martin Schwidefsky , Heiko Carstens , "David S. Miller" Subject: Re: [PATCH] checkpatch: Add test for #defines of ARCH_HAS_ Message-Id: <20130925193250.7747b0e3.akpm@linux-foundation.org> In-Reply-To: <1380160854.17366.49.camel@joe-AO722> References: <1380125886-10341-1-git-send-email-fweisbec@gmail.com> <1380125886-10341-8-git-send-email-fweisbec@gmail.com> <20130925172121.00c23e416398139f4615943c@linux-foundation.org> <1380156027.17366.39.camel@joe-AO722> <1380160854.17366.49.camel@joe-AO722> X-Mailer: Sylpheed 2.7.1 (GTK+ 2.18.9; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 805 Lines: 19 On Wed, 25 Sep 2013 19:00:54 -0700 Joe Perches wrote: > +# Use of __ARCH_HAS_ or ARCH_HAVE_ is wrong. > + if ($line =~ /\+\s*#\s*define\s+((?:__)?ARCH_(?:HAS|HAVE)\w*)\b/) { > + ERROR("DEFINE_ARCH_HAS", > + "#define of '$1' is wrong - use Kconfig variables or standard guards instead\n" . $herecurr); > + } > + Perhaps we can provide people with a bit more help than that. http://www.kernelhub.org/?msg=334759&p=2 would suit (gad, google updates fast!) or copy-n-paste into Documentation/wherever and refer to that? -- 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/