From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (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 1AF80304BB2 for ; Thu, 7 May 2026 23:50:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778197829; cv=none; b=AZXqrN6W5P/xhHzIlV90QNI16J5bJ8/UqI501GEEWMRFsX2KmPQg/gcuRuqwwjokV/mO2rvId1MxZaO7RgfPRoDJpcb2zErrY6SunQN6oAz6Tu/cm7qitI8dAtMf6a6eeVZiGcVub6v/ghlsvv5Hjuq3Up7aoXSnfUOwOgHJDqY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778197829; c=relaxed/simple; bh=073lgMhvjqclFH0EuFFz9TjdG45UkQ6Q2ldEN4q+umQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=g5LvCIigXyy3VowxFTjpf3HfMKDbeQy4dulJ0pX/BY5vhV4oyHt1Z1n72tHAUqlwGVJfzAjlgffKZduEYJG5cStwtop4ocYbzaQZXzSWzHipdLpfunBt5VBX//fgB3ZMELYBitcJG7AHz1tOwZvOad46foTlevkVqJkhvLt9x5o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=TY9Tw92w; arc=none smtp.client-ip=209.85.221.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TY9Tw92w" Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-44a14580111so1082823f8f.0 for ; Thu, 07 May 2026 16:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778197826; x=1778802626; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=kpF9qxsJ2ZNxYIIifs8ofBMQ7yvnZFOLxS/oCrWEgcA=; b=TY9Tw92wh2llyXLA6+0anjYWZxGnFWZn+qiZ2GwdPtvIeScuF1QPqmjQ8q/bgq36Lx Dc14TPRcEtS3xD3teem+DDQh3tLO8a6SHQVW0ODfunmy02/EqrmI3T995cciut6vTQCI 607QB0pFMSTfxaruiyaSYGSF2ONbfsbDJVNAC6JbYqVhkIoKEOhDiU0iiYiyn8tVHe7O MjlWZiRfImF8kzqX9zil3/gxDZMzmPRdeLrp5Cd3ECTkSYsh3QuUZQRmxvOCXRwnVU9b DeeGeZltQbMP+5h2suSaR0CoTW+y933OoiQaIrvtC+n2KSMkIAasdS3QfjZMAHUrvB9R gNSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778197826; x=1778802626; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kpF9qxsJ2ZNxYIIifs8ofBMQ7yvnZFOLxS/oCrWEgcA=; b=RIJ/FhZ9CDI5Q3zjeA110oj6APUl8G2mArPzvWlt5EiecAwqclC9m5eHMLO/xFThiA 05s/bDPC/4U9aFpZ7OL/CfjIXtvDF/odzqBjFtwOaKqFdQVoho7hi9uUHfRuZhLPWGR3 cQrtznpJha24dY1Qhd/gkw+Cz7VVqkoUkz6h8mHNopEpkOWoEzQ7WAHmDrOTXzhBwrmb LsEdk2pFtYdVYOnttea0pV7LoBhsaO80fpmm2x7+MWn9mVlrDLnHfYRFvf1lcnPnr+XR SkxRFxfiLyCUBtsvqDLm8YYvLXE3gnyS9BD8Amf1nS0aeSP2iFG+CNt/8huO5+YCqSGC 8DAA== X-Forwarded-Encrypted: i=1; AFNElJ/LCovnc21cHZRrrZhGab3e8R3uEln4kRZWjU9TplHlw4Nkz9rnl1qKJbRE8O374CIjIIHtYan5oIlFWAg=@vger.kernel.org X-Gm-Message-State: AOJu0YywtvD/j5JaFT/D2brRyC10R4QH9EIXTqUKUvc3lI5dd5wsvvpv PMtUiNCGhAjfMmfFP6GvmYsiT7fbWAbfk8t82RRC5U0a4HReu0Y3gXLL X-Gm-Gg: Acq92OGaE7t0I9crGGSgCdA82mYPq+2gPp0EISCz1nxwi9wP1h1LGZichlQnkqRtfl0 Ij3fMQGuWV0yuRF2ivJQEcKhVWtxT93fLkL5cYFFMWQw++4Z248wKE9bJF0bDNRyo6jqpiLCJIa WQBe/8x4Q1EY7UIYfafsFMlPa0lblsMwLwApEB+IFcZdWEaOd41WUvkRZ85zusqMTfRejbcwb3E uC6/KILjeWxiTWad+e5Vq4+jH7RJkwCsp7ifnh4KZ/IPidRlrZ7wsOX7h8qVMpf8Ejt4vtPLmEY Dwm/GF4wk75PNQYqnu7SqQlNeMVK5UywyaP8GuodS4egGQ7xz8inqSdKxcfiyv68Fy16oti2tZh I9XMqdGad1PL94baAwUByXresXokE63qqM54IZjAXYxbakX+jLNSKt44kJ9hyOOBBYGkTgRulti Ci0aEN6I8J7Yj/VHJAuzYy+orAgPpFLw4dS7Pl X-Received: by 2002:a05:6000:40da:b0:43f:e452:f391 with SMTP id ffacd0b85a97d-4515b056a89mr17178086f8f.6.1778197826208; Thu, 07 May 2026 16:50:26 -0700 (PDT) Received: from hisam ([2407:d000:508:aa0:8b94:9971:991b:e7aa]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-45417bb84fesm2075198f8f.35.2026.05.07.16.50.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2026 16:50:25 -0700 (PDT) From: Hisam Mehboob To: acme@kernel.org Cc: shuah@kernel.org, seanjc@google.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Hisam Mehboob , Aqib Faruqui Subject: [PATCH] tools/include/linux/bitops.h: undef PAGE_SIZE after including limits.h Date: Fri, 8 May 2026 04:48:55 +0500 Message-ID: <20260507234854.273536-2-hisamshar@gmail.com> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit musl libc defines PAGE_SIZE as a signed int in under _GNU_SOURCE, conflicting with kernel headers that require an unsigned 64-bit definition: include/x86/processor.h:372:9: warning: 'PAGE_SIZE' redefined /usr/include/x86_64-linux-musl/limits.h:97:9: note: this is the location of the previous definition Undefine PAGE_SIZE immediately after the #include to prevent musl's definition from leaking into kernel headers. This is a no-op on glibc, which does not define PAGE_SIZE in . Reported-by: Aqib Faruqui Link: https://lore.kernel.org/kvm/aL8e0MMa4U2-nstQ@google.com/ Signed-off-by: Hisam Mehboob --- tools/include/linux/bitops.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/include/linux/bitops.h b/tools/include/linux/bitops.h index b4e4cd071f8c..62117a77ceb5 100644 --- a/tools/include/linux/bitops.h +++ b/tools/include/linux/bitops.h @@ -4,6 +4,7 @@ #include #include +#undef PAGE_SIZE #ifndef __WORDSIZE #define __WORDSIZE (__SIZEOF_LONG__ * 8) #endif -- 2.51.0