From patchwork Wed Jul 1 10:23:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 192128 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp350866ilg; Wed, 1 Jul 2020 03:23:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzsLs0y6KcGRJDWDWNeg2NyqCJd1H60htKyIqVWsI97ljWIi3DRsViKZb2nlfLHV9wUuaA X-Received: by 2002:a17:906:a0c8:: with SMTP id bh8mr22496825ejb.190.1593599010303; Wed, 01 Jul 2020 03:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593599010; cv=none; d=google.com; s=arc-20160816; b=fWHB7K73O38lE8qI2cB+Up6gsOEMlQAPfxBLEufoS4Dg3Vm5w3yYoG4tU7sqGjQ+0K UCWniOVn0ISeLF2JdxYgj+ZrJnNh1KetBRd4VRSRjSCsIdEoaXaoKkMp6bGeV3bFSCM0 EBmXPfMdduCckXACYYD9h5ZaIsRYxIV+vMEzhoCca6uKdN516q1kLLxWIGNCsN0GRLFo PVJDx1seKkS6WWZ4K12pE9+Pd1DIKgsCHcRR582dt6J8tbig9po2e4yEnYnp2wXLq64f JW5tRPWKFEAzcfbN2PM1eBmVckh4CrxRYXvU9HnTRurXHvRMBgTQzHyGsM3JTTDBHwq0 35OA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=C+0L7y/Q5A/sbDA9AxIYlmTu4gtBQkLRySgsaJ7BoAY=; b=y3o9xUjq33nPAGHRxFCK4RMSlmQ+UV2pltgVrORigGOeCiyd3Hftd0+ldZ2oSEqT7R QBn9QkovpDvVwQBR3wP3a+feS+onW/83KMuHnMUZExu/XjaNSW+Ef6Gf8hddSuMfges6 MVA8VqbTVxRCafeUpMPDY1YhweZKoBbD1wH66DhhULFnoJS+FNjVHBnZ+Z4RtbktT1Em IYGhFMs4MgPjQFXtpSyuL2CziyOJ07oQpGL3mw9bIKwIuHTeaGJp/1/tLc5yCLAf6K+x MvUm5r+Q1ZCPbFd5YR2wM/4rNnORCQ2MyNGB+62PDW8YPilYwS0Gkk0ihOpQr2io+IAt ZaQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kQ7dkkUR; spf=pass (google.com: domain of linux-mmc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-mmc-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 b30si3721516edj.204.2020.07.01.03.23.30; Wed, 01 Jul 2020 03:23:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-mmc-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=kQ7dkkUR; spf=pass (google.com: domain of linux-mmc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-mmc-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 S1729771AbgGAKX3 (ORCPT + 5 others); Wed, 1 Jul 2020 06:23:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729671AbgGAKX0 (ORCPT ); Wed, 1 Jul 2020 06:23:26 -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 0976DC061755 for ; Wed, 1 Jul 2020 03:23:26 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id b6so23196387wrs.11 for ; Wed, 01 Jul 2020 03:23:25 -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:mime-version :content-transfer-encoding; bh=C+0L7y/Q5A/sbDA9AxIYlmTu4gtBQkLRySgsaJ7BoAY=; b=kQ7dkkURh4AtE4qt3ISqlQdkih3RMk1qYxt16jBrQnP+M4yANrT9fjqxEUUvPKBZCU +ibk0nVgsTJCv4KKuqtFXLS8ZZtsA/C8msTHGAFRRTlzdhnMWf9JNjyvkaDSSsfvjqHZ rS/oIaEhI6i26kgyrdznxuGzcahq74INsEQy0Ym87n7DF1mrbXcKTeUdBwDN0tjsM1jY i9LOzkwVt4ut2AxZkywFAPtfZ7WpDqZd89Kq81kqnQErx087oc0kNMyRM2CA8ZtKAO+U 2U+nlItyqhrv6GNd6bzObPsvbtxMF6HRjaJowz3v6BcX7pfLCHcxvOFceHEtpydsTSsV XXcA== 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:mime-version :content-transfer-encoding; bh=C+0L7y/Q5A/sbDA9AxIYlmTu4gtBQkLRySgsaJ7BoAY=; b=HH/KBvcn0ycS/0nOnH76nydmsn1tTs+DrBeqgeulD0TmCSepoNnP0Ufi/Vl+4HJlqZ +d7DlvGocWELkppRrUZm7enwSNQc2njNQy8rbT+b+4PDdubhmit+mCXxg5cScsNTGmZr kJQ+eV/Aa4mTM0XVDhEdZkQyEQj4Mfg1jVmhAkTIfTrCVxsTNlpbhI6OBNYvsILncNMp Si0q06jt4MzwSR0qrSbd5FwCTUbRcXJX6D6fL8+iqI9tawJsVPpOWM5968CQnZ8ntJ7t BHcBlGI1PSbJ0EXdSWbTDb+tUowVHLe+Pdkh8Kzqn0F2uPchagQhT4n3W5AHTb1P+h5j NXIA== X-Gm-Message-State: AOAM532HcxAqNvuMZ+logIMbpf/X+OLSmbJu/LcOfCdNhx60HnL3pFFz L+lGXyUiFLYQ1/TpGDJrxOB/fw== X-Received: by 2002:adf:fe07:: with SMTP id n7mr25362925wrr.240.1593599004674; Wed, 01 Jul 2020 03:23:24 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.144]) by smtp.gmail.com with ESMTPSA id d10sm6994341wrx.66.2020.07.01.03.23.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 03:23:24 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ulf Hansson , linux-mmc@vger.kernel.org, Tony Lindgren , linux-omap@vger.kernel.org Subject: [PATCH 1/1] arch: arm: mach-omap2: mmc: Move omap_mmc_notify_cover_event() prototype Date: Wed, 1 Jul 2020 11:23:17 +0100 Message-Id: <20200701102317.235032-1-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org When building the kernel with W=1 the build system complains of: drivers/mmc/host/omap.c:854:6: warning: no previous prototype for ‘omap_mmc_notify_cover_event’ [-Wmissing-prototypes] 854 | void omap_mmc_notify_cover_event(struct device *dev, int num, int is_closed) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ If we move the prototype into a shared headerfile the build system will be satisfied. Rather than create a whole new headerfile just for this purpose, it makes sense to use the already existing mmc-omap.h. Cc: Ulf Hansson Cc: linux-mmc@vger.kernel.org Cc: Tony Lindgren Cc: linux-omap@vger.kernel.org Signed-off-by: Lee Jones --- arch/arm/mach-omap2/mmc.h | 4 ---- include/linux/platform_data/mmc-omap.h | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/arch/arm/mach-omap2/mmc.h b/arch/arm/mach-omap2/mmc.h index 7f4e053c34344..b5533e93cb632 100644 --- a/arch/arm/mach-omap2/mmc.h +++ b/arch/arm/mach-omap2/mmc.h @@ -16,7 +16,3 @@ static inline int omap_msdi_reset(struct omap_hwmod *oh) return 0; } #endif - -/* called from board-specific card detection service routine */ -extern void omap_mmc_notify_cover_event(struct device *dev, int slot, - int is_closed); diff --git a/include/linux/platform_data/mmc-omap.h b/include/linux/platform_data/mmc-omap.h index 9acf0e87aa9be..f0b8947e6b07d 100644 --- a/include/linux/platform_data/mmc-omap.h +++ b/include/linux/platform_data/mmc-omap.h @@ -116,3 +116,6 @@ struct omap_mmc_platform_data { } slots[OMAP_MMC_MAX_SLOTS]; }; + +extern void omap_mmc_notify_cover_event(struct device *dev, int slot, + int is_closed);