From: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
To: Shan Wei <shanwei@cn.fujitsu.com>
Cc: David Miller <davem@davemloft.net>,
Network-Maillist <netdev@vger.kernel.org>,
kuznet@ms2.inr.ac.ru, pekkas@netcore.fi, jmorris@namei.org,
Patrick McHardy <kaber@trash.net>,
yoshfuji@linux-ipv6.org
Subject: Re: [PATCH 1/3] net: kill unused macros in head file
Date: Mon, 29 Nov 2010 16:42:43 +0900 [thread overview]
Message-ID: <1291016563.7802.2.camel@takos> (raw)
In-Reply-To: <4CF34DEC.6090907@cn.fujitsu.com>
2010-11-29 14:53 +0800, Shan Wei wrote:
> These macros have been defined for several years since v2.6.12-rc2(tracing by git),
> but never be used. So remove them.
>
>
> Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
> ---
> include/net/addrconf.h | 2 --
> include/net/ip6_route.h | 1 -
> include/net/ndisc.h | 6 ------
> include/net/snmp.h | 1 -
> include/net/sock.h | 3 ---
> include/net/tcp.h | 6 ------
> 6 files changed, 0 insertions(+), 19 deletions(-)
>
> diff --git a/include/net/addrconf.h b/include/net/addrconf.h
> index a944124..23710aa 100644
> --- a/include/net/addrconf.h
> +++ b/include/net/addrconf.h
> @@ -1,8 +1,6 @@
> #ifndef _ADDRCONF_H
> #define _ADDRCONF_H
>
> -#define RETRANS_TIMER HZ
> -
> #define MAX_RTR_SOLICITATIONS 3
> #define RTR_SOLICITATION_INTERVAL (4*HZ)
>
I think we should use it in net/ipv6/addrconf.c,
instead of magic number.
> diff --git a/include/net/ndisc.h b/include/net/ndisc.h
> index 895997b..f134987 100644
> --- a/include/net/ndisc.h
> +++ b/include/net/ndisc.h
> @@ -39,12 +39,6 @@ enum {
>
> #define MAX_RTR_SOLICITATION_DELAY HZ
>
> -#define ND_REACHABLE_TIME (30*HZ)
> -#define ND_RETRANS_TIMER HZ
ditto (in net/ipv6/ndisc.c)
--yoshfuji
next prev parent reply other threads:[~2010-11-29 7:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-29 6:53 [PATCH 1/3] net: kill unused macros in head file Shan Wei
2010-11-29 7:42 ` YOSHIFUJI Hideaki [this message]
2010-11-29 8:21 ` Shan Wei
2010-12-01 20:33 ` 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=1291016563.7802.2.camel@takos \
--to=yoshfuji@linux-ipv6.org \
--cc=davem@davemloft.net \
--cc=jmorris@namei.org \
--cc=kaber@trash.net \
--cc=kuznet@ms2.inr.ac.ru \
--cc=netdev@vger.kernel.org \
--cc=pekkas@netcore.fi \
--cc=shanwei@cn.fujitsu.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).