projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
843e600
)
kobject: remove unused KOBJ_MAX action
author
Garrit Franke
<garritfranke@gmail.com>
Thu, 16 Jul 2020 20:31:01 +0000
(22:31 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 23 Jul 2020 08:33:12 +0000
(10:33 +0200)
The loop in libb/kobj_uevent.c that checked for KOBBJ_MAX is no longer
present, we do a much more sane ARRAY_SIZE() check instead. See
5c5daf657cb5
("Driver core: exclude kobject_uevent.c for
!CONFIG_HOTPLUG").
Signed-off-by: Garrit Franke <garritfranke@gmail.com>
Link:
https://lore.kernel.org/r/20200716203100.7959-1-garritfranke@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/kobject.h
patch
|
blob
|
history
diff --git
a/include/linux/kobject.h
b/include/linux/kobject.h
index
6cba088
..
ea30529
100644
(file)
--- a/
include/linux/kobject.h
+++ b/
include/linux/kobject.h
@@
-59,7
+59,6
@@
enum kobject_action {
KOBJ_OFFLINE,
KOBJ_BIND,
KOBJ_UNBIND,
- KOBJ_MAX
};
struct kobject {