Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4C87C433F5 for ; Thu, 4 Nov 2021 07:46:45 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B8746610FD for ; Thu, 4 Nov 2021 07:46:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B8746610FD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3D8F383660; Thu, 4 Nov 2021 08:46:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1636012003; bh=Eh8wIkVk3dmA44UZeJPtjUkjq/zbUX+BGbeVmwX81iQ=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=bk2hiQD//hMmVdKpvK9eq1Kc0e1EnAoGuuWwZmb74YOLmPxlJi+gaJdFradkLXraq mI2E+trHHfmNvMK2p1hdQvJE9jjjtDPLk9zprQ0nQfHcnPkA2ePovcKkxOfBIjnr1X QgLuhDO1yp3Tq6LI8v+Rs7hO5GbyTI6a/QhSlMKE5x3NrE6xhXDAMhG+JCClcSlvcS NpFSQLedWXvqGbOFjXrFRgvQ8beqWBtgjIcU1Ub1TeW+t1uYBCdQ5W4IswSpFcNlp4 sogTft8/xgkaAnaPKOPGH8TEh+2kM/QPeObr5m3myXZVHIsjysQlaNDZMf0EtvSun+ lto+n952s6v0g== Received: by phobos.denx.de (Postfix, from userid 109) id 1320D83661; Thu, 4 Nov 2021 08:46:42 +0100 (CET) Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [IPv6:2001:67c:2050:1::465:204]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4E1BC8363F for ; Thu, 4 Nov 2021 08:46:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp2.mailbox.org (unknown [91.198.250.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4HlG1B5fsgzQjPn; Thu, 4 Nov 2021 08:46:38 +0100 (CET) Subject: Re: [PATCH v3 2/6] sysreset: Mark driver probe functions as static To: Samuel Holland , u-boot@lists.denx.de, Jagan Teki , Andre Przywara Cc: Bin Meng , Heinrich Schuchardt , Sean Anderson , Simon Glass References: <20211104035516.28268-1-samuel@sholland.org> <20211104035516.28268-3-samuel@sholland.org> From: Stefan Roese Message-ID: <0041287e-cc2b-3d90-91ab-33e3f7b0216f@denx.de> Date: Thu, 4 Nov 2021 08:46:33 +0100 MIME-Version: 1.0 In-Reply-To: <20211104035516.28268-3-samuel@sholland.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 78E381844 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On 04.11.21 04:55, Samuel Holland wrote: > These driver probe functions are not (and should not be) called from > outside the respective driver source files. Therefore, the functions > should be marked static. > > Reviewed-by: Heinrich Schuchardt > Signed-off-by: Samuel Holland Reviewed-by: Stefan Roese Thanks, Stefan > --- > > (no changes since v2) > > Changes in v2: > - Also make gpio_reboot_probe function static. > > drivers/sysreset/sysreset_gpio.c | 2 +- > drivers/sysreset/sysreset_resetctl.c | 2 +- > drivers/sysreset/sysreset_syscon.c | 2 +- > drivers/sysreset/sysreset_watchdog.c | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/sysreset/sysreset_gpio.c b/drivers/sysreset/sysreset_gpio.c > index 680b759eb3..dfca10ccc8 100644 > --- a/drivers/sysreset/sysreset_gpio.c > +++ b/drivers/sysreset/sysreset_gpio.c > @@ -33,7 +33,7 @@ static struct sysreset_ops gpio_reboot_ops = { > .request = gpio_reboot_request, > }; > > -int gpio_reboot_probe(struct udevice *dev) > +static int gpio_reboot_probe(struct udevice *dev) > { > struct gpio_reboot_priv *priv = dev_get_priv(dev); > > diff --git a/drivers/sysreset/sysreset_resetctl.c b/drivers/sysreset/sysreset_resetctl.c > index c039521eb4..25bd5c9a7f 100644 > --- a/drivers/sysreset/sysreset_resetctl.c > +++ b/drivers/sysreset/sysreset_resetctl.c > @@ -26,7 +26,7 @@ static struct sysreset_ops resetctl_reboot_ops = { > .request = resetctl_reboot_request, > }; > > -int resetctl_reboot_probe(struct udevice *dev) > +static int resetctl_reboot_probe(struct udevice *dev) > { > struct resetctl_reboot_priv *priv = dev_get_priv(dev); > > diff --git a/drivers/sysreset/sysreset_syscon.c b/drivers/sysreset/sysreset_syscon.c > index 28fdfb0978..525faf2f89 100644 > --- a/drivers/sysreset/sysreset_syscon.c > +++ b/drivers/sysreset/sysreset_syscon.c > @@ -39,7 +39,7 @@ static struct sysreset_ops syscon_reboot_ops = { > .request = syscon_reboot_request, > }; > > -int syscon_reboot_probe(struct udevice *dev) > +static int syscon_reboot_probe(struct udevice *dev) > { > struct syscon_reboot_priv *priv = dev_get_priv(dev); > int err; > diff --git a/drivers/sysreset/sysreset_watchdog.c b/drivers/sysreset/sysreset_watchdog.c > index 0dc2d8b9b6..c7ae368d41 100644 > --- a/drivers/sysreset/sysreset_watchdog.c > +++ b/drivers/sysreset/sysreset_watchdog.c > @@ -29,7 +29,7 @@ static struct sysreset_ops wdt_reboot_ops = { > .request = wdt_reboot_request, > }; > > -int wdt_reboot_probe(struct udevice *dev) > +static int wdt_reboot_probe(struct udevice *dev) > { > struct wdt_reboot_priv *priv = dev_get_priv(dev); > int err; > Viele Grüße, Stefan -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de