Skip to contentSkip to conversation

dm vdo: remove unused struct 'uds_attribute'

PATCH In review [email protected] 2 participants 4 messages May 23, 2024 – May 24, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dm vdo: remove unused struct 'uds_attribute'

From: "Dr. David Alan Gilbert" <[email protected]>

'uds_attribute' is unused since
commit a9da0fb6d8c6 ("dm vdo: remove all sysfs interfaces").

Remove it.

---
 drivers/md/dm-vdo/dedupe.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/md/dm-vdo/dedupe.c +0 -5
index 117266e1b3ae..39ac68614419 100644
@@ -148,11 +148,6 @@
 #include "vdo.h"
 #include "wait-queue.h"
 
-struct uds_attribute {
-	struct attribute attr;
-	const char *(*show_string)(struct hash_zones *hash_zones);
-};
-
 #define DEDUPE_QUERY_TIMER_IDLE 0
 #define DEDUPE_QUERY_TIMER_RUNNING 1
 #define DEDUPE_QUERY_TIMER_FIRED 2
Signature · 1 line
2.45.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · On 5/23/24 17:07, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'uds_attribute' is unused since
commit a9da0fb6d8c6 ("dm vdo: remove all sysfs interfaces").

Remove it.

Yes, this was clearly an oversight on our part. Feel free to add:

Quoted 20 lines
---
  drivers/md/dm-vdo/dedupe.c | 5 -----
  1 file changed, 5 deletions(-)
drivers/md/dm-vdo/dedupe.c +0 -5
index 117266e1b3ae..39ac68614419 100644
@@ -148,11 +148,6 @@
  #include "vdo.h"
  #include "wait-queue.h"
 
-struct uds_attribute {
-	struct attribute attr;
-	const char *(*show_string)(struct hash_zones *hash_zones);
-};
-
  #define DEDUPE_QUERY_TIMER_IDLE 0
  #define DEDUPE_QUERY_TIMER_RUNNING 1
  #define DEDUPE_QUERY_TIMER_FIRED 2
#2 lore raw
Quoted 6 lines · * Matthew Sakai ([email protected]) wrote:
Quoted 5 lines · On 5/23/24 17:07, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'uds_attribute' is unused since
commit a9da0fb6d8c6 ("dm vdo: remove all sysfs interfaces").

Quoted 6 lines
Quoted 3 lines

Remove it.

Yes, this was clearly an oversight on our part. Feel free to add:

Thanks for the quick review.
Is this something you'll send a pull for, or do I need to ask someone else to include it?

Dave

Quoted 21 lines
Quoted 19 lines
---
  drivers/md/dm-vdo/dedupe.c | 5 -----
  1 file changed, 5 deletions(-)
drivers/md/dm-vdo/dedupe.c +0 -5
index 117266e1b3ae..39ac68614419 100644
@@ -148,11 +148,6 @@
  #include "vdo.h"
  #include "wait-queue.h"
-struct uds_attribute {
-	struct attribute attr;
-	const char *(*show_string)(struct hash_zones *hash_zones);
-};
-
  #define DEDUPE_QUERY_TIMER_IDLE 0
  #define DEDUPE_QUERY_TIMER_RUNNING 1
  #define DEDUPE_QUERY_TIMER_FIRED 2
Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
maintainer
#3 lore raw
Quoted 9 lines · Dr. David Alan Gilbert
Quoted 8 lines · * Matthew Sakai ([email protected]) wrote:
Quoted 7 lines · On 5/23/24 17:07, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'uds_attribute' is unused since
commit a9da0fb6d8c6 ("dm vdo: remove all sysfs interfaces").

Remove it.

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

Yes, this was clearly an oversight on our part. Feel free to add:

Thanks for the quick review.
Is this something you'll send a pull for, or do I need to ask someone else to include it?

No need to do anything else, I think. Mike (or Mikulas), can you include this with the next set of device mapper patches?

Quoted 23 lines

Dave

Quoted 21 lines
Quoted 19 lines
---
   drivers/md/dm-vdo/dedupe.c | 5 -----
   1 file changed, 5 deletions(-)
drivers/md/dm-vdo/dedupe.c +0 -5
index 117266e1b3ae..39ac68614419 100644
@@ -148,11 +148,6 @@
   #include "vdo.h"
   #include "wait-queue.h"
-struct uds_attribute {
-	struct attribute attr;
-	const char *(*show_string)(struct hash_zones *hash_zones);
-};
-
   #define DEDUPE_QUERY_TIMER_IDLE 0
   #define DEDUPE_QUERY_TIMER_RUNNING 1
   #define DEDUPE_QUERY_TIMER_FIRED 2