From patchwork Thu Jul 23 12:24:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 247058 Delivered-To: patch@linaro.org Received: by 2002:a54:2c11:0:0:0:0:0 with SMTP id g17csp1148640ecp; Thu, 23 Jul 2020 05:26:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzv4rSUWmqV3mJW4CJX+EbbzdYbnUsUHptUbxojdq/Gd5zoQJUSKdrnQiJi02hsNs93cWsq X-Received: by 2002:aa7:c656:: with SMTP id z22mr4069748edr.101.1595507187878; Thu, 23 Jul 2020 05:26:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595507187; cv=none; d=google.com; s=arc-20160816; b=RchjNLovYKvSsZ2IgNvB/rMY7CHXOTHfAFLaXV0CT6nCWFr3HOC9LYKc040uM7hxEF GHqQqlA34fzpTWfZkp8Y6KeGDKta6GwwBLETUfPC+Nt9qTulgL6MOnkY9r3Il3KLMAoP Y7bn4xKgEuCkNhwTd89zTt52iCtkEvvY6RmnOKVsEda+Sk0QKz2YAHDgPi18acA6yQvU DJvBcziLCvH8Lqnczxc4Xze4r4Wz82aO+iEW+x6q/qFbNHusGWegfnyk088+e5yKXP2U Vs1rJr7u68pMmz/A2DqHGTeaJbNT5ahyXKfv2cstiNb+0S/eG3FpV9Pjb2GtdMxh+Uxx I/DA== 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=g7HEL4xrEwuTkMeUXu16IXZ1qnXvn6HqyFPGQLsjThQ=; b=gN6MjgqbkIJyuIDZlQX5p4Lx+6qvS6E4Yr2ttSbruasQVJNM3nFngTdYr1Tn3AlDPc NUgbDyh9Bkwl8unIr9igFUxSvEOyltUzrr8voTOdLUSUrCcB9Jkzsz1EdfiULVbnpMeU FHTq2MQ5ypNsC+NvY5dOUJLyNoZA3f37OmPUk3mtSoZttfRmWA85m905+QHwI6BPMWOh G0ppRWAPzZhy4fwnglIXACxR4+oNOELcTaYvrZzOTXZrK7okVTKxsUkts317APQx9aUE QB/DCSt4ZHA1E2YAGGz9GvbMGFLT6lMq5jVPygEhsdMphBsN1TpJxWQ1+RpG0LatIZEH MLQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NgTx2AQ5; 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 w5si1953465ejb.404.2020.07.23.05.26.27 for ; Thu, 23 Jul 2020 05:26:27 -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=NgTx2AQ5; 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 S1729239AbgGWM01 (ORCPT ); Thu, 23 Jul 2020 08:26:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728992AbgGWMZT (ORCPT ); Thu, 23 Jul 2020 08:25:19 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA1C1C0619E3 for ; Thu, 23 Jul 2020 05:25:18 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id r12so4939087wrj.13 for ; Thu, 23 Jul 2020 05:25:18 -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=g7HEL4xrEwuTkMeUXu16IXZ1qnXvn6HqyFPGQLsjThQ=; b=NgTx2AQ5OQPVWBHc7CmEJc5GGfGEO/5DyHik2uTF6EgETZV6AdtbtCDj0FSiyR51Cn tTyhu3J3XVFcqJss3c0b5hiXkqP5m1YVDeNPujGQynIqxmFBRhI6h8LdSboYukfZS/4O yO3mINgrz51r4097D6OtYhLHPuZgvb0LTUwVhV2LxObdnlvyW5aivwp3UwkGe2+ABYEF 1mBn5mdSXsnfjbrrJwde9b2Kwxb2BhEtuXksHiDJEyJ1/xjjHtjuTOsKe4Q5EVcUqw7q Na8B/5PpPocWEXF2vzj/SYjLgRQaGXekwdU6mU2hYIRu1E4HPiOaVH/jyrKDjbjzTcZO m4Sg== 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=g7HEL4xrEwuTkMeUXu16IXZ1qnXvn6HqyFPGQLsjThQ=; b=rL0U+h7orsJc2qNKYJFajbdJCVkjBKIrH4delLpYI5vsTDMnqLtc6V6mFbaLluTsLw TU3brbK9h9FeSy9+RACAPjOYJiJEFznRLrwHawbPMeaJTqy/gb6Qp/ggXMCx7vIB3/Tv J8Ns69ZxwS2YWSV5XGWWtAbp16SaDkluZERA5zR9DfeazrEMLluF64tSHTcWWUvSI5lp QqN5d5y7AFw8SIrxIhxhH2VOSpU5Am53WYhBp+NubGmSEQimXPgPXq0On8oHwX6BbXN1 RvkQgxPbAcFh/EiYNkpZF/4/9nTYVqo319V33UyfYM8s5LLbUfwlFjg1nqcnu7TGBVj+ NjqA== X-Gm-Message-State: AOAM5331UJWGP3/Hin2zRYhuouAXQ3drSIlScuzCKjuOYFAJvOxacohR Q/GE1atYUjNVPdQF+4YeN4sY7A== X-Received: by 2002:adf:bc54:: with SMTP id a20mr3827338wrh.227.1595507117476; Thu, 23 Jul 2020 05:25:17 -0700 (PDT) Received: from localhost.localdomain ([2.27.167.73]) by smtp.gmail.com with ESMTPSA id j5sm3510651wma.45.2020.07.23.05.25.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 05:25:16 -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 , Anil Gurumurthy , Sudarsana Kalluru Subject: [PATCH 23/40] scsi: bfa: bfa_ioc: Staticify non-external functions Date: Thu, 23 Jul 2020 13:24:29 +0100 Message-Id: <20200723122446.1329773-24-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200723122446.1329773-1-lee.jones@linaro.org> References: <20200723122446.1329773-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 Fixes the following W=1 kernel build warning(s): drivers/scsi/bfa/bfa_ioc.c:5023:1: warning: no previous prototype for ‘bfa_diag_intr’ [-Wmissing-prototypes] 5023 | bfa_diag_intr(void *diagarg, struct bfi_mbmsg_s *msg) | ^~~~~~~~~~~~~ drivers/scsi/bfa/bfa_ioc.c:6966:1: warning: no previous prototype for ‘bfa_flash_sem_get’ [-Wmissing-prototypes] 6966 | bfa_flash_sem_get(void __iomem *bar) | ^~~~~~~~~~~~~~~~~ drivers/scsi/bfa/bfa_ioc.c:6979:1: warning: no previous prototype for ‘bfa_flash_sem_put’ [-Wmissing-prototypes] 6979 | bfa_flash_sem_put(void __iomem *bar) | ^~~~~~~~~~~~~~~~~ Cc: Anil Gurumurthy Cc: Sudarsana Kalluru Signed-off-by: Lee Jones --- drivers/scsi/bfa/bfa_ioc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/bfa/bfa_ioc.c b/drivers/scsi/bfa/bfa_ioc.c index 3ce281a02d5bb..10c12b5a36b84 100644 --- a/drivers/scsi/bfa/bfa_ioc.c +++ b/drivers/scsi/bfa/bfa_ioc.c @@ -5019,7 +5019,7 @@ diag_portbeacon_comp(struct bfa_diag_s *diag) /* * Diag hmbox handler */ -void +static void bfa_diag_intr(void *diagarg, struct bfi_mbmsg_s *msg) { struct bfa_diag_s *diag = diagarg; @@ -6962,7 +6962,7 @@ bfa_raw_sem_get(void __iomem *bar) } -bfa_status_t +static bfa_status_t bfa_flash_sem_get(void __iomem *bar) { u32 n = FLASH_BLOCKING_OP_MAX; @@ -6975,7 +6975,7 @@ bfa_flash_sem_get(void __iomem *bar) return BFA_STATUS_OK; } -void +static void bfa_flash_sem_put(void __iomem *bar) { writel(0, (bar + FLASH_SEM_LOCK_REG));