mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: netdev@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>, linux-kernel@vger.kernel.org
Subject: [PATCH 03/12] udplite.h: Remove extern from function prototypes
Date: Mon, 23 Sep 2013 11:33:39 -0700	[thread overview]
Message-ID: <c9da8be3fe2aec5da9e4fe64b234a02e43ee12a4.1379961014.git.joe@perches.com> (raw)
In-Reply-To: <445209f8885ccd8234fa787c30d63e63fc7917d7.1379961014.git.joe@perches.com>

There are a mix of function prototypes with and without extern
in the kernel sources.  Standardize on not using extern for
function prototypes.

Function prototypes don't need to be written with extern.
extern is assumed by the compiler.  Its use is as unnecessary as
using auto to declare automatic/local variables in a block.

Signed-off-by: Joe Perches <joe@perches.com>
---
 include/net/udplite.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/net/udplite.h b/include/net/udplite.h
index 7137545..2caadab 100644
--- a/include/net/udplite.h
+++ b/include/net/udplite.h
@@ -126,7 +126,7 @@ static inline __wsum udplite_csum(struct sk_buff *skb)
 	return skb_checksum(skb, off, len, 0);
 }
 
-extern void	udplite4_register(void);
-extern int 	udplite_get_port(struct sock *sk, unsigned short snum,
-			int (*scmp)(const struct sock *, const struct sock *));
+void udplite4_register(void);
+int udplite_get_port(struct sock *sk, unsigned short snum,
+		     int (*scmp)(const struct sock *, const struct sock *));
 #endif	/* _UDPLITE_H */
-- 
1.8.1.2.459.gbcd45b4.dirty


  parent reply	other threads:[~2013-09-23 18:35 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-23 18:33 [PATCH 01/12] tcp.h: " Joe Perches
2013-09-23 18:33 ` [PATCH 02/12] udp.h: " Joe Perches
2013-09-23 18:33 ` Joe Perches [this message]
2013-09-23 18:33 ` [PATCH 04/12] wext.h: " Joe Perches
2013-09-23 18:33 ` [PATCH 05/12] wimax.h: " Joe Perches
2013-09-23 18:33 ` [PATCH 06/12] x25.h: " Joe Perches
2013-09-23 18:33 ` [PATCH 07/12] xfrm.h: " Joe Perches
2013-09-23 18:37 ` [PATCH 08/12] bluetooth: " Joe Perches
2013-09-24  4:24   ` Marcel Holtmann
2013-09-23 18:37 ` [PATCH 09/12] caif_hsi.h: " Joe Perches
2013-09-23 18:37 ` [PATCH 10/12] irda: " Joe Perches
2013-09-23 18:37 ` [PATCH 11/12] netfilter: " Joe Perches
2013-09-28 19:17   ` Jan Engelhardt
2013-09-23 18:37 ` [PATCH 12/12] sctp: " Joe Perches
2013-09-23 19:11   ` Vlad Yasevich
2013-09-23 20:39   ` Neil Horman
2013-09-23 20:30 ` [PATCH 01/12] tcp.h: " David Miller
2013-09-23 20:44   ` Joe Perches
2013-09-23 20:45     ` 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=c9da8be3fe2aec5da9e4fe64b234a02e43ee12a4.1379961014.git.joe@perches.com \
    --to=joe@perches.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®