From patchwork Sat Feb 24 17:42:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg via B4 Relay X-Patchwork-Id: 205910 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1252851dyb; Sat, 24 Feb 2024 09:43:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX930lJwN8AZFFEKZa5R7rrQATLUJOmiPBWAZQ3Tr/0kTtNeR7WqrF3bdNKqlTqt7OeCfpsEDYRQta1IAzL+TieyRzodQ== X-Google-Smtp-Source: AGHT+IHZwM42QIOgn6I7f1QBdrdeUbXaci3p+emSI1EnboGApqL83Qz4ONtDOpIuZJmlpcvPxNdo X-Received: by 2002:a05:6a21:8cc9:b0:1a0:a43b:cbd8 with SMTP id ta9-20020a056a218cc900b001a0a43bcbd8mr3941882pzb.59.1708796603242; Sat, 24 Feb 2024 09:43:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708796603; cv=pass; d=google.com; s=arc-20160816; b=r4Dh7Ttt+hHcBNPWRzwrvr1+gxBD1zDXJO0Jzjs0Gzu12UUO/3YamDZ1pZZFhaLUBw /i6ofB91FsamsxSFIMpQ2045v4Frcj+PTNExpMXO/T38o0Dss2LCbCaQkUg6m8w1RoXK +9b0AfuKwAUgsrPzGR618OaU4h/kaSat0yEJzHNB7HqHv3or1uDNZ7ebJSWnbW1VVrht U4xGqevLWc+7h+v1lbd6efe38dengAfKnqKi9csOfphXoFCxSo/NCw0aJfgOJ9e5n2gK NCNvfeVDniobFxxtcIVm+Yvx4hI/V9OArSmvRhvQUlij2XBbbp42XU9jT+MRQVHECSYH BlOQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=HdkwYBE87KAl2eVhFl1UlsklVaFc2wKkdEVxWRc/lYA=; fh=axaiTczyEibQIAZR7tL5HdXpt5eDXppl7AUtI52L8OM=; b=fdzw5lOIb5x6IAE6ozL5Cpr2BQd7ZzBOQGoNGFrGZsb++IEGRqC4OpSh61B9x5rMy8 DEigAvPnxanIqhOMzAGqhKdfi3iwmHH0JO8mBK5sDf949TOL2ALqkN1HriFLQvNJYIJc 6lH93y/hdFBU4F2Pnge/PZWUUKadWpfT4nfvKMVlQqrB45bjAWOTbiUzjDTFJl/y6k4H f2oHueh4DXijhidyGajszB6/vV9WwI6MLRUAx8gc/ObdqcQ3fOAfYGvDI2Us3nVMGpuu gv485vclU5h3Nzbs7uIZeZm1NCESrHmXWNSurnEYjA1cq510NCIzXlp6e28ltQ4GHbgB 8atQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pdvWCZAS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79766-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79766-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i21-20020a635415000000b005dc97d88896si1146049pgb.729.2024.02.24.09.43.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 09:43:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79766-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pdvWCZAS; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79766-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79766-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 11AD52827C1 for ; Sat, 24 Feb 2024 17:43:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3329D4D5B5; Sat, 24 Feb 2024 17:42:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pdvWCZAS" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6650F47F59; Sat, 24 Feb 2024 17:42:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708796547; cv=none; b=mbTamu+tk0kP0zUwTZuOs5BLS4DefPyraK+l7lMXHCfDNcsx+Zy9UkGkheL/hOAslN1Yy21o2UxQ0HDLvkOSLfO3wKmX633XfTzJJno/wkPGg9P9hpb0bEb/AnVJu/gYdKEGsjvEs4/OE41HVBXzAeybvoCra3cab/InMbrLUUc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708796547; c=relaxed/simple; bh=cTWwSnGLk/pM/d3HuBGFVevuzYQU4YydbqLVII6r0V4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rphqdJDW6uhYDld/tTzca9+SDGzDRUqkkTUQBYigkkuwSP8TkuzpWX3T/sIZHf5gmiQRaoO3pyrRdTOVRww+lVxOgT2qrNebHUj8nomwmVmg33FnZvFD3LjVq5lNKJ1C6Peub5yFdTt69vMwYkOj3cgxh1fbzPDuEuZYyrByq68= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pdvWCZAS; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 0ACDDC43394; Sat, 24 Feb 2024 17:42:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708796547; bh=cTWwSnGLk/pM/d3HuBGFVevuzYQU4YydbqLVII6r0V4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=pdvWCZASAi+WNfRDh2KsqzBL+9Hc/gzwtu7buOAMWaXRROJV1/Dt756GV8/vgOzDl +9NWVatyLUb4uanYAYh/aq1FRsJM5q5IeXjSUyAGJlQvCsL48hwIK84adtC7b7EZnm Lx0WjCtragrMPIW7fw42Fno5S6ALJydead7DUW4FZQZszKlx5XGU48o9IeulMRkipI zJDik67RT0wgv+Y3lv0dEGP9JR+t2Z7svtiprL+gELIPFXIqQTWo2GhSj/9xr/E6lN h6pppKoeplQVj36+loti7iq9it37sYNw3PGAoRp7y4TdeGvBlHor0qMVxa7GU/Jgaz 5xJqmXe1e6tAg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF6A3C54E49; Sat, 24 Feb 2024 17:42:26 +0000 (UTC) From: Sam Ravnborg via B4 Relay Date: Sat, 24 Feb 2024 18:42:24 +0100 Subject: [PATCH v2 3/7] mtd: maps: sun_uflash: Declare uflash_devinit static Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240224-sam-fix-sparc32-all-builds-v2-3-1f186603c5c4@ravnborg.org> References: <20240224-sam-fix-sparc32-all-builds-v2-0-1f186603c5c4@ravnborg.org> In-Reply-To: <20240224-sam-fix-sparc32-all-builds-v2-0-1f186603c5c4@ravnborg.org> To: "Maciej W. Rozycki" , sparclinux@vger.kernel.org, Andreas Larsson , Randy Dunlap Cc: Miquel Raynal , linux-parport@lists.infradead.org, "David S. Miller" , Arnd Bergmann , linux-kernel@vger.kernel.org, Sam Ravnborg X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708796545; l=1022; i=sam@ravnborg.org; s=20230107; h=from:subject:message-id; bh=1CQEn1rR62vDngISirB1bMAgXc9+BD3JSgTxbntNHpM=; =?utf-8?q?b=3DJ7vmq08a1WA/?= =?utf-8?q?yKaJnn8961lo1M50MdiWJaS56NAsS66meT3rhpm7+wO7l1LTep/srhdb9PoD+9SA?= OHZdMimeCmy5hI9xnAPkeScVn7WU6Yy3CoFvNqOgAlKwHkwNbP+z X-Developer-Key: i=sam@ravnborg.org; a=ed25519; pk=R0+pqV7BRYOAeOIGkyOrSNke7arx5y3LkEuNi37YEyU= X-Endpoint-Received: by B4 Relay for sam@ravnborg.org/20230107 with auth_id=22 X-Original-From: Sam Ravnborg Reply-To: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791803106955097736 X-GMAIL-MSGID: 1791803106955097736 From: Sam Ravnborg This fixes the following warning: sun_uflash.c:50:5: error: no previous prototype for 'uflash_devinit' Signed-off-by: Sam Ravnborg Fixes: 0fcb70851fbf ("Makefile.extrawarn: turn on missing-prototypes globally") Reviewed-by: Randy Dunlap Tested-by: Randy Dunlap # build-tested Cc: Andreas Larsson Cc: "David S. Miller" Acked-by: Miquel Raynal --- drivers/mtd/maps/sun_uflash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/maps/sun_uflash.c b/drivers/mtd/maps/sun_uflash.c index f58cfb15d6e8..b69dade3f7ad 100644 --- a/drivers/mtd/maps/sun_uflash.c +++ b/drivers/mtd/maps/sun_uflash.c @@ -47,7 +47,7 @@ struct map_info uflash_map_templ = { .bankwidth = UFLASH_BUSWIDTH, }; -int uflash_devinit(struct platform_device *op, struct device_node *dp) +static int uflash_devinit(struct platform_device *op, struct device_node *dp) { struct uflash_dev *up;