diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2008-03-16 10:58:09 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2008-03-16 10:58:09 +0000 |
commit | 237fdd787b20699fc2c01387011b06a9ce746cfa (patch) | |
tree | 6564575d1252cf3bc48428a52fcc596c284e459b /sys/sys | |
parent | f48a417b24490b3bdb96ce9c6e4cb48b5dc82437 (diff) | |
download | src-237fdd787b20699fc2c01387011b06a9ce746cfa.tar.gz src-237fdd787b20699fc2c01387011b06a9ce746cfa.zip |
In keeping with style(9)'s recommendations on macros, use a ';'
after each SYSINIT() macro invocation. This makes a number of
lightweight C parsers much happier with the FreeBSD kernel
source, including cflow's prcc and lxr.
MFC after: 1 month
Discussed with: imp, rink
Notes
Notes:
svn path=/head/; revision=177253
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/eventhandler.h | 2 | ||||
-rw-r--r-- | sys/sys/module.h | 2 | ||||
-rw-r--r-- | sys/sys/taskqueue.h | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/eventhandler.h b/sys/sys/eventhandler.h index 2cd60564db81..716332fcfc23 100644 --- a/sys/sys/eventhandler.h +++ b/sys/sys/eventhandler.h @@ -112,7 +112,7 @@ struct __hack priority); \ } \ SYSINIT(name ## _evh_init, SI_SUB_CONFIGURE, SI_ORDER_ANY, \ - name ## _evh_init, arg) \ + name ## _evh_init, arg); \ struct __hack #define EVENTHANDLER_INVOKE(name, ...) \ diff --git a/sys/sys/module.h b/sys/sys/module.h index bcffb452905b..6fbf5244dcb1 100644 --- a/sys/sys/module.h +++ b/sys/sys/module.h @@ -129,7 +129,7 @@ struct mod_metadata { MODULE_DEPEND(name, kernel, __FreeBSD_version, \ __FreeBSD_version, MODULE_KERNEL_MAXVER); \ MODULE_METADATA(_md_##name, MDT_MODULE, &data, #name); \ - SYSINIT(name##module, sub, order, module_register_init, &data) \ + SYSINIT(name##module, sub, order, module_register_init, &data); \ struct __hack #define MODULE_VERSION(module, version) \ diff --git a/sys/sys/taskqueue.h b/sys/sys/taskqueue.h index 6d6d9ad6997e..c980fc187565 100644 --- a/sys/sys/taskqueue.h +++ b/sys/sys/taskqueue.h @@ -97,7 +97,7 @@ taskqueue_define_##name(void *arg) \ } \ \ SYSINIT(taskqueue_##name, SI_SUB_CONFIGURE, SI_ORDER_SECOND, \ - taskqueue_define_##name, NULL) \ + taskqueue_define_##name, NULL); \ \ struct __hack #define TASKQUEUE_DEFINE_THREAD(name) \ @@ -122,7 +122,7 @@ taskqueue_define_##name(void *arg) \ } \ \ SYSINIT(taskqueue_##name, SI_SUB_CONFIGURE, SI_ORDER_SECOND, \ - taskqueue_define_##name, NULL) \ + taskqueue_define_##name, NULL); \ \ struct __hack #define TASKQUEUE_FAST_DEFINE_THREAD(name) \ |