NVMe: Make nvme_meta_noop to supress Sparse warning
Subsystems (2)
PATCH 1/1 NVMe: Make nvme_meta_noop to supress Sparse warning
Supresses warning emitted by Sparse.
---
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
@@ -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
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 :)
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 :)
_______________________________________________
Linux-nvme mailing list
Linux-nvme at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme