Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2651742rdb; Mon, 4 Dec 2023 03:59:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IGOfruRcoVvtk2Wc+pRcSf3Q3cmzh4HT68gK3XJ5eWW3tYJTPndVH1eKCdZSvpElvHnjIT6 X-Received: by 2002:a17:902:ce86:b0:1d0:7341:c1aa with SMTP id f6-20020a170902ce8600b001d07341c1aamr1677178plg.2.1701691175278; Mon, 04 Dec 2023 03:59:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691175; cv=none; d=google.com; s=arc-20160816; b=XTep3GPc4nsZQfZKl+oS9ege8nmvDh/Hv08FqDHFYKz0YKEdNRpn8L0I8thFYVG2GQ vmQkZaFkC45hmwbmOJUyUktFw9qDZPfWk3SaRQ+RoaVtIVcMSmR1lkgYtfGQ6EZs7Igm 2ntn0hMiVPHguKBPnXUHuoJjuf7tFUj2RbbgGiel/u+8HknMcoa5QwxSBUOruBFZ8UYW CO4P4dvsu2/EyzWxF3q9JputN6VmgCXyLhZ6GJpzMw0SkptbtebUu0fIsT2OK5CjHLoW fI0gMjzv8ct5l2qwsZtN0eDikZhyLnR4l2Ki8GnAdHcHiApFlAGVcUpLEEP6GqdisqfR srdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CG2yR+cZf32uQgulnIz9Fa6FNabOvvT0emgSw2IB02M=; fh=ZaUu8Qu87y0sWtsc/L1xWJKMgHMvIjP9DS2ujBqzc8w=; b=tUFQyVWEmpzVu/+AJiIiYg8lYikKQ4gNK5cFwBIDvPd38Lybh9uHMv+Y3Thg6RahbI xn9zuICtht5bngH6MZGBrcmDMb9qr/Xqed7wyXl5aHoyjlGx5Bhy8+dN78U9RRW9HcuS L2ZwlNWo8ZjalHg9DPakI76iBN5zuBU+0nRv3UCi41YwYqU+fAQeiMPecvJYb7Zlaij1 qwRxBvjOdrYyLq761TTHPxmVRk0QQ0gl5bt1Pinfe4qiP+hogbsdgjhAxKUy1ZzkTypg ADdQmMWsArwTm61fN1FAz4b6nopsYo1GoxCGYLA7doGbUBLLHNcnJZfNBgp9OkLdanSR zL9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DfqFb3Q+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id bg8-20020a1709028e8800b001cdf0388455si6991168plb.111.2023.12.04.03.59.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 03:59:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DfqFb3Q+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 8D5BE805D5DE; Mon, 4 Dec 2023 03:59:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343990AbjLDL7P (ORCPT + 99 others); Mon, 4 Dec 2023 06:59:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235345AbjLDL6c (ORCPT ); Mon, 4 Dec 2023 06:58:32 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 492C6D50 for ; Mon, 4 Dec 2023 03:57:47 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57DD1C433C7; Mon, 4 Dec 2023 11:57:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701691066; bh=mHja8axhsHXkDaKV6E+Gy/vhO170K/x0LJkgRVpgsKM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DfqFb3Q+q+KbsNMRhDvUAK/ugHVnAYEo780Lilzvxrp1kLwQ6TwUhySHx1xCppK9D 3T4HrkoiBhATuMbgGBUTVQqGY2ORlNOsIQlcxF2GAYgdAcUn+msBqkjrzLGrJWb7Xw 3TCAyEp19aUxS0bZs8zCB2XFkcjH/3UtMP6ju9VjQyFKY0pWwaQAfALuO61mvZ9rLg /cok18i/3aUmCd8mS8nbp6qYmuAcLa6IgFHwxBP5Ck1YSD4SMjQ/xjDrT8wjbZsovW VtPdLYxkYaj7RfqED2eMxE4rW5NWluFQQSYdCLo5LuH1ENd0n2EcVxKzfHz5Id44d9 4MAfQlgB3B/Ug== From: Arnd Bergmann To: linux-mips@vger.kernel.org Cc: Arnd Bergmann , "Andrew Morton" , "Stephen Rothwell" , "Linux Kernel Mailing List" , "Thomas Bogendoerfer" Subject: [PATCH 14/20] mips: spram: fix missing prototype warning for spram_config Date: Mon, 4 Dec 2023 12:57:04 +0100 Message-Id: <20231204115710.2247097-15-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231204115710.2247097-1-arnd@kernel.org> References: <20231204115710.2247097-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 04 Dec 2023 03:59:31 -0800 (PST) From: Arnd Bergmann arch/mips/kernel/spram.c:194:6: error: no previous prototype for 'spram_config' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann --- arch/mips/include/asm/spram.h | 2 +- arch/mips/kernel/spram.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/mips/include/asm/spram.h b/arch/mips/include/asm/spram.h index 373f2a5d495d..9f6a2cb1943a 100644 --- a/arch/mips/include/asm/spram.h +++ b/arch/mips/include/asm/spram.h @@ -3,7 +3,7 @@ #define _MIPS_SPRAM_H #if defined(CONFIG_MIPS_SPRAM) -extern __init void spram_config(void); +extern void spram_config(void); #else static inline void spram_config(void) { } #endif /* CONFIG_MIPS_SPRAM */ diff --git a/arch/mips/kernel/spram.c b/arch/mips/kernel/spram.c index d5d96214cce5..71c7e5e27567 100644 --- a/arch/mips/kernel/spram.c +++ b/arch/mips/kernel/spram.c @@ -12,6 +12,7 @@ #include #include #include +#include /* * These definitions are correct for the 24K/34K/74K SPRAM sample -- 2.39.2