All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] block: cleanup flag_{show,store}
       [not found] <CGME20240617045649epcas5p1763924a49c5182f30a9ae3ea013390ae@epcas5p1.samsung.com>
@ 2024-06-17  4:49 ` Kanchan Joshi
  2024-06-17  6:06   ` Christoph Hellwig
  2024-06-17 16:13   ` Jens Axboe
  0 siblings, 2 replies; 3+ messages in thread
From: Kanchan Joshi @ 2024-06-17  4:49 UTC (permalink / raw)
  To: axboe, hch; +Cc: linux-block, Kanchan Joshi

Remove a superfluous argument that flag_show and flag_store currently
take.

Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
---
 block/blk-integrity.c | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/block/blk-integrity.c b/block/blk-integrity.c
index 05a48689a424..010decc892ea 100644
--- a/block/blk-integrity.c
+++ b/block/blk-integrity.c
@@ -186,8 +186,8 @@ const char *blk_integrity_profile_name(struct blk_integrity *bi)
 }
 EXPORT_SYMBOL_GPL(blk_integrity_profile_name);
 
-static ssize_t flag_store(struct device *dev, struct device_attribute *attr,
-		const char *page, size_t count, unsigned char flag)
+static ssize_t flag_store(struct device *dev, const char *page, size_t count,
+		unsigned char flag)
 {
 	struct request_queue *q = dev_to_disk(dev)->queue;
 	struct queue_limits lim;
@@ -213,8 +213,7 @@ static ssize_t flag_store(struct device *dev, struct device_attribute *attr,
 	return count;
 }
 
-static ssize_t flag_show(struct device *dev, struct device_attribute *attr,
-		char *page, unsigned char flag)
+static ssize_t flag_show(struct device *dev, char *page, unsigned char flag)
 {
 	struct blk_integrity *bi = dev_to_bi(dev);
 
@@ -253,26 +252,26 @@ static ssize_t read_verify_store(struct device *dev,
 				 struct device_attribute *attr,
 				 const char *page, size_t count)
 {
-	return flag_store(dev, attr, page, count, BLK_INTEGRITY_NOVERIFY);
+	return flag_store(dev, page, count, BLK_INTEGRITY_NOVERIFY);
 }
 
 static ssize_t read_verify_show(struct device *dev,
 				struct device_attribute *attr, char *page)
 {
-	return flag_show(dev, attr, page, BLK_INTEGRITY_NOVERIFY);
+	return flag_show(dev, page, BLK_INTEGRITY_NOVERIFY);
 }
 
 static ssize_t write_generate_store(struct device *dev,
 				    struct device_attribute *attr,
 				    const char *page, size_t count)
 {
-	return flag_store(dev, attr, page, count, BLK_INTEGRITY_NOGENERATE);
+	return flag_store(dev, page, count, BLK_INTEGRITY_NOGENERATE);
 }
 
 static ssize_t write_generate_show(struct device *dev,
 				   struct device_attribute *attr, char *page)
 {
-	return flag_show(dev, attr, page, BLK_INTEGRITY_NOGENERATE);
+	return flag_show(dev, page, BLK_INTEGRITY_NOGENERATE);
 }
 
 static ssize_t device_is_integrity_capable_show(struct device *dev,
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] block: cleanup flag_{show,store}
  2024-06-17  4:49 ` [PATCH] block: cleanup flag_{show,store} Kanchan Joshi
@ 2024-06-17  6:06   ` Christoph Hellwig
  2024-06-17 16:13   ` Jens Axboe
  1 sibling, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2024-06-17  6:06 UTC (permalink / raw)
  To: Kanchan Joshi; +Cc: axboe, hch, linux-block

Looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] block: cleanup flag_{show,store}
  2024-06-17  4:49 ` [PATCH] block: cleanup flag_{show,store} Kanchan Joshi
  2024-06-17  6:06   ` Christoph Hellwig
@ 2024-06-17 16:13   ` Jens Axboe
  1 sibling, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2024-06-17 16:13 UTC (permalink / raw)
  To: hch, Kanchan Joshi; +Cc: linux-block


On Mon, 17 Jun 2024 10:19:18 +0530, Kanchan Joshi wrote:
> Remove a superfluous argument that flag_show and flag_store currently
> take.
> 
> 

Applied, thanks!

[1/1] block: cleanup flag_{show,store}
      commit: b83bd486b43d2b7f10595a9d7a52d41023eaa9c1

Best regards,
-- 
Jens Axboe




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-06-17 16:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CGME20240617045649epcas5p1763924a49c5182f30a9ae3ea013390ae@epcas5p1.samsung.com>
2024-06-17  4:49 ` [PATCH] block: cleanup flag_{show,store} Kanchan Joshi
2024-06-17  6:06   ` Christoph Hellwig
2024-06-17 16:13   ` Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.