From: Kevin Hao <kexin....@windriver.com>

After the commit c4f135d643823a86 ("workqueue: Wrap flush_workqueue()
using a macro"), a compile warning would be emitted for invocation of
flush_scheduled_work() in order to avoid the usage of this function
anymore. It really makes no sense to flush system_wq in octeontx-83xx,
just flushing the sso->mbox_work should be enough.

Signed-off-by: Kevin Hao <kexin....@windriver.com>
---
 drivers/net/ethernet/cavium/octeontx-83xx/ssopf_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/cavium/octeontx-83xx/ssopf_main.c 
b/drivers/net/ethernet/cavium/octeontx-83xx/ssopf_main.c
index 6b8ce1fd7aa1..3d71d6bbc1e5 100644
--- a/drivers/net/ethernet/cavium/octeontx-83xx/ssopf_main.c
+++ b/drivers/net/ethernet/cavium/octeontx-83xx/ssopf_main.c
@@ -1374,7 +1374,7 @@ static void sso_remove(struct pci_dev *pdev)
        if (!sso)
                return;
 
-       flush_scheduled_work();
+       flush_work(&sso->mbox_work);
        /* Make sure the SSO is disabled */
        sso_reg = sso_reg_read(sso, SSO_PF_AW_CFG);
        sso_reg &= (~1ULL);

-- 
2.45.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14092): 
https://lists.yoctoproject.org/g/linux-yocto/message/14092
Mute This Topic: https://lists.yoctoproject.org/mt/106829796/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to