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: 11680835 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CC92C14E3 for ; Thu, 23 Jul 2020 12:26:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AF75120888 for ; Thu, 23 Jul 2020 12:26:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="NgTx2AQ5" 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-Google-Smtp-Source: ABdhPJyh4nBcbknxwuqgi6BDewjRtpccybnkpPvqru8OaJoltE93qD4sMfXoKyIid7IznS1CwxsnqA== 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(-) 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));