From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.69 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795587408; b=mAey1xyH61cy1BG0ZuQ38nS/ZvkTcmyWlW3AtU9jbe0nyajzGeUveN+D3ucVOA9mexpu R8epbcyXpKL/6hpwbrvZP/0O21CeOrjYjFeMMbjofJx6TmNe9bpqc5KtgppbUQduYdQha ynJ7/kciOA3aG7HOGG6bk8+kMF2dFtuihv/9HeJRsO0+r8vdpuP98hAU5rdNevdUcqXzZ ocGszZ4jYmLhtuelyuN4KnAAeWH0ZM07J27tjvloRbkicSccgwx9oU9QJr9p/mIdAmRzj NApPkQBnl7pOK9M0RfM77cVZFvTc2E2nibUkQhAtsIypEsuRomVlZD2R7lGenNenF7w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795587408; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:X-Mailer:Message-ID:Subject:From:To:Cc: Content-Type; bh=XJ5Bj2HUeqnSIN+0jmezTl4ea1LIGCfrIoPbd+y7XVY=; b=evQNUGGr1om/Kj98+g1+hUhDzP8+sFilR5MyCjr+orpahOQTm38oD12Z7BFRYsFFLE1g fGBI6QvLa/BXBAYMhNh8+iqNs0amrGjSmsMi6sfFhlMb3vfPUwAaPFxNoJFtAsU+PvX8l lVRK/KIuBK5NzVxlfTqNIoa4W95q/1XGzxZ2cNkRQ+FI7KOuGkV77EptS1701XkzexYjv M7r6a7pha1I9QCXIXzAZNA3fIsA1irMSsMLpktj8JfO69X51geDFajfwLJLS1cfuwxm60 zXatyI/cWgnrvPk/18QMQE9a5d4gnQrOKcQxpFqBp3xDYrmQ8KCl2oSRA+eUR51SAWQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=A2pTrFMJ; arc=none smtp.remote-ip=74.125.82.69 Received: from mail-dl1-f69.google.com (mail-dl1-f69.google.com [74.125.82.69]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A2E6607AC00 for ; Wed, 25 Nov 2026 06:16:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4A2E6607AC00 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=A2pTrFMJ Received: by mail-dl1-f69.google.com with SMTP id a92af1059eb24-1383723dfddso5633017c88.0 for ; Tue, 24 Nov 2026 22:16:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1795587408; x=1796192208; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=XJ5Bj2HUeqnSIN+0jmezTl4ea1LIGCfrIoPbd+y7XVY=; b=A2pTrFMJIfsCkS+FQGT671ur2Mpg3phgQVSo+9pmmEK/kDi+RicDzAm8UjcOxLv9DR AybPZBi6Y+YuhtClXyN8ZamlY8PXM6mVORzZnlcdPtBI66DKDm+UOEGp8v3ddu6/1DVA AfALevxeVBpIYk00sNHVb/r2xPOvmgJa40SuT81YOoeNUveMVAen4g2b/P9k+UNw758h poWfHwmbONsayWFaGylPvNwzADThwwn2Bp6VGZ1uhkk2EMIxxS/tMKL3J/0N4CD7GJNo FHP7/p8Sm0bKjfes0PV8ZmvMVRV9GvtY26teD+BMwZqA/z5VrrQsXD91XBVRa4JR4Gqe p3Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795587408; x=1796192208; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=XJ5Bj2HUeqnSIN+0jmezTl4ea1LIGCfrIoPbd+y7XVY=; b=lD97lfEDuzZWmpJ3jAHLK15U+URzNR3qz3jG+0kd3zzalhArq+A1LnczpizeafrqAo DD0TV60G/7OtThP6Xqzjj0moihszsycYTXrIUzp6jaiDPeKpsJR07+u4Ihdf3UYHFGzZ neuaLHMXYXM+po82YdY9PdQkl+fEeIz3mkGW4pz+mIBnkamg/I9hybsswZk91LxJ0fo+ e3pn/yrCjgXERYY0NyFWoLf60614O18p8VMTsidWOSSGrKzopx4WZijQ5WkbGxQsaCmu 6Sg1hrGHEstoLFuJIOkHuAiA0C+H85QKhbiwUG9jVvJ8OMgvFZR8LgcXfuVW11NnsWAN T5wg== X-Forwarded-Encrypted: i=1; AL+hErH4UqzcoP32vpgt708mCM3ROxVnipd1Q/PKpqpDmURIBK6E1R0t4iY1VFGQDxbBqx3/5R9c1BbEcIYaxlOp7w==@vger.kernel.org X-Gm-Message-State: APuU4Z9djBxNnQK1gJrI7Z6QQLaQtNs1H3ISP4jR7BQds/2oOkSSneAZ wmwYgiHCjW5mC0rj6PWct5xv/T8H4MtiWQfMo2Os29mQMhz8efBE/aAeXEgTO1i6hkENhwvccsi JdlOPvhr2Ww== X-Received: from dlar8.prod.google.com ([2002:a05:701b:21c8:b0:1b5:345d:ed30]) (user=irogers job=prod-delivery.src-stubby-dispatcher) by 2002:a05:701a:cc88:10b0:151:6e80:ba7e with SMTP id a92af1059eb24-1b5567dcec1mr15970822c88.4.1795587407220; Tue, 24 Nov 2026 22:16:47 -0800 (PST) Date: Tue, 24 Nov 2026 22:15:18 -0800 In-Reply-To: <20261125061523.1540234-1-irogers@google.com> X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261125061523.1540234-1-irogers@google.com> X-Mailer: git-send-email 2.56.1.831.g720f3f5937-goog Message-ID: <20261125061523.1540234-26-irogers@google.com> Subject: [RFC PATCH v2 25/30] tools include: Add linux/uaccess.h stub for userspace tools From: Ian Rogers To: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-arch@vger.kernel.org Cc: jpoimboe@kernel.org, rostedt@goodmis.org, peterz@infradead.org, mingo@redhat.com, tglx@kernel.org, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, catalin.marinas@arm.com, will@kernel.org, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, linux-riscv@lists.infradead.org, acme@kernel.org, namhyung@kernel.org, linux-perf-users@vger.kernel.org, mhiramat@kernel.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, bpf@vger.kernel.org, nathan@kernel.org, llvm@lists.linux.dev, nsc@kernel.org, linux-kbuild@vger.kernel.org, ojeda@kernel.org, rust-for-linux@vger.kernel.org, ardb@kernel.org, linux-efi@vger.kernel.org, maz@kernel.org, oupton@kernel.org, kvmarm@lists.linux.dev, shuah@kernel.org, linux-kselftest@vger.kernel.org, indu.bhagat@oracle.com, jremus@linux.ibm.com, wnliu@google.com, dylanbhatch@google.com, Ian Rogers Content-Type: text/plain; charset="UTF-8" Add a minimal tools/include/linux/uaccess.h providing a no-op might_fault() stub so userspace tools under tools/ can compile shared kernel code that includes . Signed-off-by: Ian Rogers --- tools/include/linux/uaccess.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tools/include/linux/uaccess.h diff --git a/tools/include/linux/uaccess.h b/tools/include/linux/uaccess.h new file mode 100644 index 000000000000..5a9e6bf4cfb5 --- /dev/null +++ b/tools/include/linux/uaccess.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0-only OR MIT */ +#ifndef _TOOLS_INCLUDE_LINUX_UACCESS_H +#define _TOOLS_INCLUDE_LINUX_UACCESS_H + +#ifndef might_fault +#define might_fault() do { } while (0) +#endif + +#endif /* _TOOLS_INCLUDE_LINUX_UACCESS_H */ -- 2.56.1.831.g720f3f5937-goog