From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-170.mta1.migadu.com (out-170.mta1.migadu.com [95.215.58.170]) (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 E61C634F46C for ; Fri, 13 Feb 2026 09:53:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770976425; cv=none; b=gMc37w1IZ0v5aqDFCRytKHHGR2afU2AMjWWPgYlSUWAnHijpkWxr4gJ5rrJSyE9+CGUgl9l0QPcPNcGIlIt/o4bDC8accNCA5Dn6dJAOrgcYEGXkqE7fwoiQV4c76xWYbArU/JDXJLna01/n+VfokAjNbq19EZKYsT1ELt0qNWU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770976425; c=relaxed/simple; bh=5HUrXCIsogotE18dSKjKCkP68CSJ9JpohJdtlkRgV68=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ucBt1qpaXzybYL6rrhUUHRpoy6XrRcx8nkJc06WOHpfU8GTQifW5l4SBJ7QdtHLDnoHUvvT03NHKl6V4UnG9pOxNMcYGrvZeNs/eOKr4XuuT4rAAzBm/n/afE/Qhjz//1ypB8iHovjIBBb+VaAajMVfrOzoGv/OKy8lEolTbWhs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=gVpRnejP; arc=none smtp.client-ip=95.215.58.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="gVpRnejP" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1770976422; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=72eoGgJO5ddhbol9MbsMucS0SkPZEg51bHhsJPdTAVs=; b=gVpRnejPyYJwmtliXsmDS6NFLhmTgmFAwznoFyCZajguD1iqJt51pDF9I0GIq6woTomhEh RatFLLyUD2ywFQxggsXxBxmeVw46hWSEU4+WlGo9IFSpp6N99O1AQiKmMoEdT+1o8fL+DX LwbQCLzI1KxgDzkF2C9UoxAjD1DHekQ= From: Kunwu Chan To: Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Alexandre Ghiti , Anup Patel , Atish Patra , Zong Li , Deepak Gupta , zhouzhouyi , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Kunwu Chan Subject: [PATCH 2/2] riscv: head.S: fix typo and wrong #endif comment Date: Fri, 13 Feb 2026 17:52:41 +0800 Message-Id: <20260213095241.399068-2-kunwu.chan@linux.dev> In-Reply-To: <20260213095241.399068-1-kunwu.chan@linux.dev> References: <20260213095241.399068-1-kunwu.chan@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT - Fix spelling: "intruction" -> "instruction". - Fix #endif comment: the matching #ifdef is CONFIG_XIP_KERNEL, not CONFIG_XIP. Reviewed-by: zhouzhouyi Signed-off-by: Kunwu Chan --- arch/riscv/kernel/head.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/riscv/kernel/head.S b/arch/riscv/kernel/head.S index 9c99c5ad6fe8..1618d2cb91b3 100644 --- a/arch/riscv/kernel/head.S +++ b/arch/riscv/kernel/head.S @@ -81,7 +81,7 @@ relocate_enable_mmu: sub a1, a1, a2 add ra, ra, a1 - /* Point stvec to virtual address of intruction after satp write */ + /* Point stvec to virtual address of instruction after satp write */ la a2, 1f add a2, a2, a1 csrw CSR_TVEC, a2 @@ -287,7 +287,7 @@ SYM_CODE_START(_start_kernel) /* first time here if hart_lottery in RAM is not set */ beq t0, t1, .Lsecondary_start -#endif /* CONFIG_XIP */ +#endif /* CONFIG_XIP_KERNEL */ #endif /* CONFIG_RISCV_BOOT_SPINWAIT */ #ifdef CONFIG_XIP_KERNEL -- 2.25.1