From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f74.google.com (mail-wr1-f74.google.com [209.85.221.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D895343D67 for ; Fri, 19 Dec 2025 15:46:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766159180; cv=none; b=p9FgSDdpCOSD2GUyymMUuY8wXpIGYskUx/Tn1RZFPjLi31PpKE1Qj+L9t37CV/mjNv+EgMHTL5gpeV7saampxPN1g/gal91UkdvhgmBubLkHhhkz9w4gpIEa72XjilAnb8SRgpxKrbvzRVWZ3gcsxaJ+UsxK/wi8WUB93kdPg5Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766159180; c=relaxed/simple; bh=UEZ87BxP3bpICDcmger+CGP9yO2gKJF9FSIT7SHC+TA=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Z+dTzTVVRW5nDZmFhyVmy6aT7BvY569B14FEgEA8VQvWo+Gj35LSN25eKkU+oGsE6gIahS8fjfX6EcKGMYCjMpuHA4QZJw2le6zOUUL4xT6ayswQq62W/qMpyD74s/7H/9acUqd/NPIs0NEVI2r9ijvF4D39HRH4HR4D7uV6BjM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--elver.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=20xkXXuA; arc=none smtp.client-ip=209.85.221.74 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--elver.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="20xkXXuA" Received: by mail-wr1-f74.google.com with SMTP id ffacd0b85a97d-430fcb6b2ebso1119390f8f.2 for ; Fri, 19 Dec 2025 07:46:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1766159174; x=1766763974; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=GzqxblqNylMZssrhkzyYMNb717UQfTl85zNKlM2THvo=; b=20xkXXuAhACSentUBjEFwtAg+/OPXumpmh1MGs2zcpLZqfjv1WIaoHLMDEIQRb5C6e 6Ut7UPEwYmS+2PSh5nVQNlksCPgJQw0RlfkQCLkgbVCMeTZEw7vr7emat5d9X11CWuLc umHOgN4R5SlQPLCelwmxJ9vdMZvDRxwpqIz1R6sM4FTSLz4efpjOQy0wOL3QeR/wrm1q XYcpBUDNRp5lF3JOLl/xMeYkxYxfhRelWta1hCs1Z264sjy0M2vzrI1Pw9PD5zY6r7L1 J+o/Zluws6fXB1GFwNEBgFTidsvdF5EfX90lrvitpLRo/7rBexsfGp51lTW5wWYu9tiP 5QdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766159174; x=1766763974; h=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; bh=GzqxblqNylMZssrhkzyYMNb717UQfTl85zNKlM2THvo=; b=j0o7rXaroMOSYVgjgCgfFUf5tRLY/qrAKQ4HBfAR2v3pzQrzWZcvWd+Jst7cCt+CIt OzH+9xSZ+vG4YdhDOzs0zkKumFXZyUxY4sIRAHApcNd0ZffnHbLMh2c+j+AOipY9H3f2 xUN7qhbPQCVx1eGpgNOsvvWWeMO9y0IPnK/ZgZtJFPqiua5F3VfcQ5938Jcx1YbtU7BS hin0N821PNzQ2dWOePn7XFMAwZUoZMW3nGcrX1pUelb47Aj0CXCBKXBDrW0BOJ4pjS/R FHdeoqBR0U3OzsTo6qYWoQLt8rmosNZE1pvACsb6vGEz3n0HGSPDAM1/BwOa7KkB+c0R 3oqw== X-Forwarded-Encrypted: i=1; AJvYcCWLH5JZAHs9kZXdn+bu9EHVf3iz74gaTwxLbZkM3pMV0k/kCvDO/Z91S4zRdyAOopIVdD0rnR2OED+Gv8y0I+KEC7ffORo=@vger.kernel.org X-Gm-Message-State: AOJu0YzmUNZbapQkBh1oKtAw9Xb+FEwQfN9z7qBgA3ld91btfTLK6j3d RIVpC9Ly54XvQs+r4Ig9gk/B0tbLwUw2Bl5VfGHtC1n2Uc1byTy0GpgYLKjF91NnI/v9eSoXKTR lCQ== X-Google-Smtp-Source: AGHT+IFDBzha0VLOsownpeE3/oX+GYClWE/LTUckt6t3nGkH3udhxqzAfrWi3SLQ1c5sHOt4XQ+QWDn3uQ== X-Received: from wmqn17.prod.google.com ([2002:a05:600c:4f91:b0:47d:1d7a:6d40]) (user=elver job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:c494:b0:479:35e7:a0e3 with SMTP id 5b1f17b1804b1-47d19582aacmr29774555e9.30.1766159173561; Fri, 19 Dec 2025 07:46:13 -0800 (PST) Date: Fri, 19 Dec 2025 16:40:01 +0100 In-Reply-To: <20251219154418.3592607-1-elver@google.com> Precedence: bulk X-Mailing-List: linux-security-module@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251219154418.3592607-1-elver@google.com> X-Mailer: git-send-email 2.52.0.322.g1dd061c0dc-goog Message-ID: <20251219154418.3592607-13-elver@google.com> Subject: [PATCH v5 12/36] bit_spinlock: Include missing From: Marco Elver To: elver@google.com, Peter Zijlstra , Boqun Feng , Ingo Molnar , Will Deacon Cc: "David S. Miller" , Luc Van Oostenryck , Chris Li , "Paul E. McKenney" , Alexander Potapenko , Arnd Bergmann , Bart Van Assche , Christoph Hellwig , Dmitry Vyukov , Eric Dumazet , Frederic Weisbecker , Greg Kroah-Hartman , Herbert Xu , Ian Rogers , Jann Horn , Joel Fernandes , Johannes Berg , Jonathan Corbet , Josh Triplett , Justin Stitt , Kees Cook , Kentaro Takeda , Lukas Bulwahn , Mark Rutland , Mathieu Desnoyers , Miguel Ojeda , Nathan Chancellor , Neeraj Upadhyay , Nick Desaulniers , Steven Rostedt , Tetsuo Handa , Thomas Gleixner , Thomas Graf , Uladzislau Rezki , Waiman Long , kasan-dev@googlegroups.com, linux-crypto@vger.kernel.org, linux-doc@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-security-module@vger.kernel.org, linux-sparse@vger.kernel.org, linux-wireless@vger.kernel.org, llvm@lists.linux.dev, rcu@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Including into an empty TU will result in the compiler complaining: ./include/linux/bit_spinlock.h:34:4: error: call to undeclared function 'cpu_relax'; <...> 34 | cpu_relax(); | ^ 1 error generated. Include to allow including bit_spinlock.h where is not otherwise included. Signed-off-by: Marco Elver --- include/linux/bit_spinlock.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/bit_spinlock.h b/include/linux/bit_spinlock.h index c0989b5b0407..59e345f74b0e 100644 --- a/include/linux/bit_spinlock.h +++ b/include/linux/bit_spinlock.h @@ -7,6 +7,8 @@ #include #include +#include /* for cpu_relax() */ + /* * bit-based spin_lock() * -- 2.52.0.322.g1dd061c0dc-goog