Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1624861

Re: [PATCH] net: cx89x0: move attribute declaration before struct keyword

From David Miller <davem@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH] net: cx89x0: move attribute declaration before struct keyword
Date 2017-04-17 22:20 +0200
Message-ID <txlhT-59s-1@gated-at.bofh.it> (permalink)
References <tx8aZ-5Hj-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Stefan Agner <stefan@agner.ch>
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 <stefan@agner.ch>

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.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] net: cx89x0: move attribute declaration before struct keyword Stefan Agner <stefan@agner.ch> - 2017-04-17 08:20 +0200
  Re: [PATCH] net: cx89x0: move attribute declaration before struct  keyword David Miller <davem@redhat.com> - 2017-04-17 22:20 +0200
    Re: [PATCH] net: cx89x0: move attribute declaration before struct  keyword Stefan Agner <stefan@agner.ch> - 2017-04-17 22:40 +0200
      Re: [PATCH] net: cx89x0: move attribute declaration before struct  keyword David Miller <davem@redhat.com> - 2017-04-17 22:50 +0200

csiph-web