All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvme: fix build error: nvme_mpath_update stub without static
@ 2022-03-23 23:43 Anton Eidelman
  2022-03-24  0:30 ` [PATCH v2 0/2] Fix issues with nvme_mpath_update Anton Eidelman
  0 siblings, 1 reply; 9+ messages in thread
From: Anton Eidelman @ 2022-03-23 23:43 UTC (permalink / raw)
  To: linux-nvme, hch, kbusch, sagi, axboe; +Cc: Anton Eidelman, kernel test robot

Fix multiple definition of nvme_mpath_update() on
builds with CONFIG_NVME_MULTIPATH disabled:
the stub function is missing "static inline".

Fixes: d50c992edf10 ("nvme-multipath: fix hang when disk goes live over reconnect")

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Anton Eidelman <anton@lightbitslabs.com>
---
 drivers/nvme/host/nvme.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h
index 76f7a5f37379..8cf90c9ed667 100644
--- a/drivers/nvme/host/nvme.h
+++ b/drivers/nvme/host/nvme.h
@@ -853,7 +853,7 @@ static inline int nvme_mpath_init_identify(struct nvme_ctrl *ctrl,
 "Please enable CONFIG_NVME_MULTIPATH for full support of multi-port devices.\n");
 	return 0;
 }
-void nvme_mpath_update(struct nvme_ctrl *ctrl)
+static inline void nvme_mpath_update(struct nvme_ctrl *ctrl)
 {
 }
 static inline void nvme_mpath_uninit(struct nvme_ctrl *ctrl)
-- 
2.25.1



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

end of thread, other threads:[~2022-03-24  6:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-23 23:43 [PATCH] nvme: fix build error: nvme_mpath_update stub without static Anton Eidelman
2022-03-24  0:30 ` [PATCH v2 0/2] Fix issues with nvme_mpath_update Anton Eidelman
2022-03-24  0:30   ` [PATCH v2 1/2] nvme: fix build error: nvme_mpath_update stub without static Anton Eidelman
2022-03-24  0:30   ` [PATCH v2 2/2] nvme/mpath: fix crash in nvme_mpath_update for non-ana ctrl Anton Eidelman
2022-03-24  0:38     ` [PATCH v3 0/2] Fix issues with nvme_mpath_update Anton Eidelman
2022-03-24  0:38       ` [PATCH v3 1/2] nvme: fix build error: nvme_mpath_update stub without static Anton Eidelman
2022-03-24  6:03         ` Christoph Hellwig
2022-03-24  0:39       ` [PATCH v3 2/2] nvme/mpath: fix crash in nvme_mpath_update for non-ana ctrl Anton Eidelman
2022-03-24  6:04         ` Christoph Hellwig

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.