Skip to contentSkip to conversation

module: fix () used as prototype in include/linux/module.h

tip:x86/mm tip-bot for H. Peter Anvin 1 participant 1 message Feb 17, 2010 1 message not in the archive Module support

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Commit-ID:  45d5f58b53a055913fee4351cb3ce1133d3c5261
Gitweb:     http://git.kernel.org/tip/45d5f58b53a055913fee4351cb3ce1133d3c5261
Author:     H. Peter Anvin <[email protected]>
AuthorDate: Mon, 1 Feb 2010 17:33:56 -0800
Committer:  H. Peter Anvin <[email protected]>
CommitDate: Wed, 17 Feb 2010 10:11:24 -0800

module: fix () used as prototype in include/linux/module.h

Checkin 7f5562635f80456c98d573cc45d10137dfcb1b8b had () used as a prototype, which means (void) in C++, but means (...) in C, which is almost never correct, and therefore issues a warning. Change it to the properly intended (void).

Cc: Siarhei Liakh <[email protected]>
Cc: Xuxian Jiang <[email protected]>
LKML-Reference: <[email protected]>

---
 include/linux/module.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
include/linux/module.h +2 -2
index c6040ce..3232b31 100644
@@ -668,11 +668,11 @@ static inline int module_get_iter_tracepoints(struct tracepoint_iter *iter)
 	return 0;
 }
 
-static inline void set_all_modules_text_rw()
+static inline void set_all_modules_text_rw(void)
 {
 }
 
-static inline void set_all_modules_text_ro()
+static inline void set_all_modules_text_ro(void)
 {
 }
 #endif /* CONFIG_MODULES */