From nobody Mon Feb 9 15:59:26 2026 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 6DC4B47A7F for ; Thu, 28 Mar 2024 05:39: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=1711604367; cv=none; b=tZNMMu2+Hlr0ORFd+lQvkudk4kvrkklciAJ2TEFxiqtC0xN8NEGgWjrqEJys7ygjQeu+seKdYwNyRLeC8MqtHG5f7RYCUHqfqQ0r+62ShJdAGXfF1Vwq44UM7ystAg2DYZVEBysMwogV4anojQFQY4mdHn+E1MW2ELaBmqJSte0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711604367; c=relaxed/simple; bh=zF14u9ZN6FPEsFmQUkS2tzuVfrv7E203xtVo9XywqN0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FAmfUQlZYFnI+RkrG2zwZut81IfqoLnG2ap4Q83emmMW/bcJGOHr7wMPDrxcxFir1+/opmxxcxJ+za/Vn9LGcaAqNdILzuXlw7TE6e1vQkn2EpWreoWOJrpQ1DNFf9XYt60iOw1y4BojVV3JAlJhrHV6VKdgt+mKxTI6SMlrPwE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DtQ40G4U; 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="DtQ40G4U" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DDB83C433F1; Thu, 28 Mar 2024 05:39:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711604367; bh=zF14u9ZN6FPEsFmQUkS2tzuVfrv7E203xtVo9XywqN0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DtQ40G4UJfjy9f+NdwreIgdjjpg9ESObFxGohzU/XPu9wcKDbfUUfbUp/fr1SsoAW YlHON/WFyH2ZmX99LI4k5gizNA1hbtNI3435VBeSjcQptREcyacH1RMiYrtBDI2enW 8Q6OvI0Xpd6oyOUOz3n3ZuaFJpo2eM4UUBAsWWSUF3wy5anLzHCmvL24n7BK0CarJw g7dyebwap6MxsjcaZ1wH+Ea35rhvTenTPKmm33Fyf9iOtz1Y9t/uILD7OHe45Em04G LxTqmZ5wjQ8QcEgYQB0BN0+44udKOqeHSr8iK7ByTqrsE4PAqpdDeJ4lZl9X8vYq7f NkPnPtKmKAVIA== From: Vineet Gupta To: linux-snps-arc@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Vineet Gupta , Linux Kernel Functional Testing Subject: [PATCH 1/2] ARC: Fix -Wmissing-prototypes warnings Date: Wed, 27 Mar 2024 22:39:18 -0700 Message-Id: <20240328053919.992821-2-vgupta@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240328053919.992821-1-vgupta@kernel.org> References: <20240328053919.992821-1-vgupta@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" | ../arch/arc/kernel/kprobes.c:193:15: warning: no previous prototype for '= arc_kprobe_handler' [-Wmissing-prototypes] | 193 | int __kprobes arc_kprobe_handler(unsigned long addr, struct pt_reg= s *regs) | |../arch/arc/kernel/ptrace.c:342:16: warning: no previous prototype for 'sy= scall_trace_enter' [-Wmissing-prototypes] | 342 | asmlinkage int syscall_trace_enter(struct pt_regs *regs) Link: https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240= 325/testrun/23149630/suite/build/test/gcc-9-defconfig/log Reported-by: Linux Kernel Functional Testing Signed-off-by: Vineet Gupta --- arch/arc/include/asm/ptrace.h | 2 +- arch/arc/kernel/kprobes.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/arc/include/asm/ptrace.h b/arch/arc/include/asm/ptrace.h index 00b9318e551e..cf79df0b2570 100644 --- a/arch/arc/include/asm/ptrace.h +++ b/arch/arc/include/asm/ptrace.h @@ -169,7 +169,7 @@ static inline unsigned long regs_get_register(struct pt= _regs *regs, return *(unsigned long *)((unsigned long)regs + offset); } =20 -extern int syscall_trace_entry(struct pt_regs *); +extern int syscall_trace_enter(struct pt_regs *); extern void syscall_trace_exit(struct pt_regs *); =20 #endif /* !__ASSEMBLY__ */ diff --git a/arch/arc/kernel/kprobes.c b/arch/arc/kernel/kprobes.c index e71d64119d71..f8e2960832d9 100644 --- a/arch/arc/kernel/kprobes.c +++ b/arch/arc/kernel/kprobes.c @@ -190,7 +190,8 @@ static void __kprobes setup_singlestep(struct kprobe *p= , struct pt_regs *regs) } } =20 -int __kprobes arc_kprobe_handler(unsigned long addr, struct pt_regs *regs) +static int +__kprobes arc_kprobe_handler(unsigned long addr, struct pt_regs *regs) { struct kprobe *p; struct kprobe_ctlblk *kcb; @@ -241,8 +242,8 @@ int __kprobes arc_kprobe_handler(unsigned long addr, st= ruct pt_regs *regs) return 0; } =20 -static int __kprobes arc_post_kprobe_handler(unsigned long addr, - struct pt_regs *regs) +static int +__kprobes arc_post_kprobe_handler(unsigned long addr, struct pt_regs *regs) { struct kprobe *cur =3D kprobe_running(); struct kprobe_ctlblk *kcb =3D get_kprobe_ctlblk(); --=20 2.34.1 From nobody Mon Feb 9 15:59:26 2026 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 BA4CC48CFC for ; Thu, 28 Mar 2024 05:39: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=1711604367; cv=none; b=g+ENHLd3fUuxSSQlv4EnrWvcvYmgkXd5Yco0XW8fMhm6AHAKen5K/NyJcGQnq1j+aDilveR9DCYjsXu6FKxWm+m47MGYpjnhgWnY9yFXIY8mBWuVvSabCft2A+DZlcKlGtQ5RXuGatbUkSVvHFxfGP30ulKNhnuTS1yIx4KhGhg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711604367; c=relaxed/simple; bh=OO4cjF1dzedIpZ/Rn3JEn332Jo/uK7j8W6cHjViP98o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=HSoAD3HaHWO8Y6ArM2A+2zerNIRX62bJbDPqY6eHyRilC96xsUSg0P4lJskQng1ZTh/MztA2nsT7hiI3lEpFy0odcjPUHMqWIxpjUagaHJ2yiDQc3+HWqy81/QS2+TIhOkevTDQZy6HMNr4ceW75SJpcsT/5uIXETtjE93yKswQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HmNTYAey; 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="HmNTYAey" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 407E6C43394; Thu, 28 Mar 2024 05:39:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711604367; bh=OO4cjF1dzedIpZ/Rn3JEn332Jo/uK7j8W6cHjViP98o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HmNTYAeyBMc+xYkhGgFyEffcpojMOnwTOpp3ZEhfPXorHPhe+4Y0db/ReKpJ3NE71 PseOlyDX59lGJAfYF+9ygLX87kUap6EjvAdIU9p43PST2depQXBR077fipEChK9t0v XIfFeC1nkxG2zhzkrW2d3TJW+lWyd1IBlGMXpOieQz1vWQBBm9hYYEjYIxUSmoCcYW T4lET7c+TAA6oOUvkvj/mfeCJVUxcfcIVm6vDoVKFgNErIePAsVqd8y2p/jnc+cKyc HPXYwfZENKwPdO4eWLXZGQuZCd6gH79fMFi5hMROh1PzlLO85zIFA9fQO3b6RX5SBM EY26xcCW5/Taw== From: Vineet Gupta To: linux-snps-arc@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Vineet Gupta , Mathieu Desnoyers Subject: [PATCH 2/2] ARC: mm: fix new code about cache aliasing Date: Wed, 27 Mar 2024 22:39:19 -0700 Message-Id: <20240328053919.992821-3-vgupta@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240328053919.992821-1-vgupta@kernel.org> References: <20240328053919.992821-1-vgupta@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Manual/partial revert of 8690bbcf3b70 ("Introduce cpu_dcache_is_aliasing() = across all architectures") Current generation of ARCv2/ARCv3 based HSxx cores are only PIPT (to softwa= re at least). Legacy ARC700 cpus could be VIPT aliasing (based on cache geometry and PAGE_SIZE) however recently that support was ripped out so VIPT aliasing cache is not relevant to ARC anymore. P.S. : This has been discussed a few times on lists [1] P.S.2: Please CC the arch maintainers and/or mailing list before adding such interfaces. [1] http://lists.infradead.org/pipermail/linux-snps-arc/2023-February/00689= 9.html Cc: Mathieu Desnoyers Signed-off-by: Vineet Gupta Acked-by: Mathieu Desnoyers --- arch/arc/Kconfig | 1 - arch/arc/include/asm/cachetype.h | 9 --------- 2 files changed, 10 deletions(-) delete mode 100644 arch/arc/include/asm/cachetype.h diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index 99d2845f3feb..4092bec198be 100644 --- a/arch/arc/Kconfig +++ b/arch/arc/Kconfig @@ -6,7 +6,6 @@ config ARC def_bool y select ARC_TIMERS - select ARCH_HAS_CPU_CACHE_ALIASING select ARCH_HAS_CACHE_LINE_SIZE select ARCH_HAS_DEBUG_VM_PGTABLE select ARCH_HAS_DMA_PREP_COHERENT diff --git a/arch/arc/include/asm/cachetype.h b/arch/arc/include/asm/cachet= ype.h deleted file mode 100644 index 05fc7ed59712..000000000000 --- a/arch/arc/include/asm/cachetype.h +++ /dev/null @@ -1,9 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef __ASM_ARC_CACHETYPE_H -#define __ASM_ARC_CACHETYPE_H - -#include - -#define cpu_dcache_is_aliasing() true - -#endif --=20 2.34.1