From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (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 C0873399036 for ; Sat, 8 Aug 2026 03:22:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786159332; cv=none; b=Wxoxp1p3s1G+psCyj5KudvjqJcqnPzgjMoy7UpS9Wx3DpBXkUMlm0xGA3gRgwibppqWck3CbNGUqpj5033/jPf2Dt9LZyJSh7FUcFTCVbeIWX+1UyvnJgoZ2orei81tquk6KbqthDTTv3v2I9gv1c25ZAVGncoJ/ckbLxHw3Q7k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786159332; c=relaxed/simple; bh=XY92FPm8CgMtwV9v50zUyh6AXSZ6A9wydtKKZtxj/oU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WFWeAU2G+UKyCAjRrvl5AkvxOVakV1d2oY3LIaH80uzqNwKrHZCWGktI9rBQJoFo3EeEWHVtZdtNs6/iseyBS3+noHvVJDo0fjmidJS8k7YzHjA3SD7X7hlakmYp0KCCkbig6mM+x44ygJceT4ECPxjuK8QkGO+Qk4pO6+Fy0l4= 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=DeLONZoG; arc=none smtp.client-ip=209.85.216.45 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="DeLONZoG" Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-38e041ea211so185036a91.0 for ; Fri, 07 Aug 2026 20:22:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1786159320; x=1786764120; 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=mNXfsscFcsBx7GiXXV8Ydg8/2MbO5H0rQoaglQZ91nI=; b=DeLONZoGGqGyYTwXOSUTZG4xcSCqtzXzDmoog3ruSvKv2GG0UmDlTykXPonI+IlpL2 yuJNBg58NSzBn9XNOfZjjrhbgvkgyjCr3ilgwwaYcU27bJAvI1pFgHbiNHPmOMt7gyKv 8JVfloweg0ocqTb9u/6QAhS3usbbz3XVxd2tbPknAFih9HiLccj9HarPfl4HNvlYUNsw NakPBU3+TAPLE+RhCeQjYu6et1VtRgqOw71c5fwCI0MrviBdU04fPSjlheWXRPfGWz/1 Qc3q/PFRtf4i6gNNEkQdHwWJypgj92MgyUef8TcM3MJbIBj7fZhLm16ujPp5Fwn0ZPH0 XKfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786159320; x=1786764120; 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=mNXfsscFcsBx7GiXXV8Ydg8/2MbO5H0rQoaglQZ91nI=; b=M5q+l/SyKBTIuYgV3FEqyputoMybhdFrABfPKYVnQurW312JR1dlmqNZcxDGDrL526 PhW60BVdbGidbV80WluW4RCmq9z+tPZb5lqLmOLQlKikH8DyHEZQdHBPla1IyQVQ6L3X 0ysDfzJMOHsxYNBhDPlEw3bPGPzY+RAp70F1pvQMgG2yRhUSOvbT0gBqt6vl2IHYxr7u vN8HPEw4PWJ8s9/nPK1IrYSUeKn9HOtwVpKoYHURcHHvCBK72bJadYTLUeABskF+ekjj CJIKi/zihwIE0CzTzdIF1zdphJlxKeMdzCHebFRM0bBmAEma/2PCEO/KonPpv65DTa6F H8Lg== X-Forwarded-Encrypted: i=1; AHgh+Rqo/9fTD3Kev+sNWqaYt1eRyyn6Is8IGY8T1gTYYLoxKm+agJeSYqDf1YggfY2nu2MljuPQ4B2Bjwny9hg=@vger.kernel.org X-Gm-Message-State: AOJu0YzcI/e6hyQqI8/un24P793QC7SAUjiDj4VW4yXFzpVN21EO2okm EY4EpD3A6Gw+F2vnqlLNbSzG8RyqP/19WNVINRwTPleooXZ4SR+RDUcV X-Gm-Gg: AR+sD12fItVjJ2vm+ccf9VeMV/+dcyW3z0ZGJAimF0yHYxW4A1mEEX1qG6MQDMRW+TV GczG+cJTjh21tAPJ5dw1EC8qVCEu5DCnRlaGEzgzVsvHERrsPkbnRylz2gvsgzlVi/7wUhAKA6r eQwBv0clpZ0/9KAgNakklHF9wZIuVlALRBD8oJAhDrftAcj0KokIM8Rx4bjwE81ArM1/OmYRQtQ r28+3P5eoft3npEGdDytPnQYxnzlA2paOyc2Aoru4B6aHIUwHo/3lcTuh6lrRD2efTARlcwNuva ZAkxgdkZMG+CRcxjQDoW1m3QbWZib6xEOtFrE0+ZZr7rcLgc4tGpRf3ATcci3sL2JXHc3AE2WnB 6N2nJwE9ZemfIv7Evg/dSmU5QEBA7sJ0islzXmdGusbzl/KBaSys5rxd9DiZm6UKVy/9K5HB/ak ANlKrTNu/k0c6wl6fLfkOmwk2FMiBCax9ZPgv29sfkDgSWc3DVNiuRWB1fyt0qAtVd+0HBLIstc h9d8nau1+M0E9Z1OmScxAs59/WXcUuHs3PylIjYsA== X-Received: by 2002:a17:90b:264c:b0:36d:9e0b:3801 with SMTP id 98e67ed59e1d1-3903c59936cmr29436120a91.8.1786159319550; Fri, 07 Aug 2026 20:21:59 -0700 (PDT) Received: from li-1a3e774c-28e4-11b2-a85c-acc9f2883e29.ibm.com.com ([106.51.166.106]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-315beb8844fsm13817468eec.16.2026.08.07.20.21.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Aug 2026 20:21:58 -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, wedsonaf@gmail.com, mattgilbride@google.com, boris.brezillon@collabora.com, robh@kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Cc: "Mukesh Kumar Chaurasiya (IBM)" , kernel test robot Subject: [PATCH] rust: uapi: replace direct asm-generic/ioctl.h include with linux/ioctl.h Date: Sat, 8 Aug 2026 08:51:43 +0530 Message-ID: <20260808032143.2767112-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: uapi/asm-generic/ioctl.h: warning: '_IOC_SIZEBITS' macro redefined uapi/asm-generic/ioctl.h: warning: '_IOC_DIRBITS' macro redefined uapi/asm-generic/ioctl.h: warning: '_IOC_NONE' macro redefined uapi/asm-generic/ioctl.h: warning: '_IOC_WRITE' macro 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. Applies on linux-next. 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) --- 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 -- 2.55.0