Skip to contentSkip to conversation

NVMe: Make nvme_meta_noop to supress Sparse warning

PATCH New Jon Derrick 2 participants 3 messages Jun 22, 2015 – Jun 24, 2015

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

PATCH 1/1 NVMe: Make nvme_meta_noop to supress Sparse warning

Supresses warning emitted by Sparse.

Signed-off-by Jon Derrick <jonathan.derrick at intel.com>

---
Warning is:
drivers/block/nvme-core.c:545:22: warning: symbol 'nvme_meta_noop' was not declared. Should it be static?

 drivers/block/nvme-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/nvme-core.c +1 -1
index a501d3e..7345a5f 100644
@@ -542,7 +542,7 @@ static int nvme_noop_generate(struct blk_integrity_iter *iter)
 	return 0;
 }
 
-struct blk_integrity nvme_meta_noop = {
+static struct blk_integrity nvme_meta_noop = {
 	.name			= "NVME_META_NOOP",
 	.generate_fn		= nvme_noop_generate,
 	.verify_fn		= nvme_noop_verify,
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 NVMe: Make nvme_meta_noop to supress Sparse warning

Quoted 3 lines · Jon Derrick

Supresses warning emitted by Sparse.

Signed-off-by Jon Derrick <jonathan.derrick at intel.com>

Looks good, but the subject line seems be be missing a "static" somewhere :)

Reviewed-by Christoph Hellwig <hch at lst.de>
#2 lore raw

PATCH 1/1 NVMe: Make nvme_meta_noop to supress Sparse warning

Drats! Good catch

-----Original Message-----
From: Linux-nvme [mailto:[email protected]] On Behalf Of Christoph Hellwig
Sent: Wednesday, June 24, 2015 6:20 AM
To: Derrick, Jonathan
Cc: linux-nvme at lists.infradead.org
Subject: Re: [PATCH] NVMe: Make nvme_meta_noop to supress Sparse warning

Quoted 3 lines · Jon Derrick

Supresses warning emitted by Sparse.

Signed-off-by Jon Derrick <jonathan.derrick at intel.com>

Looks good, but the subject line seems be be missing a "static" somewhere :)

Reviewed-by Christoph Hellwig <hch at lst.de>

_______________________________________________
Linux-nvme mailing list
Linux-nvme at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme