[PATCH] scsi: libsas: Delete unused to_dom_device() and to_dev_attr()

From: Thomas Weißschuh

Date: Wed Apr 08 2026 - 14:37:44 EST


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@xxxxxxxxxxxxxx>
---
include/scsi/libsas.h | 4 ----
1 file changed, 4 deletions(-)

diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h
index e76f5744941b..163f23c92b41 100644
--- a/include/scsi/libsas.h
+++ b/include/scsi/libsas.h
@@ -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,

---
base-commit: 3036cd0d3328220a1858b1ab390be8b562774e8a
change-id: 20260408-libsas-cleanup-336a5ba32c15

Best regards,
--
Thomas Weißschuh <linux@xxxxxxxxxxxxxx>