From: Peter Georg <peter.georg@xxxxxxxxxxxxxxxxxxxxxxxx> nvme: Add ifdef RHEL_DIFFERENCES Bugzilla: http://bugzilla.redhat.com/2019379 Upstream Status: RHEL only Fixes: 12ab1943fc7af Signed-off-by: Peter Georg <peter.georg@xxxxxxxxxxxxxxxxxxxxxxxx> diff --git a/drivers/nvme/target/fc.c b/drivers/nvme/target/fc.c index blahblah..blahblah 100644 --- a/drivers/nvme/target/fc.c +++ b/drivers/nvme/target/fc.c @@ -1340,8 +1340,6 @@ nvmet_fc_portentry_rebind_tgt(struct nvmet_fc_tgtport *tgtport) spin_unlock_irqrestore(&nvmet_fc_tgtlock, flags); } -static bool driver_warning_issued; - /** * nvme_fc_register_targetport - transport entry point called by an * LLDD to register the existence of a local @@ -1369,10 +1367,13 @@ nvmet_fc_register_targetport(struct nvmet_fc_port_info *pinfo, unsigned long flags; int ret, idx; +#ifdef CONFIG_RHEL_DIFFERENCES + static bool driver_warning_issued = false; if (!driver_warning_issued) { mark_driver_unmaintained("NVMe over FC Target"); driver_warning_issued = true; } +#endif if (!template->xmt_ls_rsp || !template->fcp_op || !template->fcp_abort || -- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1610 _______________________________________________ kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure