]> Git Repo - linux.git/commitdiff
net ax25: Fix the build when sysctl support is disabled.
authorEric W. Biederman <[email protected]>
Mon, 23 Apr 2012 14:25:49 +0000 (14:25 +0000)
committerDavid S. Miller <[email protected]>
Tue, 24 Apr 2012 02:14:47 +0000 (22:14 -0400)
Randy Dunlap <[email protected]> reported:

> On 04/23/2012 12:07 AM, Stephen Rothwell wrote:
>
>> Hi all,
>>
>> Changes since 20120420:
>
>
> include/net/ax25.h:447:75: error: expected ';' before '}' token
>
> static inline int ax25_register_dev_sysctl(ax25_dev *ax25_dev) { return 0 };
> static inline void ax25_unregister_dev_sysctl(ax25_dev *ax25_dev) {};
>
> First function:  move ';' inside braces.
> Second function:  drop the ';'.

Put the semicolons where it makes sense.

Signed-off-by: Eric W. Biederman <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
include/net/ax25.h

index 8a7a1220e6783137426b25dbe721bc70e15b2174..5d2352154cf67f7a116309fdcbf756e79d3b608e 100644 (file)
@@ -444,8 +444,8 @@ extern void ax25_uid_free(void);
 extern int ax25_register_dev_sysctl(ax25_dev *ax25_dev);
 extern void ax25_unregister_dev_sysctl(ax25_dev *ax25_dev);
 #else
-static inline int ax25_register_dev_sysctl(ax25_dev *ax25_dev) { return 0 };
-static inline void ax25_unregister_dev_sysctl(ax25_dev *ax25_dev) {};
+static inline int ax25_register_dev_sysctl(ax25_dev *ax25_dev) { return 0; }
+static inline void ax25_unregister_dev_sysctl(ax25_dev *ax25_dev) {}
 #endif /* CONFIG_SYSCTL */
 
 #endif
This page took 0.054362 seconds and 4 git commands to generate.