lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200713191509.342466-1-garritfranke@gmail.com>
Date:   Mon, 13 Jul 2020 21:15:10 +0200
From:   Garrit Franke <garritfranke@...il.com>
To:     rafael@...nel.org, gregkh@...uxfoundation.org,
        linux-kernel@...r.kernel.org
Cc:     Garrit Franke <garritfranke@...il.com>
Subject: [PATCH] kobject: remove unused kobject action

I noticed that the KOBJ_MAX action is never used. Does it serve any
purpose, or can it be removed? As far as I know, Kobjects shouldn't be
used for drivers and more higher level abstraction layers, so I figured
it isn't used by user-provided code either.

Regards
Garrit Franke

Signed-off-by: Garrit Franke <garritfranke@...il.com>
---
 include/linux/kobject.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/linux/kobject.h b/include/linux/kobject.h
index 6cba088bee24..fd99c5d2d8b7 100644
--- a/include/linux/kobject.h
+++ b/include/linux/kobject.h
@@ -58,8 +58,7 @@ enum kobject_action {
 	KOBJ_ONLINE,
 	KOBJ_OFFLINE,
 	KOBJ_BIND,
-	KOBJ_UNBIND,
-	KOBJ_MAX
+	KOBJ_UNBIND
 };
 
 struct kobject {
-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ