public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Florian Fainelli <f.fainelli@gmail•com>
To: Vladimir Oltean <olteanv@gmail•com>,
	andrew@lunn•ch, vivien.didelot@gmail•com, davem@davemloft•net
Cc: netdev@vger•kernel.org
Subject: Re: [PATCH net-next 1/2] net: dsa: sja1105: suppress -Wmissing-prototypes in sja1105_static_config.c
Date: Sat, 30 May 2020 11:40:40 -0700	[thread overview]
Message-ID: <85524d08-bdb3-bbfb-4e01-c126ce429430@gmail.com> (raw)
In-Reply-To: <20200530102953.692780-2-olteanv@gmail.com>



On 5/30/2020 3:29 AM, Vladimir Oltean wrote:
> From: Vladimir Oltean <vladimir.oltean@nxp•com>
> 
> Newer compilers complain with W=1 builds that there are non-static
> functions defined in sja1105_static_config.c that don't have a
> prototype, because their prototype is defined in sja1105.h which this
> translation unit does not include.
> 
> I don't entirely understand what is the point of these warnings, since
> in principle there's nothing wrong with that. But let's move the
> prototypes to a header file that _is_ included by
> sja1105_static_config.c, since that will make these warnings go away.
> 
> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp•com>

Reviewed-by: Florian Fainelli <f.fainelli@gmail•com>
-- 
Florian

  reply	other threads:[~2020-05-30 18:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-30 10:29 [PATCH net-next 0/2] Fix 2 non-critical issues in SJA1105 DSA Vladimir Oltean
2020-05-30 10:29 ` [PATCH net-next 1/2] net: dsa: sja1105: suppress -Wmissing-prototypes in sja1105_static_config.c Vladimir Oltean
2020-05-30 18:40   ` Florian Fainelli [this message]
2020-05-31  0:38   ` Andrew Lunn
2020-05-30 10:29 ` [PATCH net-next 2/2] net: dsa: sja1105: fix port mirroring for P/Q/R/S Vladimir Oltean
2020-05-31  1:01 ` [PATCH net-next 0/2] Fix 2 non-critical issues in SJA1105 DSA David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85524d08-bdb3-bbfb-4e01-c126ce429430@gmail.com \
    --to=f.fainelli@gmail$(echo .)com \
    --cc=andrew@lunn$(echo .)ch \
    --cc=davem@davemloft$(echo .)net \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=olteanv@gmail$(echo .)com \
    --cc=vivien.didelot@gmail$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox