Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2947628B4FA; Sat, 12 Sep 2026 08:54:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789203276; cv=none; b=OgwZs+TQpqSOKYnnGJoFkInZuTx4ec0vZJw1ddDulToNkjqwunYZHR+IplVUtb5Y+eIJgAYmwdkYpQx9JKafDQNR2+7AxWjj4LAaBncawTq22HBf+uZIq2UFCLJgUU18uYPXEFGCbcqyUtF+uxlPUE3vJDDLc9XwQLYYOgT6uIw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789203276; c=relaxed/simple; bh=4/JjNP24p+aeV3ND5XyI6nn4O5hX9llAOOMfwmAjloI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JXQtHUTcnKvW7u6M2LnGs9YJwP3bBJk7nnqneCL629HCvz6eAhdq4Xvh7TpaXeaouvvNY7k6Nvr8tQjvkWYVXA+ya3cdyN8eiRgKohcKEoGQ9w8BW1VW0h4j8lTcgapFuye1BeMbayf+r1Bepygs3yWLseaylid+Lb5YaZ6U4gE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RKH+lsmO; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="RKH+lsmO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B379B1F000FF; Sat, 12 Sep 2026 08:54:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789203274; bh=EptI+UkpR3+472LCrcD+EehyU3NMS6CD8SwXbEL463o=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=RKH+lsmOBYdQqdfZd9eDAfWUOTrzhqbXmUwOhOTWWSS1b2hSQIXdfqYhjE9NTd9oe CiXyyZjB71R886Ft1lHMJUSBZmH9++q4OuE3Jq1m/xtMJEICaO5Ze+QM8Zxa7/N0VS EheyjTVOVo5YqjzHd23lN6XOdcQoNS26yUcsYgio= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, kernel test robot , "Mukesh Kumar Chaurasiya (IBM)" , Miguel Ojeda , Sasha Levin Subject: [PATCH 7.2 1332/1815] rust: uapi: replace direct asm-generic/ioctl.h include with linux/ioctl.h Date: Sat, 12 Sep 2026 08:51:22 +0200 Message-ID: <20260912065720.293468037@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065648.999753832@linuxfoundation.org> References: <20260912065648.999753832@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.2-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mukesh Kumar Chaurasiya (IBM) [ Upstream commit cdfcaa36ac93aa96df8310d7e57860f7600b2861 ] 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) Fixes: 4e1746656839 ("rust: uapi: Add UAPI crate") Link: https://patch.msgid.link/20260811063345.685884-1-mkchauras@gmail.com Signed-off-by: Miguel Ojeda Signed-off-by: Sasha Levin --- 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 06d7d1a2e8dab..1c4aa4292dcec 100644 --- a/rust/uapi/uapi_helper.h +++ b/rust/uapi/uapi_helper.h @@ -6,11 +6,11 @@ * Sorted alphabetically. */ -#include #include #include #include #include +#include #include #include #include -- 2.53.0