Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2112557ybz; Thu, 23 Apr 2020 11:48:50 -0700 (PDT) X-Google-Smtp-Source: APiQypIxNdDtq6pcRAzn5mVpiEYlKQtAOv7Xhj1N+zp9VEG4mIhcCmnYx02C0Ioj2FwEPVT0upoP X-Received: by 2002:aa7:d606:: with SMTP id c6mr4128017edr.107.1587667730393; Thu, 23 Apr 2020 11:48:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587667730; cv=none; d=google.com; s=arc-20160816; b=NMiiu2mxM5fzjUBBLLiQO+/VIS5E1CbE4eLUbwnp86GcELBxbWsAtx/5+2s+2JwSud bRqhd73E5mwjeENBcxHe4CRstSxmeiJ7H8f60HR/7J7d1aMvO2wP1UWIFNJV0eoLT1G+ loy6viehF+ApucEwCADp6ADYQV+xQerISvFrMHGuBLSFwzwKT5n50RCBsZPLKp2LEab9 ZOiVnvnhSrHATXZ81+DcSoSy3oZ4+LrJkZE3X3INEZqFHNW0qQsyxfMXG8t1WqEH2FYk l2P3kyZiyRbPLruqnGNNlyi1//YszOFrQeHLxvfqHskEiOy10719S3/NK4506kvr8PqS N9YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=jyUQ7T8MwRaHdAPJI7abXp96xTwq2Ak4XCoyE0/mFoQ=; b=klf5oE6wMQI22fFJJfv0WVnJf7yCsW6Dednh5nf7/sg8aXxd3tzHn9ER9oKMtVEyIG 2gofXNitqSjbcZUzODB6tJjzB/ULL0+BQweSgWbLFEw2uMkTnHOBlZbGFHcMNyuEiYd3 ZEokuptqqDc3xATcuhO6jiFQhklFqzz7Karw3r6/MUSGwloR4nQHdQDstV/TPZLHhm+b c/3KHeebOIpOeQl7uW1Ejg/Tp2EhcA+ZWDqiUqmvYHFYVCW0QfuUeVny62gHDwrGnJPk c1hQPSGiuP8+hAXJYtgS4ifAN3OQpHsgTKlbF+XwJNuFwcr8H87Bid3DUiToIfypIZ9W aT/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ChWtq2qC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 h4si1629372edz.258.2020.04.23.11.48.26; Thu, 23 Apr 2020 11:48:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=ChWtq2qC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1726765AbgDWMWu (ORCPT + 99 others); Thu, 23 Apr 2020 08:22:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726077AbgDWMWu (ORCPT ); Thu, 23 Apr 2020 08:22:50 -0400 Received: from mail-ua1-x943.google.com (mail-ua1-x943.google.com [IPv6:2607:f8b0:4864:20::943]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48E66C08E934 for ; Thu, 23 Apr 2020 05:22:50 -0700 (PDT) Received: by mail-ua1-x943.google.com with SMTP id g10so5434877uae.5 for ; Thu, 23 Apr 2020 05:22:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jyUQ7T8MwRaHdAPJI7abXp96xTwq2Ak4XCoyE0/mFoQ=; b=ChWtq2qCG6vmtUnCPeAh/FqZWblKxfoNudH6cu384x+CsD7qz1RejBLCFeNJZdALHm WLNytixc2qCta9LmMZR5Dkq+HF2jc6Ekb/Knpdm6GwiydKs1DezizCTb/+E+u7pnGZjR ER81O0Jdx8+YTfl4m5cFYJB7hNhs60t7FBuAmXPk1DJVNSqMqmU13nHT0AKfoBf2THdl s1fzInLdp9aZPAzN7pG/X0AM1CIelYrrpHBO4oOAtgxpXJQsvZ5RWfvgWx2YeUn1BeA2 0696F74qbe3DA0Ux+KfFTFFGabHUo9u39htTbgcRcbq8NsSNaTzLJ4ThO3RA29otxbdG Pj1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jyUQ7T8MwRaHdAPJI7abXp96xTwq2Ak4XCoyE0/mFoQ=; b=P4T6+ilXBD5cpBbecy4mMcS4xkAhCUC3ge4O3K0zw6W/GeTBoaZ4IDsT6E8aawW8K0 uFf1ADMNSFrsAyqw9Xo72dOp9f2at/Dzkzu+FBeGczifFnt8HFevuCwmK8PsRDRHTDla TEGV4WOGwS+/Hg+QvlMR5FA/RdlzV7oBzGlYULmzNjzhjmGHnGsunrogfnKkCrbEbkCw Q1ZpsHTs2RMZm0TVuf8BkYsUE4mXfPKlW+/nduuoTF6NgdrQo6cVhYPr/k/t2MkKp0on YNh5m6t3ak0xAGDN8uiBzSlZ3vQBXrIPdxfDLY6e03W130ow/GaBNV7TiTr1jDS2Dckv HkBg== X-Gm-Message-State: AGi0PuaOF55j851/bAPZVTkm6EkA1n5ilALXS1kN5qzwAjIwCROy+vUu EXkQxfWuJp/2+rblOy4THgp3olxyPzuhW7l3huPp4BNa X-Received: by 2002:ab0:3343:: with SMTP id h3mr2687570uap.19.1587644569030; Thu, 23 Apr 2020 05:22:49 -0700 (PDT) MIME-Version: 1.0 References: <1587624199-96926-1-git-send-email-zou_wei@huawei.com> In-Reply-To: <1587624199-96926-1-git-send-email-zou_wei@huawei.com> From: Ulf Hansson Date: Thu, 23 Apr 2020 14:22:13 +0200 Message-ID: Subject: Re: [PATCH -next] mmc: sdhci-pci-o2micro: Make some symbols static To: Zou Wei Cc: Adrian Hunter , "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 23 Apr 2020 at 08:37, Zou Wei wrote: > > Fix the following sparse warning: > > drivers/mmc/host/sdhci-pci-o2micro.c:497:6: warning: symbol > 'sdhci_pci_o2_set_clock' was not declared. Should it be static? > drivers/mmc/host/sdhci-pci-o2micro.c:512:5: warning: symbol > 'sdhci_pci_o2_probe_slot' was not declared. Should it be static? > drivers/mmc/host/sdhci-pci-o2micro.c:581:5: warning: symbol > 'sdhci_pci_o2_probe' was not declared. Should it be static? > drivers/mmc/host/sdhci-pci-o2micro.c:786:5: warning: symbol > 'sdhci_pci_o2_resume' was not declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: Zou Wei Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/host/sdhci-pci-o2micro.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/mmc/host/sdhci-pci-o2micro.c b/drivers/mmc/host/sdhci-pci-o2micro.c > index fa81050..e2a8468 100644 > --- a/drivers/mmc/host/sdhci-pci-o2micro.c > +++ b/drivers/mmc/host/sdhci-pci-o2micro.c > @@ -494,7 +494,7 @@ static void sdhci_o2_enable_clk(struct sdhci_host *host, u16 clk) > } > } > > -void sdhci_pci_o2_set_clock(struct sdhci_host *host, unsigned int clock) > +static void sdhci_pci_o2_set_clock(struct sdhci_host *host, unsigned int clock) > { > u16 clk; > > @@ -509,7 +509,7 @@ void sdhci_pci_o2_set_clock(struct sdhci_host *host, unsigned int clock) > sdhci_o2_enable_clk(host, clk); > } > > -int sdhci_pci_o2_probe_slot(struct sdhci_pci_slot *slot) > +static int sdhci_pci_o2_probe_slot(struct sdhci_pci_slot *slot) > { > struct sdhci_pci_chip *chip; > struct sdhci_host *host; > @@ -578,7 +578,7 @@ int sdhci_pci_o2_probe_slot(struct sdhci_pci_slot *slot) > return 0; > } > > -int sdhci_pci_o2_probe(struct sdhci_pci_chip *chip) > +static int sdhci_pci_o2_probe(struct sdhci_pci_chip *chip) > { > int ret; > u8 scratch; > @@ -783,7 +783,7 @@ int sdhci_pci_o2_probe(struct sdhci_pci_chip *chip) > } > > #ifdef CONFIG_PM_SLEEP > -int sdhci_pci_o2_resume(struct sdhci_pci_chip *chip) > +static int sdhci_pci_o2_resume(struct sdhci_pci_chip *chip) > { > sdhci_pci_o2_probe(chip); > return sdhci_pci_resume_host(chip); > -- > 2.6.2 >