Re: svn commit: r276993 - head/sys/net80211

2015-01-12 Thread Gleb Smirnoff
On Sun, Jan 11, 2015 at 06:43:45PM +, Adrian Chadd wrote:
A Author: adrian
A Date: Sun Jan 11 18:43:45 2015
A New Revision: 276993
A URL: https://svnweb.freebsd.org/changeset/base/276993
A 
A Log:
A   Switch around the order of static inline to be in line with how it's
A   used elsewhere, and to keep gcc-4.7 happy.
A   
A   This is a request from the DragonflyBSD project.

I'd suggest to also do s/__inline/inline/ in such sweeps due to inline
being a C99 keyword, while __inline is a GNU-ism from pre-99 times.

-- 
Totus tuus, Glebius.
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


Re: svn commit: r276993 - head/sys/net80211

2015-01-12 Thread Adrian Chadd
On 12 January 2015 at 07:05, Gleb Smirnoff gleb...@freebsd.org wrote:
 On Sun, Jan 11, 2015 at 06:43:45PM +, Adrian Chadd wrote:
 A Author: adrian
 A Date: Sun Jan 11 18:43:45 2015
 A New Revision: 276993
 A URL: https://svnweb.freebsd.org/changeset/base/276993
 A
 A Log:
 A   Switch around the order of static inline to be in line with how it's
 A   used elsewhere, and to keep gcc-4.7 happy.
 A
 A   This is a request from the DragonflyBSD project.

 I'd suggest to also do s/__inline/inline/ in such sweeps due to inline
 being a C99 keyword, while __inline is a GNU-ism from pre-99 times.

Sure thing.

(I don't /think/ anyone tries compiling net80211 on anything pre-C99.
Oh wait, crap, they do. Well, they can push me patches to create an
INLINE #define or something.)



-adrian

 --
 Totus tuus, Glebius.
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org


svn commit: r276993 - head/sys/net80211

2015-01-11 Thread Adrian Chadd
Author: adrian
Date: Sun Jan 11 18:43:45 2015
New Revision: 276993
URL: https://svnweb.freebsd.org/changeset/base/276993

Log:
  Switch around the order of static inline to be in line with how it's
  used elsewhere, and to keep gcc-4.7 happy.
  
  This is a request from the DragonflyBSD project.

Modified:
  head/sys/net80211/ieee80211_ratectl.h

Modified: head/sys/net80211/ieee80211_ratectl.h
==
--- head/sys/net80211/ieee80211_ratectl.h   Sun Jan 11 18:39:27 2015
(r276992)
+++ head/sys/net80211/ieee80211_ratectl.h   Sun Jan 11 18:43:45 2015
(r276993)
@@ -62,13 +62,13 @@ voidieee80211_ratectl_set(struct ieee80
 
 MALLOC_DECLARE(M_80211_RATECTL);
 
-static void __inline
+static __inline void
 ieee80211_ratectl_deinit(struct ieee80211vap *vap)
 {
vap-iv_rate-ir_deinit(vap);
 }
 
-static void __inline
+static __inline void
 ieee80211_ratectl_node_init(struct ieee80211_node *ni)
 {
const struct ieee80211vap *vap = ni-ni_vap;
@@ -76,7 +76,7 @@ ieee80211_ratectl_node_init(struct ieee8
vap-iv_rate-ir_node_init(ni);
 }
 
-static void __inline
+static __inline void
 ieee80211_ratectl_node_deinit(struct ieee80211_node *ni)
 {
const struct ieee80211vap *vap = ni-ni_vap;
@@ -92,14 +92,14 @@ ieee80211_ratectl_rate(struct ieee80211_
return vap-iv_rate-ir_rate(ni, arg, iarg);
 }
 
-static void __inline
+static __inline void
 ieee80211_ratectl_tx_complete(const struct ieee80211vap *vap,
 const struct ieee80211_node *ni, int status, void *arg1, void *arg2)
 {
vap-iv_rate-ir_tx_complete(vap, ni, status, arg1, arg2);
 }
 
-static void __inline
+static __inline void
 ieee80211_ratectl_tx_update(const struct ieee80211vap *vap,
 const struct ieee80211_node *ni, void *arg1, void *arg2, void *arg3)
 {
@@ -108,7 +108,7 @@ ieee80211_ratectl_tx_update(const struct
vap-iv_rate-ir_tx_update(vap, ni, arg1, arg2, arg3);
 }
 
-static void __inline
+static __inline void
 ieee80211_ratectl_setinterval(const struct ieee80211vap *vap, int msecs)
 {
if (vap-iv_rate-ir_setinterval == NULL)
___
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org