]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
scsi: libsas: Delete unused to_dom_device() and to_dev_attr()
authorThomas Weißschuh <linux@weissschuh.net>
Wed, 8 Apr 2026 18:28:00 +0000 (20:28 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 9 Apr 2026 01:55:51 +0000 (21:55 -0400)
These macros are unused and to_dev_attr() will conflict with an upcoming
centralization of general attribute macros.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Link: https://patch.msgid.link/20260408-libsas-cleanup-v1-1-826325bbc0ba@weissschuh.net
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
include/scsi/libsas.h

index e76f5744941be39bee30bf50ea5db45a0b295126..163f23c92b4119bec2d226abeba79bc5ba863e74 100644 (file)
@@ -62,10 +62,6 @@ enum discover_event {
 
 /* ---------- Expander Devices ---------- */
 
-#define to_dom_device(_obj) container_of(_obj, struct domain_device, dev_obj)
-#define to_dev_attr(_attr)  container_of(_attr, struct domain_dev_attribute,\
-                                        attr)
-
 enum routing_attribute {
        DIRECT_ROUTING,
        SUBTRACTIVE_ROUTING,