From mboxrd@z Thu Jan 1 00:00:00 1970 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 6817241B918; Sat, 28 Feb 2026 17:45:41 +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=1772300741; cv=none; b=bsf5tETdw+yPmOuWX5epiGS4M0vHD/pqZiA4JllUKLF1Dazn4O5soLDobUheqT204eofSkPug3qUmwtF64a7m+geWOr8VQolwE4zvx68R7feBLZ+hsxPydX10dFAjResYUvzK91/luaUqQWa25jGI1I00i5nwLvzjYals9Yt7do= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772300741; c=relaxed/simple; bh=/nD649T2xEp+kK4gCXKPYPLpFpSVvdLGdcEntA0McGI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hqWWYk19i8hJhvn9kOAP+JFZzbHDTaIgTY4dleam3LfdLCWUPNoraJBJQbWNMMKRveeO7D/KHUuLZ3Tb+ju0YKFv/4OLZaHvHecX/3QeFAVFEbn1NaCi1c3vReZdVVxXhUbmDbFdsyqubMmLTYbJfnm6QAWX/83bbNADalrk0Pc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FHMgNLSc; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FHMgNLSc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BF6CC2BC9E; Sat, 28 Feb 2026 17:45:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772300741; bh=/nD649T2xEp+kK4gCXKPYPLpFpSVvdLGdcEntA0McGI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FHMgNLSc+E7FCf2AQf9FJ6Tz+bdJlxRrLU7bdgAn7EnVmMIorxUgKReYSg/r6rWy5 mbClFUpq3v3GvFy05wgq0YDn3iK9qh7+PeWkN8k+kg+adBqoFE0uT7zDIPSX5vfuJv gv2sXTO+hQ0q/MP1pXJ/9jqrsbZSk//pyiqptf7R4KksFvtPplqDH3MTrOv8ODSlLl aeLotYRxmAjUgOiZTiO9brChOOS9Rg2GxTHjrvkETMwkBNXJWERMKLCvC4S5ORqMKZ EK/58PIMeV6+MU1/e6QEiUihOeaUHE2VDcRA+YO3a2ohmvQPEQ3r/cijUwTYPkbs4S tEMBrVjAsOY+Q== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Tiezhu Yang , Huacai Chen , Sasha Levin Subject: [PATCH 6.19 776/844] LoongArch: Remove some extern variables in source files Date: Sat, 28 Feb 2026 12:31:29 -0500 Message-ID: <20260228173244.1509663-777-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260228173244.1509663-1-sashal@kernel.org> References: <20260228173244.1509663-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Tiezhu Yang [ Upstream commit 0e6f596d6ac635e80bb265d587b2287ef8fa1cd6 ] There are declarations of the variable "eentry", "pcpu_handlers[]" and "exception_handlers[]" in asm/setup.h, the source files already include this header file directly or indirectly, so no need to declare them in the source files, just remove the code. Cc: stable@vger.kernel.org Signed-off-by: Tiezhu Yang Signed-off-by: Huacai Chen Signed-off-by: Sasha Levin --- arch/loongarch/kernel/unwind_orc.c | 2 -- arch/loongarch/kernel/unwind_prologue.c | 4 ---- arch/loongarch/mm/tlb.c | 1 - 3 files changed, 7 deletions(-) diff --git a/arch/loongarch/kernel/unwind_orc.c b/arch/loongarch/kernel/unwind_orc.c index 11ba3e4ac9eee..9cfb5bb1991f2 100644 --- a/arch/loongarch/kernel/unwind_orc.c +++ b/arch/loongarch/kernel/unwind_orc.c @@ -350,8 +350,6 @@ EXPORT_SYMBOL_GPL(unwind_start); static inline unsigned long bt_address(unsigned long ra) { - extern unsigned long eentry; - #if defined(CONFIG_NUMA) && !defined(CONFIG_PREEMPT_RT) int cpu; int vec_sz = sizeof(exception_handlers); diff --git a/arch/loongarch/kernel/unwind_prologue.c b/arch/loongarch/kernel/unwind_prologue.c index ee1c29686ab05..da07acad7973a 100644 --- a/arch/loongarch/kernel/unwind_prologue.c +++ b/arch/loongarch/kernel/unwind_prologue.c @@ -23,10 +23,6 @@ extern const int unwind_hint_lasx; extern const int unwind_hint_lbt; extern const int unwind_hint_ri; extern const int unwind_hint_watch; -extern unsigned long eentry; -#ifdef CONFIG_NUMA -extern unsigned long pcpu_handlers[NR_CPUS]; -#endif static inline bool scan_handlers(unsigned long entry_offset) { diff --git a/arch/loongarch/mm/tlb.c b/arch/loongarch/mm/tlb.c index 6a3c91b9cacdc..4014c44695878 100644 --- a/arch/loongarch/mm/tlb.c +++ b/arch/loongarch/mm/tlb.c @@ -262,7 +262,6 @@ static void output_pgtable_bits_defines(void) #ifdef CONFIG_NUMA unsigned long pcpu_handlers[NR_CPUS]; #endif -extern long exception_handlers[VECSIZE * 128 / sizeof(long)]; static void setup_tlb_handler(int cpu) { -- 2.51.0