Message ID | 20200723122446.1329773-6-lee.jones@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a54:2c11:0:0:0:0:0 with SMTP id g17csp1149452ecp; Thu, 23 Jul 2020 05:27:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhIK2yG30w8g+eNGFj0rAotcSB+l3HeOkoYiUOH12F2WgnzvN9GiBtLbQHjDmxTF1A6UDl X-Received: by 2002:a17:907:100a:: with SMTP id ox10mr4014447ejb.351.1595507260262; Thu, 23 Jul 2020 05:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595507260; cv=none; d=google.com; s=arc-20160816; b=Jogfua+ih5+Ueof0h2ibXEMi+Emkv4GABrKVMssTcux6Ek2IO9dh7d4DSV6FL8mqeP DL5pxo50hDcwjMftt3qy0j1YSq3PEYHsAmSvqImD8pvQHdakST58t1+wbIkFn78ghjzS NDBwiR181+upMF9pAQRqpONRg3B0pSAO5o+405lbr9i4Kf9Sd6mypOAc6djogeErvP4h 34pr5BXww/2VfKUyGbJkGa3BuTP/OBJ5rP1+m8cjYQJUqf6AE+6FqVVUUib0RO9SZ37l Catd1K6BdppGYUxG4MrZsjgTGBPCdS4vI12Y2d1IjLZSWw8YkzGFOpdTzzfhWddxA/+2 KZzQ== 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=mCXO0Gr/A00l7Lne4sBK8Frz9I2gxXn2t7va3NQnE+k=; b=teNL4d4BDuurZbG+PJ0zhpni/VP5oreztAKHXs3Sh5FJdcYVC3GZQj37xhBuH3YRlx 7L9YsIoOL7YUi1V0zZcI1rVZ7ECTjau4Jf15kZuyx2UHqrBabaok7TVyBsrhz2E0KFA2 tZ8c3ch9biZgSOKFyU9eaW/k9UwnKPF4pO4psCw4+lBWOX+S5VOC8cEP7I+lYi9rj6t3 5HiILGGvPGJoJpWhd9HF1pWsUoTXxajbMhA9aaMF0vlPmkNq5XJtimPprrxKYnXqbjs1 5zwVRco+oowH2I+WZQeCRX82owyyp93rgDclAx3bpwpnPmXcoXHtyuacslyHRVGBQee1 KrZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VLzuVAzw; 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: <linux-scsi-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a24si1927245ejg.331.2020.07.23.05.27.40 for <patch@linaro.org>; Thu, 23 Jul 2020 05:27:40 -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=VLzuVAzw; 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 S1728858AbgGWMY6 (ORCPT <rfc822;patch@linaro.org>); Thu, 23 Jul 2020 08:24:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728846AbgGWMY5 (ORCPT <rfc822; linux-scsi@vger.kernel.org>); Thu, 23 Jul 2020 08:24:57 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DB40C0619DC for <linux-scsi@vger.kernel.org>; Thu, 23 Jul 2020 05:24:57 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id f18so4996085wrs.0 for <linux-scsi@vger.kernel.org>; Thu, 23 Jul 2020 05:24:57 -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=mCXO0Gr/A00l7Lne4sBK8Frz9I2gxXn2t7va3NQnE+k=; b=VLzuVAzwLVM/dZrwghui32Cthrp/jLIjGRFYoekwj6rOfYdWN+Ca8euH5j0gmIclVA DPGAmw1kGbUVZEsPzHiJS4mVA4nIS/w0UhXhvtODtvdzRx0u3R/sEMZwyCzDADT/E9iu vLDxEbeoH+2JdqhS/3o/A9XdzqzYaakIGrL8NYVb3/bFEM+CIqVptPUaom3/SoHEeGNy sLA228efpCsVu2LU5uwYHYJjtRMQQlQyjtUkunjK29dLPWUIqm6go4LnmxMhmQcTNcuN K+Bn4hm1c0VKWz+h46vh5QR8aI/QuPomXCz/us8WLkqhjS4TOlcTzxWt1lj0K1kR4iqs V2tA== 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=mCXO0Gr/A00l7Lne4sBK8Frz9I2gxXn2t7va3NQnE+k=; b=l9/71BVbeOgCageOYcPCLZmyVSfaeHshdhgSQAVQWwS/Lz/T68/o6nsRZ38NPoYtQ8 WzKvaIHMLE8YA44xocAgSXaHa6+PwVccGdxptm6TDF8y6CF1Ruz32UwUpDXxxCaH13UC /aoxmkY/eiSZs9iH+q6bUAe9X+p/Z5kuTCwYdpHnzVzLpnEFQ+4mXizsrxKIMON0YkuR xXVGkGhJYt9+SaBDBEf0kMLBVbDoTeRvSwHuFQ9i+6PZz6l3O5aIBaKfAc6MVcr50tfM MVlS+PvjQGvLSU1UlDRv8j6S7eT5BgG5gXcIquLTMIenWoGjPph7YYsWccWWJy2JtHPD VQZw== X-Gm-Message-State: AOAM5322ngDdQ7nSMkoOw8zNcWWPei1OJxHLepFDaoFDYF4K/W2F+9Sd sFs9kH2bC2xiG4cHEm0s3JQSbA== X-Received: by 2002:adf:cf0c:: with SMTP id o12mr3829930wrj.265.1595507095851; Thu, 23 Jul 2020 05:24:55 -0700 (PDT) Received: from localhost.localdomain ([2.27.167.73]) by smtp.gmail.com with ESMTPSA id j5sm3510651wma.45.2020.07.23.05.24.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 05:24:55 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> To: jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Lee Jones <lee.jones@linaro.org>, Alim Akhtar <alim.akhtar@samsung.com>, Avri Altman <avri.altman@wdc.com>, Kukjin Kim <kgene@kernel.org>, Krzysztof Kozlowski <krzk@kernel.org>, Kiwoong Kim <kwmad.kim@samsung.com>, linux-samsung-soc@vger.kernel.org Subject: [PATCH 05/40] scsi: ufs: ufs-exynos: Make stubs 'static inline' Date: Thu, 23 Jul 2020 13:24:11 +0100 Message-Id: <20200723122446.1329773-6-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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org |
Series |
Set 5: Penultimate set of SCSI related W=1 warnings
|
expand
|
diff --git a/drivers/scsi/ufs/ufs-exynos.h b/drivers/scsi/ufs/ufs-exynos.h index d86d0a0f74780..0908283a76936 100644 --- a/drivers/scsi/ufs/ufs-exynos.h +++ b/drivers/scsi/ufs/ufs-exynos.h @@ -299,22 +299,22 @@ void exynos_ufs_cmd_log_end(struct ufs_exynos_handle *handle, int exynos_ufs_init_dbg(struct ufs_exynos_handle *handle, struct device *dev); void exynos_ufs_dump_info(struct ufs_exynos_handle *handle, struct device *dev); #else -void exynos_ufs_cmd_log_start(struct ufs_exynos_handle *handle, - struct ufs_hba *hba, int tag) +static inline void exynos_ufs_cmd_log_start(struct ufs_exynos_handle *handle, + struct ufs_hba *hba, int tag) { } -void exynos_ufs_cmd_log_end(struct ufs_exynos_handle *handle, - struct ufs_hba *hba, int tag) +static inline void exynos_ufs_cmd_log_end(struct ufs_exynos_handle *handle, + struct ufs_hba *hba, int tag) { } -int exynos_ufs_init_dbg(struct ufs_exynos_handle *handle, struct device *dev) +static inline int exynos_ufs_init_dbg(struct ufs_exynos_handle *handle, struct device *dev) { return 0; } -void exynos_ufs_dump_info(struct ufs_exynos_handle *handle, struct device *dev) +static inline void exynos_ufs_dump_info(struct ufs_exynos_handle *handle, struct device *dev) { }
Else the compiler complains of missing prototypes. Fixes the following W=1 kernel build warning(s): In file included from drivers/scsi/ufs/ufs-exynos.c:23: drivers/scsi/ufs/ufs-exynos.h:302:6: warning: no previous prototype for ‘exynos_ufs_cmd_log_start’ [-Wmissing-prototypes] 302 | void exynos_ufs_cmd_log_start(struct ufs_exynos_handle *handle, | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/ufs/ufs-exynos.h:307:6: warning: no previous prototype for ‘exynos_ufs_cmd_log_end’ [-Wmissing-prototypes] 307 | void exynos_ufs_cmd_log_end(struct ufs_exynos_handle *handle, | ^~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/ufs/ufs-exynos.h:312:5: warning: no previous prototype for ‘exynos_ufs_init_dbg’ [-Wmissing-prototypes] 312 | int exynos_ufs_init_dbg(struct ufs_exynos_handle *handle, struct device *dev) | ^~~~~~~~~~~~~~~~~~~ drivers/scsi/ufs/ufs-exynos.h:317:6: warning: no previous prototype for ‘exynos_ufs_dump_info’ [-Wmissing-prototypes] 317 | void exynos_ufs_dump_info(struct ufs_exynos_handle *handle, struct device *dev) | ^~~~~~~~~~~~~~~~~~~~ Cc: Alim Akhtar <alim.akhtar@samsung.com> Cc: Avri Altman <avri.altman@wdc.com> Cc: Kukjin Kim <kgene@kernel.org> Cc: Krzysztof Kozlowski <krzk@kernel.org> Cc: Kiwoong Kim <kwmad.kim@samsung.com> Cc: linux-samsung-soc@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/scsi/ufs/ufs-exynos.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) -- 2.25.1