diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-04-23 10:25:49 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-23 22:14:47 -0400 |
commit | b98985073bc5403ef1320866e4ef8bbc5d587ceb (patch) | |
tree | 316170ba340cfa9dbd4a39efb19e7e1f736bd236 /include/net/ax25.h | |
parent | 48c74958571b609522c016136259a1369a3ddd24 (diff) |
net ax25: Fix the build when sysctl support is disabled.
Randy Dunlap <rdunlap@xenotime.net> 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 <ebiederm@xmission.com>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ax25.h')
-rw-r--r-- | include/net/ax25.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/ax25.h b/include/net/ax25.h index 8a7a1220e678..5d2352154cf6 100644 --- a/include/net/ax25.h +++ b/include/net/ax25.h | |||
@@ -444,8 +444,8 @@ extern void ax25_uid_free(void); | |||
444 | extern int ax25_register_dev_sysctl(ax25_dev *ax25_dev); | 444 | extern int ax25_register_dev_sysctl(ax25_dev *ax25_dev); |
445 | extern void ax25_unregister_dev_sysctl(ax25_dev *ax25_dev); | 445 | extern void ax25_unregister_dev_sysctl(ax25_dev *ax25_dev); |
446 | #else | 446 | #else |
447 | static inline int ax25_register_dev_sysctl(ax25_dev *ax25_dev) { return 0 }; | 447 | static inline int ax25_register_dev_sysctl(ax25_dev *ax25_dev) { return 0; } |
448 | static inline void ax25_unregister_dev_sysctl(ax25_dev *ax25_dev) {}; | 448 | static inline void ax25_unregister_dev_sysctl(ax25_dev *ax25_dev) {} |
449 | #endif /* CONFIG_SYSCTL */ | 449 | #endif /* CONFIG_SYSCTL */ |
450 | 450 | ||
451 | #endif | 451 | #endif |