From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-174.mta0.migadu.com (out-174.mta0.migadu.com [91.218.175.174]) (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 C7F76345734 for ; Wed, 1 Jul 2026 07:06:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782889574; cv=none; b=u9i+xMPn28K1x4aec8PR9InH9bqPFTBDbfKsl4/bNETNqp78RsX2s1OOSOJNcFwkCZC+FeYkXUq/HoF4hw3oQg2B/AY1KNTRUVJIdQLFv8145Kwq4aFsXzeawPksjxIN04yWHPtRZq6Gs0CuBIRi4cffbp/naRbkI9hs2xj3ou4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782889574; c=relaxed/simple; bh=5Jbd+A3fNVtNRmkvXJ9lbEGXWGrfXYTPB/dst6xMly0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KwBR4J6ErKNMdB7wqDKo229ZcuWVH6TbgEjDdwYHnCBd0iIpIb2grDo4mbhhkgsnQfObfqja+ISNPpvWq0D0qRerTSDKxQTpR5oRq5P9gA4BxPZVKKxBI7LLV6ON8hW3AS3wROfhkohhf9MLwmTBVLGER5M1K5lSUYcBkp23Dcc= 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=J1kmlDec; arc=none smtp.client-ip=91.218.175.174 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="J1kmlDec" 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=1782889570; 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; bh=kxBmRvgMP48EK3+/LfDxZ6AaqbYKHlj4L9obdwP4/j0=; b=J1kmlDecxpxjDMDges9o/mHkc8mzqNqqV5YB9eKQcLRNTsi04NsL5sSfMMRqQkw3EklHgF qHqfs0zsCbYp6EykWXWojir++ktxPSrzcP4h7n3g4UKd5LlD+ZgHiI/FFhoM1FS99A6Tj6 DNrR2U2erwYFPsIeHLmvdlD/mCuqabg= From: Tao Cui To: Andrey Ryabinin Cc: Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Vincenzo Frascino , Steven Rostedt , mhiramat@kernel.org, kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, cuitao@kylinos.cn, cui.tao@linux.dev, kernel test robot Subject: [PATCH] kasan: include for _RET_IP_ Date: Wed, 1 Jul 2026 15:04:55 +0800 Message-ID: <20260701070455.88906-1-cui.tao@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 From: Tao Cui kasan.h uses _RET_IP_ but relied on , included via , to provide it. Commit 9cbc3d9806d3 ("tracing: Remove trace_printk.h from kernel.h") dropped that transitive include, so files that don't otherwise get instruction_pointer.h no longer build, e.g. kernel/scs.c on arm64 KASAN: include/linux/kasan.h:199:43: error: use of undeclared identifier '_RET_IP_' Include directly to make the dependency explicit. Fixes: 9cbc3d9806d3 ("tracing: Remove trace_printk.h from kernel.h") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202606301759.hTqHaPuI-lkp@intel.com/ Signed-off-by: Tao Cui --- include/linux/kasan.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/kasan.h b/include/linux/kasan.h index bf233bde68c7..d5159c8033e8 100644 --- a/include/linux/kasan.h +++ b/include/linux/kasan.h @@ -3,6 +3,7 @@ #define _LINUX_KASAN_H #include +#include #include #include #include -- 2.43.0