From patchwork Tue Jul 21 16:41:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 246922 Delivered-To: patch@linaro.org Received: by 2002:a54:2c11:0:0:0:0:0 with SMTP id g17csp2712315ecp; Tue, 21 Jul 2020 09:43:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/2tCX9vJaFKMxtIx+KcREmyzvGKpDhAkXN9ubT/41Dx8R/Ezj3bm+JJO6dLdC5/NT/UvE X-Received: by 2002:a17:906:284e:: with SMTP id s14mr26466247ejc.498.1595349831770; Tue, 21 Jul 2020 09:43:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595349831; cv=none; d=google.com; s=arc-20160816; b=U+iLc3MbNnxo+7a1Egspcoa6P5xpzZ6zkUHFr+1DVH9Vb0EeOXjlT31Wy3WHM5VZbi k8Tj2N9Ik3nK9j7xNht0Y3oOTZ/2WyOcUsFWR0+9cuPJ3fQfKj3q6O2QgB2H+6cw/hfD 8wjLuvNcQnc55Z55F6EJjVY7ZD5dbOmNFkcmYzIIoimV/PBU2ilbw4HOh8r9jNnzFRji fhi19DRyo8fZ/oNztJ1EW/32BoOwEqwtdTJ3Ou+Fv5paZROHaw1fcjW9egFYnBX+1w0u B7BG4A1FYkosOUuBfulHBrD8ZCNo2+zs8/cGbUcLeaBj5DVyCTeujahaGp2fAnIoDgMd 5AWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pFkpQlvxyH9m9yB35YYUzSgG662tMobXEVb8ZoPNfoU=; b=DaM4Bfy6WrD/j1GC25oSmPsV9DOtNPGac1RDDm4xoUL9PS3Kh2DozHVDGRXjHJ7IrJ 10stafQBPybE4bc69NyMnSVDOeQGiaOta9FVAYRQ8KP5ELbSIUOPUHj9s24R/I8fRnos O6qKl0MVnwtNzdeZ9mz2AxE58lLFD7zZM8Rl/eDuqgLJxKoPsjC5Xkimq41bsA2U5V3R RxPwSTbLE8pIx3AzWqVn0O2VISpnVjfc602Qfxvf8TMSj3fY0F4guFj1Ll1FF52Uv+2m dHRlYFJwCGUCeffAcA/LLujaYAbwwxTsIBbqmoJTaRviyN0mZBy7HgBSZABwxEoaY1na Xs3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sJc+wnQu; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oz40si12886476ejb.432.2020.07.21.09.43.51 for ; Tue, 21 Jul 2020 09:43:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sJc+wnQu; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730711AbgGUQmg (ORCPT ); Tue, 21 Jul 2020 12:42:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730259AbgGUQmg (ORCPT ); Tue, 21 Jul 2020 12:42:36 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 841FFC0619DF for ; Tue, 21 Jul 2020 09:42:34 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id 22so3480847wmg.1 for ; Tue, 21 Jul 2020 09:42:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pFkpQlvxyH9m9yB35YYUzSgG662tMobXEVb8ZoPNfoU=; b=sJc+wnQurbWJb00o0fdA4+jdNsgo8gZNOC8c4HTgdRTiy4vdVSQJL1Zc7GFRhwmxPo Z57x4K+9dLUTah6uPq0WMNK4CYfBedF87wqf26/ku4UV6Bu3rs/wJhlPPktNYIfpFRh4 HYO79VT6F0v8WlzOlGYwCkSz73lERBDR2m5kY79eoD+tMhhnHwg4C8/aupr/nAIDWuzN gEK4UvwwhAHA3GryANfPyATKeqgTdnkVzNdybiyjkVntEHGnIp0Wd2G470Xbs5dff0rP n0PLiCr4ZGyp15GNIWxSkXA+EnFPuMzfdOQkq7e8a/J3JEifqXofDxe+3ywsnIjTP7r1 Xlpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pFkpQlvxyH9m9yB35YYUzSgG662tMobXEVb8ZoPNfoU=; b=nhCraYbbb5FENJVWKZ8pwgUYGMzlEyajFh38pORXDbtsqb7YYvVr9p0pSgnU4uKLgh 5aMwhakUNmja/hqp/v4K5u099VxuCMebtyClw4/6zKFkdaOhm/FzVVQjKhF9y24jfkas qIaH43NqY4XMrILqYajxBOPbWHoa0N9qbYMpu9ta7HTfPrrc5kN+24vGi42hsVDwH01T w/SHrH3SJACvY51UEObgC73u8AjzIoVC71PrfBGROsWZNZqoxmCe2aZMZvmKz7gWX1lX tatPOwo/ML+Wa3pg3fVb+4PUEYsC8zxpSL5kDrWKBYyECgAA7awQjvgKSAHIb96eLMGJ BgKQ== X-Gm-Message-State: AOAM5305o0gk/bjhIA+DSxszHhvusjNKNsHnriDoM21uTT7QAWm/Y0qR r5IgURlk4TC0A321GcLwl3eiDQ== X-Received: by 2002:a7b:c8c8:: with SMTP id f8mr5019468wml.142.1595349753304; Tue, 21 Jul 2020 09:42:33 -0700 (PDT) Received: from localhost.localdomain ([2.27.167.94]) by smtp.gmail.com with ESMTPSA id m4sm3933524wmi.48.2020.07.21.09.42.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2020 09:42:32 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Lee Jones , Jack Wang Subject: [PATCH 25/40] scsi: pm8001: pm80xx_hwi: Staticify 'pm80xx_pci_mem_copy' and 'mpi_set_phy_profile_req' Date: Tue, 21 Jul 2020 17:41:33 +0100 Message-Id: <20200721164148.2617584-26-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200721164148.2617584-1-lee.jones@linaro.org> References: <20200721164148.2617584-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org These are not invoked externally. Fixes the following W=1 kernel build warning(s): drivers/scsi/pm8001/pm80xx_hwi.c:69:6: warning: no previous prototype for ‘pm80xx_pci_mem_copy’ [-Wmissing-prototypes] 69 | void pm80xx_pci_mem_copy(struct pm8001_hba_info *pm8001_ha, u32 soffset, | ^~~~~~~~~~~~~~~~~~~ drivers/scsi/pm8001/pm80xx_hwi.c:5016:6: warning: no previous prototype for ‘mpi_set_phy_profile_req’ [-Wmissing-prototypes] 5016 | void mpi_set_phy_profile_req(struct pm8001_hba_info *pm8001_ha, | ^~~~~~~~~~~~~~~~~~~~~~~ Cc: Jack Wang Signed-off-by: Lee Jones --- drivers/scsi/pm8001/pm80xx_hwi.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/pm8001/pm80xx_hwi.c b/drivers/scsi/pm8001/pm80xx_hwi.c index abcbd47162d64..b42f41d1ed49a 100644 --- a/drivers/scsi/pm8001/pm80xx_hwi.c +++ b/drivers/scsi/pm8001/pm80xx_hwi.c @@ -66,7 +66,7 @@ int pm80xx_bar4_shift(struct pm8001_hba_info *pm8001_ha, u32 shift_value) return 0; } -void pm80xx_pci_mem_copy(struct pm8001_hba_info *pm8001_ha, u32 soffset, +static void pm80xx_pci_mem_copy(struct pm8001_hba_info *pm8001_ha, u32 soffset, const void *destination, u32 dw_count, u32 bus_base_number) { @@ -5013,8 +5013,9 @@ pm80xx_chip_isr(struct pm8001_hba_info *pm8001_ha, u8 vec) return IRQ_HANDLED; } -void mpi_set_phy_profile_req(struct pm8001_hba_info *pm8001_ha, - u32 operation, u32 phyid, u32 length, u32 *buf) +static void mpi_set_phy_profile_req(struct pm8001_hba_info *pm8001_ha, + u32 operation, u32 phyid, + u32 length, u32 *buf) { u32 tag , i, j = 0; int rc;