Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2651633rdb; Mon, 4 Dec 2023 03:59:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IH84jM/iRaXKVB9Tq3Mr/ZJyUXKMpcouMkCXXi79qDXhQwq8Gg/nE5ZhrkfmOnzBW0dDi0Z X-Received: by 2002:a05:6a00:8017:b0:6ce:643d:98c2 with SMTP id eg23-20020a056a00801700b006ce643d98c2mr102478pfb.3.1701691162055; Mon, 04 Dec 2023 03:59:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691162; cv=none; d=google.com; s=arc-20160816; b=05LkA5tWxzrWvC4uhrHAlHyg/rJ2yf9fghbo/5KTmocIHqviDHnoteILnBsaEOodqO JbOfJnK0WmY8gkMc8GjElEIUst4trVoUKUx/zBVYKkhF7QCLo1Y+ta02gdApoyX0keL+ FAthAyF5bRQQCYgIWrEwqpr8jtlUlkVuxeiQfb4ynNjtQ0opmuRZcI0nrOaFomuKaOht nX9WAKG5lsc4IklCN2gu9spxbfIMo7Vt4r6k8UZwFd/dgDPoHs9IScyn2ucULD1iJ65N F3UxqgcKO8KO8UdObD1gfJfnukx8eBWj+e5MQZgGqldZpcTTCQWaOdeYlM+0QhszZyGA HepQ== 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=ctXYa0SwNmxx4Y6ZiPSbqcuGNTlc9OgoNSA/qYltfB4=; fh=ZaUu8Qu87y0sWtsc/L1xWJKMgHMvIjP9DS2ujBqzc8w=; b=t2RCTtc+L3Tt/iJsVwrLiTs7M9VuAiuBJqBkvxL92BgcGxt7HP6615+XzFT4m486Lo 2dWmMa2lNn48VHkUv8nfRktxsTYr3awwdM85xYpw4VLy13wKmt+uHsKmTmjEcaX+yb89 Np/u0EclldJ7awRON4H6FjL9kpnXjOO5rE3i8I0wrpQnjo4RqmbD3Cxh/YbxyksGFKE8 dQNTlAQK+tDE2T0wekqWTwlmglxk3bHw1/DIP9rHVApzsi/yaBsyeZ5FIx9in8aPx1fP Sb0ZRfxO4IJoCko6ZBgx/4Xuqe+a9wE1hkRAuPF/QEyx2+dm1tIpbQb/xVMVMvkAXWPr f63g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R+jHt4x+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id c17-20020a63ef51000000b005c6646565c6si3391628pgk.639.2023.12.04.03.59.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 03:59:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R+jHt4x+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id BF3128094D52; Mon, 4 Dec 2023 03:59:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233118AbjLDL6t (ORCPT + 99 others); Mon, 4 Dec 2023 06:58:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234894AbjLDL6I (ORCPT ); Mon, 4 Dec 2023 06:58:08 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D1D919AB for ; Mon, 4 Dec 2023 03:57:40 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83113C43391; Mon, 4 Dec 2023 11:57:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701691059; bh=f7mPCoikKyAxX+kfcbgmRu4ug6L+LPkQ+dYSgFSXlPY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R+jHt4x+nSEjuW01cDgKtc9kiRiD2SdnQ0deE6o2yur28Abjmd+mteEoC5EX5hGYl WwFf/aGQVD7cK/QNkEYiN2WyIMOok0CAP+bRzshMJUq+JV8FxNybIS4RfUq9ps+DYs b0KEPHDDdWJLzI/IlcQCKKmWHbUoW3AY07f8caszW3as77BaEC8i5d7Q+s7K1lf6U+ iJKZZdhyVcbP155OJL2U89uctz+E6AZSSAVd17wBQs6VU2MygoB4w9nuYd2s9dv4Cu lPyBn7eLiYjo8ENI57IXmZLxMjO3KZKCvEmFJp2UyEQRiY6uwEj2+OQa6Ixd2T7fBI ASP0AAnjxrYIQ== From: Arnd Bergmann To: linux-mips@vger.kernel.org Cc: Arnd Bergmann , "Andrew Morton" , "Stephen Rothwell" , "Linux Kernel Mailing List" , "Thomas Bogendoerfer" Subject: [PATCH 10/20] mips: fix setup_zero_pages() prototype Date: Mon, 4 Dec 2023 12:57:00 +0100 Message-Id: <20231204115710.2247097-11-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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 04 Dec 2023 03:59:19 -0800 (PST) From: Arnd Bergmann setup_zero_pages() has a local declaration in a platform specific header, but that is not seen in the file it is defined in: arch/mips/mm/init.c:60:6: error: no previous prototype for 'setup_zero_pages' [-Werror=missing-prototypes] Move it to the corresponding global header and include that where needed. Signed-off-by: Arnd Bergmann --- arch/mips/include/asm/mach-loongson64/mmzone.h | 1 - arch/mips/include/asm/mmzone.h | 2 ++ arch/mips/mm/init.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/mips/include/asm/mach-loongson64/mmzone.h b/arch/mips/include/asm/mach-loongson64/mmzone.h index ebb1deaa77b9..a3d65d37b8b5 100644 --- a/arch/mips/include/asm/mach-loongson64/mmzone.h +++ b/arch/mips/include/asm/mach-loongson64/mmzone.h @@ -18,7 +18,6 @@ extern struct pglist_data *__node_data[]; #define NODE_DATA(n) (__node_data[n]) -extern void setup_zero_pages(void); extern void __init prom_init_numa_memory(void); #endif /* _ASM_MACH_MMZONE_H */ diff --git a/arch/mips/include/asm/mmzone.h b/arch/mips/include/asm/mmzone.h index 602a21aee9d4..14226ea42036 100644 --- a/arch/mips/include/asm/mmzone.h +++ b/arch/mips/include/asm/mmzone.h @@ -20,4 +20,6 @@ #define nid_to_addrbase(nid) 0 #endif +extern void setup_zero_pages(void); + #endif /* _ASM_MMZONE_H_ */ diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index 5dcb525a8995..c2e0e5aebe90 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include -- 2.39.2