From patchwork Thu Feb 28 14:50:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 159380 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp731326jad; Thu, 28 Feb 2019 06:51:35 -0800 (PST) X-Google-Smtp-Source: AHgI3IYBOlQdEriavGeGJewAw+f88/r1lgm+wha6ZOV3Q3d6pkaAwdsH27x8eRVBUy02E/dDRyz5 X-Received: by 2002:a63:d904:: with SMTP id r4mr8853073pgg.207.1551365495538; Thu, 28 Feb 2019 06:51:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551365495; cv=none; d=google.com; s=arc-20160816; b=gc+B1vid3dUcb6OoWoOpi6aqB7z1scovm0tXtSmw1pm5W0edjbvv2RphWilNQgl2pT aeDASgmnyO6ZpvhQ422MJMJH3e9RLM98g3+48vJrbMJGWnQYMPTwkEbVd7uI9/o/xzbf tVPUNakm7KowY1CVNjuXlkXZQU3jLABmpkcqS0nn7/znRIV+i3ZS1u3puecmd9ub2F3Y UzadSc2j4AxQrL8rYzw476ViNMaS7Z2PTX/bsDSLGlr3r6WTiklcsO1nJ2rMt+Tr6spi twDmb8KZcjb4cQJ3uLSYVCr2Gzd7K97DXuN93fm60Ipqp0u9yxTTIEqkR8RxQVpoOTiS TJew== 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; bh=y0KmmV39eYIRqMwnKFTlUPuCc9xF0HKzyshw6OZ7xCQ=; b=Yj2mcbZZEUPxo/77SaWVgsOB47DBkd9kozcIbqI0Pqa0hYPf0LKtwIIKSunh/dF3cI R6ECEYNH4Aq+lTOD0bmz2UimSAX8FnbHkcSllY1QRYm/KJhlr8Cv7R8sNufMUsddSjFG dnKqO4lQh6WyrQ4BTp1vEGZeqJ/RpdeIktX47dCWbb9tJgLCPOiu05NXdUjgCo5bcA60 gLD8GXHPZd2E6e647kLKg2keRaAEySlxi15RAJE9Dp6mEb4o1T/sARifwUKxYOF/Vc2D cpX0jO8henoeZWMGofqKTAje18Dch3kZrbFYZdcLcrGhnxUABy0ubwyFCydPBWSgSV0W tb2A== 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 t22si16670420pgv.190.2019.02.28.06.51.35; Thu, 28 Feb 2019 06:51:35 -0800 (PST) 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 S1733184AbfB1Ovd (ORCPT + 31 others); Thu, 28 Feb 2019 09:51:33 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:46378 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731785AbfB1Ova (ORCPT ); Thu, 28 Feb 2019 09:51:30 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id B90A1BAA10610D7D1850; Thu, 28 Feb 2019 22:51:25 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.408.0; Thu, 28 Feb 2019 22:51:18 +0800 From: John Garry To: , CC: , , , Xiang Chen , "John Garry" Subject: [PATCH 1/6] scsi: hisi_sas: Change return variable type in phy_up_v3_hw() Date: Thu, 28 Feb 2019 22:50:57 +0800 Message-ID: <1551365462-128193-2-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1551365462-128193-1-git-send-email-john.garry@huawei.com> References: <1551365462-128193-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiang Chen According to the tool fortify, phy_up_v3_hw() returns signed value, while it should return an unsigned value. So change variable "res" from int to irq_return_t. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c index 00738d0673fe..151a102c4cc7 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -1344,7 +1344,8 @@ static void prep_abort_v3_hw(struct hisi_hba *hisi_hba, static irqreturn_t phy_up_v3_hw(int phy_no, struct hisi_hba *hisi_hba) { - int i, res; + int i; + irqreturn_t res; u32 context, port_id, link_rate; struct hisi_sas_phy *phy = &hisi_hba->phy[phy_no]; struct asd_sas_phy *sas_phy = &phy->sas_phy;