Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp810617imm; Fri, 1 Jun 2018 09:56:14 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJaBqz2x7riTIxhfU9IIB8ZH4LwFe3f94i2R1/kABbvSTC6cHck7XVgp2G32XZ1wOaHxvA+ X-Received: by 2002:a62:4653:: with SMTP id t80-v6mr6677501pfa.58.1527872174620; Fri, 01 Jun 2018 09:56:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527872174; cv=none; d=google.com; s=arc-20160816; b=Tt38M/N2XuKjV0+qpGLjRf3QfkG6jZXlM58HvZxCyjha07aqS5nIgsLHctBxZSUbFy OXNW4F8dBII9u/Jl8i7klL+H9IPkp+keFN8W7kQN62Qd+4RYl0PSJ5hM0yeDM0guLnvu dNtrwdHYXpA5nGFT6QnljB3sn1AqNQ2PNk6YwsahgNGwBD3N9T6JmVimwX/yYdPC2qFh E+23gy5okOGvHIBAye+DVk751LL5dMuIU3n0qpH5OrCS5URq22mAvr5h+pUV5S4AbbIH g6QnJnbyj/YuhkhHcf6uDyJb1i7S7oRmGb3i0P19LIJ0EKaXElcYh9CGLvU/d6uC6lNe UWyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=kXxMlxEmtoQJcqQI54hA2GaRg9/vi6fJcYWAkrVKAN0=; b=DEv50957+U63ilrcmFu12UfxhY3C/67D1322N3iOt/6Ot+JL0flySUbgrAsR8iH0BV 8lVOwMwhwVXGVShYwUU/v9Z97Ozvgi4lN0STtE6WPFWTA6Nx8SJiewSaegQWTIlw6+8s UfLma1UfGm9CgKxYu9X4b9iCtZSC2oa+vT7OmBnu1KsBLGaId/Etd+h3/JHtpcBJ4Y5G gR1y/KC2N87FpieES6XcC61Z6cHpOd6IIR7RPCE/imJFvzU6CWbTgs+UHdh2/yyg3ng5 k9LDevGHuvvrXJauvEFz1QA48+l5s8EuS27/Ehs514bv+7NWK4fL7qnFy34v5Jwdmb9c 7+Ng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 89-v6si41086017plb.154.2018.06.01.09.56.00; Fri, 01 Jun 2018 09:56:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753384AbeFAQyO (ORCPT + 99 others); Fri, 1 Jun 2018 12:54:14 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:8682 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753307AbeFAQyL (ORCPT ); Fri, 1 Jun 2018 12:54:11 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 75C0B104C2503; Sat, 2 Jun 2018 00:53:56 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.202.227.234) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.382.0; Sat, 2 Jun 2018 00:53:49 +0800 From: Salil Mehta To: CC: , , , , , , , Yunsheng Lin Subject: [PATCH net-next 08/11] net: hns3: Add missing break in misc_irq_handle Date: Fri, 1 Jun 2018 17:52:08 +0100 Message-ID: <20180601165211.46372-9-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20180601165211.46372-1-salil.mehta@huawei.com> References: <20180601165211.46372-1-salil.mehta@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.202.227.234] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yunsheng Lin There is a break missing in the switch/case handling in hclge_misc_irq_handle, which causes the log to output uncorrectly. This patch adds the missing break, and change the dev_dbg to dev_warn in order to better catch the error. Fixes: c1a81619d73a ("net: hns3: Add mailbox interrupt handling to PF driver") Signed-off-by: Yunsheng Lin Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index 58fef5e..19e5689 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -2580,10 +2580,10 @@ static irqreturn_t hclge_misc_irq_handle(int irq, void *data) * mbx messages reported by this interrupt. */ hclge_mbx_task_schedule(hdev); - + break; default: - dev_dbg(&hdev->pdev->dev, - "received unknown or unhandled event of vector0\n"); + dev_warn(&hdev->pdev->dev, + "received unknown or unhandled event of vector0\n"); break; } -- 2.7.4