Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2651369rdb; Mon, 4 Dec 2023 03:58:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IEvZyJ0yRc2+KG5EwLGKfOH5kdgFxE+PJXldoouJGkpByVLyP9bKpYqNdgsHsGH1wiTpRnx X-Received: by 2002:a17:90b:1646:b0:285:ada6:cc11 with SMTP id il6-20020a17090b164600b00285ada6cc11mr4554172pjb.1.1701691123555; Mon, 04 Dec 2023 03:58:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701691123; cv=none; d=google.com; s=arc-20160816; b=dmJh4E04DumoBJijomwlA1vRV6pwGD3sDzMJc5P5phJ88+HAC/GQBx1XEg7I48+jJ1 9ZWUBB33+LmeFk2zkaHwWOqHU4ewOojVqTQl/P+BB0Rn8Re/fonhDY4UB/ONvxWFqUVZ fgTkFpe3IYhPWt8nPhLRCpD5VhCiCJCz9bAKazrnLDOZZo0H+adEfYLbSUX2ATffAlDb R6GnfYC1PXYmLUsc7DqTPvKlQJkXH+zKRXcTZQxbUYvMdnhUFJK+iE8GV3UTJRErgO2c 9Suy3ZZVSY1qSd/ucxWtNR53buBJDTBp8yxeKgLHkUBJHrkzMLf6abbWzKXR7dpfNVpb 7IiA== 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=VN+TJuum6RCgOBj2RdCIAAG9worByrbrl8rGn3llK3Y=; fh=ZaUu8Qu87y0sWtsc/L1xWJKMgHMvIjP9DS2ujBqzc8w=; b=NPgift/PevukQ/7iIA3Vp22b61eW56wSmNG7RaB1i0xclOfEEbjoIoPI7KKINkfj1r WRXSj7dtxvZPlVjP4rwLWQPPnzPveZhnr8oHiKYT0fXsoFmYxqBfTin0b4Wr1QUE6qu2 lUu+r2ycOKc75UXBDtUz3KuHY7JVxTV6Vee4iQKYrCe7TLge9ensP6g85J3BYzE2U0RU fqIrHgZ1G0mmXhUSR5iSHO0xCZzJuHzqFdv1xgycQf2/Ud7awpcg+YH0XPpAjH6fgOZX AcVSulj3LD9lyuyjJEIywUcDQrRn8J/cZhajemKKsVXab07fEr6VHeTr3NQk23tQv935 BTnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cODGOLl9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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. [23.128.96.33]) by mx.google.com with ESMTPS id g3-20020a17090ac30300b00286a4ce6474si1920472pjt.179.2023.12.04.03.58.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 03:58:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cODGOLl9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 08380809B725; Mon, 4 Dec 2023 03:58:41 -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 S232645AbjLDL6X (ORCPT + 99 others); Mon, 4 Dec 2023 06:58:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235338AbjLDL5k (ORCPT ); Mon, 4 Dec 2023 06:57:40 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 931AF106 for ; Mon, 4 Dec 2023 03:57:33 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DEBBC433C9; Mon, 4 Dec 2023 11:57:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701691053; bh=z4zTk3CFfY1MGmK1f12Tfq9m5AIiq4yOUL5+WPN+Gys=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cODGOLl96hF2fMQuvWNXpIGHYoQzt9fWAatg6+BNPuHZnwJ68CuLR53MQL+varhML GlBKYYHvIrAUXdJ8R9bGTKLkSuGuwg5u4dO96dIuofZL0rQXRzxDxRzB6pvVrFQ9V3 bWNLnEJrLD2v654rNAKTT5PZ9D2L5Z3B/kXuD6+1DAbc1Q28LlG2rHtj4iIOEpDgDF o8vBqd1uB3MvkFFG0iZPGoNetO4Q7aUCGci9AZr8gKlNtKqeierpE2SGTYeMM+T2i9 P2hF8rd3l9mXz/uycj/77GeKbsrM/1EhBEVIw+nqnMiTt8tMkyDOWtCJNs8VwNxsLC 40ACTDpfKXtgA== From: Arnd Bergmann To: linux-mips@vger.kernel.org Cc: Arnd Bergmann , "Andrew Morton" , "Stephen Rothwell" , "Linux Kernel Mailing List" , "Thomas Bogendoerfer" Subject: [PATCH 07/20] mips: move build_tlb_refill_handler() prototype Date: Mon, 4 Dec 2023 12:56:57 +0100 Message-Id: <20231204115710.2247097-8-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:58:41 -0800 (PST) From: Arnd Bergmann Instead of having a declaration for each caller, have one that is shared with the function definition, which avoids a warning: arch/mips/mm/tlbex.c:2547:6: error: no previous prototype for 'build_tlb_refill_handler' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann --- arch/mips/include/asm/tlbex.h | 1 + arch/mips/mm/tlb-r3k.c | 3 +-- arch/mips/mm/tlb-r4k.c | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/mips/include/asm/tlbex.h b/arch/mips/include/asm/tlbex.h index 6d97e23f30ab..24a2d06cc1c3 100644 --- a/arch/mips/include/asm/tlbex.h +++ b/arch/mips/include/asm/tlbex.h @@ -23,6 +23,7 @@ void build_update_entries(u32 **p, unsigned int tmp, unsigned int ptep); void build_tlb_write_entry(u32 **p, struct uasm_label **l, struct uasm_reloc **r, enum tlb_write_entry wmode); +void build_tlb_refill_handler(void); extern void handle_tlbl(void); extern char handle_tlbl_end[]; diff --git a/arch/mips/mm/tlb-r3k.c b/arch/mips/mm/tlb-r3k.c index 53dfa2b9316b..1fb2cf8c8bfa 100644 --- a/arch/mips/mm/tlb-r3k.c +++ b/arch/mips/mm/tlb-r3k.c @@ -23,11 +23,10 @@ #include #include #include +#include #undef DEBUG_TLB -extern void build_tlb_refill_handler(void); - /* CP0 hazard avoidance. */ #define BARRIER \ __asm__ __volatile__( \ diff --git a/arch/mips/mm/tlb-r4k.c b/arch/mips/mm/tlb-r4k.c index 93c2d695588a..a542b255019a 100644 --- a/arch/mips/mm/tlb-r4k.c +++ b/arch/mips/mm/tlb-r4k.c @@ -22,10 +22,9 @@ #include #include #include +#include #include -extern void build_tlb_refill_handler(void); - /* * LOONGSON-2 has a 4 entry itlb which is a subset of jtlb, LOONGSON-3 has * a 4 entry itlb and a 4 entry dtlb which are subsets of jtlb. Unfortunately, -- 2.39.2