All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Cheng <crquan@gmail.com>
To: "David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, cr_quan@163.com
Subject: [PATCH] net/ipv4/af_inet.c: use ARRAY_SIZE macro from kernel.h instead
Date: Sun,  2 Sep 2007 12:59:07 +0800	[thread overview]
Message-ID: <11887091471748-git-send-email-crquan@gmail.com> (raw)

Signed-off-by: Denis Cheng <crquan@gmail.com>
---
 net/ipv4/af_inet.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index e681034..d5e8b67 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -939,7 +939,7 @@ static struct inet_protosw inetsw_array[] =
        }
 };
 
-#define INETSW_ARRAY_LEN (sizeof(inetsw_array) / sizeof(struct inet_protosw))
+#define INETSW_ARRAY_LEN ARRAY_SIZE(inetsw_array)
 
 void inet_register_protosw(struct inet_protosw *p)
 {
-- 
1.5.3.rc7


             reply	other threads:[~2007-09-02  4:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-02  4:59 Denis Cheng [this message]
2007-09-02  5:04 ` [PATCH] net/ipv4/af_inet.c: use ARRAY_SIZE macro from kernel.h instead Robert P. J. Day
2007-09-02  6:30   ` rae l
2007-09-02  6:36     ` Robert P. J. Day
2007-09-02 10:30       ` [PATCH 1/2] net/: all net/ cleanup with ARRAY_SIZE Denis Cheng
2007-09-02 10:30         ` [PATCH 2/2] drivers/net/: all drivers/net/ " Denis Cheng
2007-09-13  4:10           ` Jeff Garzik
2007-09-16 23:42         ` [PATCH 1/2] net/: all net/ " David Miller
2007-09-20 16:49           ` rae l
2007-09-16 23:39 ` [PATCH] net/ipv4/af_inet.c: use ARRAY_SIZE macro from kernel.h instead 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=11887091471748-git-send-email-crquan@gmail.com \
    --to=crquan@gmail.com \
    --cc=cr_quan@163.com \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.