From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754582Ab3HaQEM (ORCPT ); Sat, 31 Aug 2013 12:04:12 -0400 Received: from perches-mx.perches.com ([206.117.179.246]:41843 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753674Ab3HaQEK (ORCPT ); Sat, 31 Aug 2013 12:04:10 -0400 Message-ID: <1377965049.2054.15.camel@joe-AO722> Subject: Re: [PATCH] checkpatch: Add test for positional misuse of section specifiers like __initdata From: Joe Perches To: Andi Kleen Cc: Andrew Morton , Andy Whitcroft , Russell King - ARM Linux , Guenter Roeck , Jean Delvare , LKML , linux-arm-kernel Date: Sat, 31 Aug 2013 09:04:09 -0700 In-Reply-To: <20130831143123.GC19750@two.firstfloor.org> References: <1377655732.3619.19.camel@joe-AO722> <20130831143123.GC19750@two.firstfloor.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2013-08-31 at 16:31 +0200, Andi Kleen wrote: > > A similar patch was suggested by Andi Kleen > > https://lkml.org/lkml/2013/8/5/648 > > My patch checked for const <-> initdata / non const initconst mistakes. > > I don't think your patch does that? Hi Andi. No it doesn't. This patch is just warning when using struct __initdata foo bar; instead of struct foo bar __initdata; I'll get around to adding tests for your cases soonish. cheers, Joe