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

Thomas Weißschuh posted 1 patch 2 months, 1 week ago
include/scsi/libsas.h | 4 ----
1 file changed, 4 deletions(-)
[PATCH] scsi: libsas: Delete unused to_dom_device() and to_dev_attr()
Posted by Thomas Weißschuh 2 months, 1 week ago
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>
---
 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@weissschuh.net>

Re: [PATCH] scsi: libsas: Delete unused to_dom_device() and to_dev_attr()
Posted by Martin K. Petersen 2 months ago
On Wed, 08 Apr 2026 20:28:00 +0200, Thomas Weißschuh wrote:

> These macros are unused and to_dev_attr() will conflict with an upcoming
> centralization of general attribute macros.
> 
> 

Applied to 7.1/scsi-queue, thanks!

[1/1] scsi: libsas: Delete unused to_dom_device() and to_dev_attr()
      https://git.kernel.org/mkp/scsi/c/1a2f61970a63

-- 
Martin K. Petersen
Re: [PATCH] scsi: libsas: Delete unused to_dom_device() and to_dev_attr()
Posted by Martin K. Petersen 2 months, 1 week ago
Thomas,

> These macros are unused and to_dev_attr() will conflict with an
> upcoming centralization of general attribute macros.

Applied to 7.1/scsi-staging, thanks!

-- 
Martin K. Petersen
Re: [PATCH] scsi: libsas: Delete unused to_dom_device() and to_dev_attr()
Posted by John Garry 2 months, 1 week ago
On 08/04/2026 19:28, Thomas Weißschuh wrote:
> 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>