diff options
| author | Greg Kroah-Hartman <greg@kroah.com> | 2004-10-15 02:07:38 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2004-10-15 02:07:38 -0700 |
| commit | 23aebb6f8755121394ef088d84a7fa483b444aa9 (patch) | |
| tree | 6ce45ed7f7377475a41b544376ba0e39ff53abea /include/linux | |
| parent | 086bdc0608c56c6b1afb76d641111e1df6e99024 (diff) | |
kevent: add __bitwise kobject_action to help the compiler check for misusages
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/kobject_uevent.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/include/linux/kobject_uevent.h b/include/linux/kobject_uevent.h index ad0f04424522..1cea3ab7e141 100644 --- a/include/linux/kobject_uevent.h +++ b/include/linux/kobject_uevent.h @@ -15,14 +15,13 @@ * If you add an action here, you must also add the proper string to the * lib/kobject_uevent.c file. */ - +typedef int __bitwise kobject_action_t; enum kobject_action { - KOBJ_ADD = 0x00, /* add event, for hotplug */ - KOBJ_REMOVE = 0x01, /* remove event, for hotplug */ - KOBJ_CHANGE = 0x02, /* a sysfs attribute file has changed */ - KOBJ_MOUNT = 0x03, /* mount event for block devices */ - KOBJ_UMOUNT = 0x04, /* umount event for block devices */ - KOBJ_MAX_ACTION, /* must be last action listed */ + KOBJ_ADD = (__force kobject_action_t) 0x01, /* add event, for hotplug */ + KOBJ_REMOVE = (__force kobject_action_t) 0x02, /* remove event, for hotplug */ + KOBJ_CHANGE = (__force kobject_action_t) 0x03, /* a sysfs attribute file has changed */ + KOBJ_MOUNT = (__force kobject_action_t) 0x04, /* mount event for block devices */ + KOBJ_UMOUNT = (__force kobject_action_t) 0x05, /* umount event for block devices */ }; |
