From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (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 536E6318B9B for ; Tue, 11 Aug 2026 06:34:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786430049; cv=none; b=VQiznvTmXeoxFK3CM4ZUnYgQQERSsyf5vtten5iIQYaCdA7rQQKz258+nYycFN6WQ76Vj9i/pGi/RKvmG7hEDK4+z/cqkYfDSbjT0HIweZyk4fk+iiP415nRyD3FKZO/jgwTBqC1RvIQ+FpUsrHJrhiVOoCmg55yQpElGsgIg4k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786430049; c=relaxed/simple; bh=+7GhGXLEGPUz5iGB4uoeLstXKais/dJAz3maZh3x0CM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qkc6OUo1yMRoNABMsiFB8vVgI9Cw/P+6aK9cNqU9m9T4TAP3mf797WhlGXVVGSl1usrRS71nIS4V9J33xI+Q7XkZVegzEznmVy8tBe9IvFIIG/Vw4j5TKMT6ITUI+z8ZnmpBYjD8kaSBkhxT36O56VsqKcAcrR24+StcgxK1vsk= 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=KqkOomWa; arc=none smtp.client-ip=209.85.216.51 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="KqkOomWa" Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-38fdeaed181so3497796a91.1 for ; Mon, 10 Aug 2026 23:34:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786430048; x=1787034848; 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:content-type; bh=e7G7fEbJZ8y/XNupU9AJh184DDjemZTaOluaGNPD7bk=; b=KqkOomWaZHhGP2eKrTA42W7qVaKBCgN+ZGqFOqfdlHlc8Y4giHn3Ekij1WAGqxVMEN DnUoPwA919IwvfQ0rbb2BxJrZmtssTzOwEorwDwAmTo+atTULLy+JDuzfiX5wq381IvO vP7XdTtyYmBoCag2cKFk9oKcD4Uqvbtv/jJkHpPz+UzY1naabHtClOKURMwxX9zZH8xB 6DaP8eErRt7rf2GhOFR6vPZt4MqJOxeRg/FKEMXsNPOOE8XDjPV37BouRyCAkk9JMoHb g1Ar4lLCel6OpN1nS867Ygl35A/xIoJeFrjX35+lLiQTflEWtXHXMgmRQEVbnJFyZPax NLIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786430048; x=1787034848; 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:content-type; bh=e7G7fEbJZ8y/XNupU9AJh184DDjemZTaOluaGNPD7bk=; b=jQbCGiAwc00w8/3aITE4EDZfLCIzyqvWjJuj6gqOFqGGCCZfuFoiZntbXpYvSHpmk/ 1+NliS77sGSaaj0FhjdgeYqOd2oDX2NwwmxQw61ZIWW3T9TSOqQn/1/7d4i5Z1Dl7jff 2fv40OEc/l+fGjjN5KMJ7CaApDXl3uXcpiNuzXT6fcn4TAQzKEOqUQAyL+JzAxKjFay1 DUtvHsVPI7bjckKbpB3xdvCdIKlgTRNLSms5Oz0SrgBtZxcBIxrzK9XEejITCFIQglLG 4jupV/2LxbmWKxc8RTcZI/3NTeonp3bb7LVLIfMijtbCH1nqCPJZCrCDmqNG2r84BxjO 5QoA== X-Forwarded-Encrypted: i=1; AHgh+RrBPmAFZXN3Ij3vIvskArLsc5perPcHGu35k7hK5VCWonMqD1AzvKmFI1Wo8NXwdGkVJKoSDdvRJFlUKiw=@vger.kernel.org X-Gm-Message-State: AOJu0YzslsTCA4FmS0ZQc/6l32J1yq3feBHE/uaDtI9WaUMNzDQBhgEP 15wz6Xrz/MvL4tRDAunj3Wr+GAd9wGS0HtO4V2VpfaPiXYrVujLdRMAu X-Gm-Gg: AR+sD13KFZ18WOLZMWMX6oV6LNOvBW7K/Z+Xm75uoiQ96LOvuoQdXyv+4fR4snAHeg9 0MB3A/kEHZmqT/sCggXylLptzdx/RtcGDUxYxfBbEXMhLMnRYO51NEFb7R+UkJHTdVe+hvbKNDC +kwVXvNzRm64f/+cwmrAUuBkoGpGPDYEBaVKGI01myH8j7fgHcWvCsJnFazna69C108tx05hDjG As02+cAUnQhVOzXBE8HRBlcQ4rsCuhleV3OOIDCz8qriBn6iLNom+ihdeFlna+pp0zlmJN1xU5r 3qwUpOZqDFu7oprixp8XkV0FiYBXmnfxoRFvzf10t//2aNQCL/j91hsbLuS0uXyUccG1PhNmeZI ZlluylDVudwZ0+JZdradBlH9JA4w/UgjIyHmLFLfYks3z18qOfYYuvQ0nCa6P6xaJf7cU9g936F OMVqtfFhE+AJKokSMjltleGkQxEItu4WoBaZJAgLS7BaIzL/qsRsiAyYBWx/cz78mSOQDydrU+B qYL3R09pnIZiBt+bhkfjSvOPwyOLqyvkGoIJk8sIQ== X-Received: by 2002:a17:90b:17cf:b0:38e:6aa7:68ad with SMTP id 98e67ed59e1d1-392ec33737amr923917a91.5.1786430047553; Mon, 10 Aug 2026 23:34:07 -0700 (PDT) Received: from li-1a3e774c-28e4-11b2-a85c-acc9f2883e29.bl1-in.ibm.com ([129.41.58.4]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-392d537d905sm2248330a91.14.2026.08.10.23.33.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Aug 2026 23:34:07 -0700 (PDT) From: "Mukesh Kumar Chaurasiya (IBM)" To: ojeda@kernel.org, boqun@kernel.org, gary@garyguo.net, bjorn3_gh@protonmail.com, lossin@kernel.org, a.hindborg@kernel.org, aliceryhl@google.com, tmgross@umich.edu, dakr@kernel.org, daniel.almeida@collabora.com, tamird@kernel.org, acourbot@nvidia.com, work@onurozkan.dev, nathan@kernel.org, ndesaulniers@google.com, morbo@google.com, justinstitt@google.com, cmllamas@google.com, gregkh@linuxfoundation.org, mkchauras@gmail.com, paul@paul-moore.com, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Cc: kernel test robot Subject: [PATCH V2] rust: uapi: replace direct asm-generic/ioctl.h include with linux/ioctl.h Date: Tue, 11 Aug 2026 12:03:45 +0530 Message-ID: <20260811063345.685884-1-mkchauras@gmail.com> X-Mailer: git-send-email 2.55.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 rust/uapi/uapi_helper.h was directly including instead of the proper . On powerpc, pulls in first, which defines _IOC_SIZEBITS, _IOC_DIRBITS, _IOC_NONE, and _IOC_WRITE with the arch-specific values, before falling through to . By bypassing that chain and including directly, the arch-specific overrides never ran first, so when other headers in the compilation later brought in the full arch-aware chain, Clang saw those four macros being defined a second time and emitted: clang diag: arch/powerpc/include/uapi/asm/ioctl.h:5:9: warning: '_IOC_SIZEBITS' macro redefined [-Wmacro-redefined] clang diag: arch/powerpc/include/uapi/asm/ioctl.h:6:9: warning: '_IOC_DIRBITS' macro redefined [-Wmacro-redefined] clang diag: arch/powerpc/include/uapi/asm/ioctl.h:8:9: warning: '_IOC_NONE' macro redefined [-Wmacro-redefined] clang diag: arch/powerpc/include/uapi/asm/ioctl.h:10:9: warning: '_IOC_WRITE' macro redefined [-Wmacro-redefined] Fix this by replacing the direct include of with , which is the correct arch-aware entry point and already maintains the intended include order. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202608050618.9dekfjtF-lkp@intel.com/ Signed-off-by: Mukesh Kumar Chaurasiya (IBM) --- Applies on linux-next. Change Log: V1 -> V2: - Put the original warning instead of trimmed - Put the base repo after "---" V1: https://lore.kernel.org/all/20260808032143.2767112-1-mkchauras@gmail.com/ rust/uapi/uapi_helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/uapi/uapi_helper.h b/rust/uapi/uapi_helper.h index 86c7b6b284b0..489748ef642c 100644 --- a/rust/uapi/uapi_helper.h +++ b/rust/uapi/uapi_helper.h @@ -6,12 +6,12 @@ * Sorted alphabetically. */ -#include #include #include #include #include #include +#include #include #include #include base-commit: 3d08ff75a47a3e7e2ab45a3bcab6723b4d906422 -- 2.55.0