netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dirk Behme <dirk.behme@gmail.com>
To: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "David S. Miller" <davem@davemloft.net>,
	Dirk Behme <dirk.behme@de.bosch.com>,
	netdev@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH 3.14] net: sysctl_net_core: remove compiler warning about unused variable 'one'
Date: Tue, 11 Aug 2015 15:54:06 +0200	[thread overview]
Message-ID: <55C9FE7E.9050302@gmail.com> (raw)
In-Reply-To: <1439296965-5181-1-git-send-email-vladimir_zapolskiy@mentor.com>

On 11.08.2015 14:42, Vladimir Zapolskiy wrote:
> From: Dirk Behme <dirk.behme@de.bosch.com>
>
> Remove the compiler warning
>
>    net/core/sysctl_net_core.c:26:12: warning: 'one' defined but not used [-Wunused-variable]
>       static int one = 1;
>
> introduced by the 3.14.37 stable commit a1d55b36de6bf2 ("net: sysctl_net_core:
> check SNDBUF and RCVBUF for min length") which made 'one' obsolete (in
> contrast to recent mainline kernel, which still uses 'one').
>
> Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
> Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
> Cc: <netdev@vger.kernel.org>
> Cc: <stable@vger.kernel.org> # 3.14.x-
> Fixes: a1d55b36de6b ("net: sysctl_net_core: check SNDBUF and RCVBUF for min length")


It seems that this has been sent previously and was rejected:

http://www.spinics.net/lists/stable/msg87281.html

http://www.spinics.net/lists/stable/msg87282.html

Best regards

Dirk

> ---
>   net/core/sysctl_net_core.c | 1 -
>   1 file changed, 1 deletion(-)
>
> diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c
> index e731c96..8725b91 100644
> --- a/net/core/sysctl_net_core.c
> +++ b/net/core/sysctl_net_core.c
> @@ -23,7 +23,6 @@
>   #include <net/pkt_sched.h>
>
>   static int zero = 0;
> -static int one = 1;
>   static int ushort_max = USHRT_MAX;
>   static int min_sndbuf = SOCK_MIN_SNDBUF;
>   static int min_rcvbuf = SOCK_MIN_RCVBUF;
>

      reply	other threads:[~2015-08-11 13:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-11 12:42 [PATCH 3.14] net: sysctl_net_core: remove compiler warning about unused variable 'one' Vladimir Zapolskiy
2015-08-11 13:54 ` Dirk Behme [this message]

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=55C9FE7E.9050302@gmail.com \
    --to=dirk.behme@gmail.com \
    --cc=davem@davemloft.net \
    --cc=dirk.behme@de.bosch.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=netdev@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=vladimir_zapolskiy@mentor.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).