Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755425AbdDQUJt (ORCPT ); Mon, 17 Apr 2017 16:09:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58080 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753071AbdDQUJq (ORCPT ); Mon, 17 Apr 2017 16:09:46 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 29192C0524E7 Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=davem@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 29192C0524E7 Date: Mon, 17 Apr 2017 16:09:42 -0400 (EDT) Message-Id: <20170417.160942.2196583103295700079.davem@redhat.com> To: stefan@agner.ch Cc: shc_work@mail.ru, jarod@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: cx89x0: move attribute declaration before struct keyword From: David Miller In-Reply-To: <20170417062032.22764-1-stefan@agner.ch> References: <20170417062032.22764-1-stefan@agner.ch> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Mon, 17 Apr 2017 20:09:46 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1080 Lines: 25 From: Stefan Agner Date: Sun, 16 Apr 2017 23:20:32 -0700 > The attribute declaration is typically before the definition. Move > the __maybe_unused attribute declaration before the struct keyword. > > Signed-off-by: Stefan Agner Well, I see if just as often after the variable name too: net/irda/iriap.c:static const char *const ias_charset_types[] __maybe_unused = { net/irda/irlap.c:static const char *const lap_reasons[] __maybe_unused = { net/irda/irlap_event.c:static const char *const irlap_event[] __maybe_unused = { net/irda/irlmp_event.c:static const char *const irlmp_event[] __maybe_unused = { Or after the struct: drivers/net/phy/ste10Xp.c:static struct mdio_device_id __maybe_unused ste10Xp_tbl[] = { drivers/net/phy/teranetics.c:static struct mdio_device_id __maybe_unused teranetics_tbl[] = { drivers/net/phy/vitesse.c:static struct mdio_device_id __maybe_unused vitesse_tbl[] = { So unless we decide tree wide to do it in one order or another, such changes are largely a waste of time. Sorry I'm not applying this patch.