Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp38200lqh; Fri, 3 May 2024 12:35:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVNQKl9N362QSTgsSADmwHQlCJxlux7lvQOhJmFpPpztYq+Fi5tY0b6ngLrrrI+/HOp/JPAjYrmPf1Kjxxyioj3RU/TEvrVd9gbELDVqQ== X-Google-Smtp-Source: AGHT+IHFz0N5vYhbA4Nh90PL0pPhOzjhWzbU2hvTuZKdK+sgeD1rB0CL8OJWPZ18HcMZHnzRyPo/ X-Received: by 2002:a05:6214:4015:b0:6a0:a4db:b297 with SMTP id kd21-20020a056214401500b006a0a4dbb297mr6368982qvb.23.1714764903445; Fri, 03 May 2024 12:35:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714764903; cv=pass; d=google.com; s=arc-20160816; b=V+znUBdg6t6CTBxSUvBCoVk3rCybnUgXQnzPzJSQFGrJLvUbUYJGY+qOVLrsZboVMZ NrbXkNgNWLpzfijv7t8qYBPet2XKRm9XMlGi911CpeaRSMdSC1D1cnJdv6iHyf26UNuL Q28w+K4NijXYgt726B1wd3RfkfU62WD11Ihsw1Oz6yC3Qwy17lRaN+21c8MRKg7lTytO fC6aBBE2GnB/X3vFqD6kV24YRY5L06J8J8uG4tG5fYW2GlL+Zyypaci1EFb1Z98nm80v Q0vMU5na6CAYuyjiTTEB6l/WLxvQrqkylAoWw5+tAtXavBwaTEnZrRxW0unuNf8jy+Ya uN1A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=miihCwvzsWti5H/aziJQQJwZEV59oT6FVoAAjQJ/FoY=; fh=BgA0Wca3bl2dvrNgvp/o8Zg+5Zc1wim6RpKZ5PI2SpA=; b=NisSGpPUVGUC8jNQyDiG+dXV2DAOhD/l67nfPnXcNzhvHRbWf2T0BCvsnhz4cGopv2 ZOfyP6MEQPi3ZfvwsbXoVkBMjhPMc42X4Me2vBpi7FEdfZsKkeYYT/GNaR5CEKhEgWq+ 7l4EPYah5T1MxlCxE44O0UlgtquMY/Rm4Okq5OraecRf6+zCzESCqglEv5QjKFZjfhoj 0fB9c4cBvmztaDLkjBLNSsUMuazP/q82BXAJfX4RcGXhGJvnK5gHYXr4knZHwSax7a6C +1uarijhuTMyjTp6RS5ksoK+8JE6Pmk79r6+CMiAAeY98IxNK0Zc6VYJbOXdoppdbKTe T42A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=XMnBcTJK; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=CPxN2IkV; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-168139-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168139-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z18-20020a056214041200b006a0ce3e7fb8si4004877qvx.220.2024.05.03.12.35.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 12:35:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168139-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=XMnBcTJK; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=CPxN2IkV; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-168139-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168139-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 316731C23B94 for ; Fri, 3 May 2024 19:35:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D74F158A04; Fri, 3 May 2024 19:34:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="XMnBcTJK"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="CPxN2IkV" Received: from wfout4-smtp.messagingengine.com (wfout4-smtp.messagingengine.com [64.147.123.147]) (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 F171E13B593 for ; Fri, 3 May 2024 19:34:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.147 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714764897; cv=none; b=FdY8TTOaq7uwYuqXne1AXefDuF6NaXytEv/XqIIhy2UYEGzOkHYvIJ2GlKyODpTM5Q1AdDPMrdMtGU6ZasB74xDcpkm6M3PKigL2js7Rl/cmJyTpMTrPhV79qa/n9Sc6BO8TLP+nX/nhhqwKZW50ccIZ9XXL7010rsYxsYpYav4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714764897; c=relaxed/simple; bh=4OSCQtExy8HDG9vzT7OzvTAzSTFKGqszq7wFXETz4sg=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=DlIoTK9wAIq7rTT9gzxUPSvLBuo2Q+WBlS35ari05XbWfDyEzcKAW+F2bLT0RsnpVVPunGaZ8Tem7U7p8Lc/MIIacewC5+3E+PiBUNjKP/mP+G3xFPzcVYViUtpSqURfj72WiIWUclD1A8WBLb8ZFxZ6NnUW9gFBGUFHY2jyIto= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=XMnBcTJK; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=CPxN2IkV; arc=none smtp.client-ip=64.147.123.147 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.west.internal (Postfix) with ESMTP id A856F1C0008E; Fri, 3 May 2024 15:34:53 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Fri, 03 May 2024 15:34:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1714764893; x=1714851293; bh=miihCwvzsW ti5H/aziJQQJwZEV59oT6FVoAAjQJ/FoY=; b=XMnBcTJK6WsK8VnpK9FybXx/lc MANr2mIMS4jUyBH3rA2/deUKa41SFOllmTMDwhhmPTNEK3zMZz+Q0AZJ3IRzLuLF vYxF74S9idutLcRT5zd90CcdyhneGxCAw6f95CqM8FwwtGuV5Qe2XZQPWsuLbiDR mfdlU7AonokQRHKmuznwSMlxMn9K0aDsGc+u9cFUK/dt+M6AkQu1o99XqrhlPNnx ZGjdTMVAnMlOPsuEseEzaLZryslT8Ij72vYnMVrHGPln4lrrjf4manOjvCAJGLfA T6DAGaBwIsxFGGmE4aRVZUmdm4hay10di3dQ49ZPVS/2W0U9km7zO1Wyx8SA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1714764893; x=1714851293; bh=miihCwvzsWti5H/aziJQQJwZEV59 oT6FVoAAjQJ/FoY=; b=CPxN2IkVcXUYwd4icjzj9Y7e5Ris+38L/WrSmjwFpqs/ GGm/wVBu7YnlcdSaYGLxVEljKiktURHUu5GC/3UublQcMsdCT1p9rvnkfTDWLw0v E7tUsCNoBgimK3hG6QK/mSTuFCAiwpK5Dn/3XtbB6GBxJd51AL12s8GCe/e89aeR OmRoU+hPKqhEHKVESS7Cj0XKwd6NKxvAq+6I2gWnqUTdJIXUlQ4doRahUCxDF2E2 JkzYXG9ooK03ZIna8g61caFOahrv2Mbh2vHNuQBF+WfLUbW5GmaKU3o3dCsDk6xK aKneskem/dT5woD5rd9MaOgyMc5W1bngaWguIVsGwg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddvtddgudeflecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedt keetffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id E7D63B6008D; Fri, 3 May 2024 15:34:52 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-417-gddc99d37d-fm-hotfix-20240424.001-g2c179674 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: In-Reply-To: References: Date: Fri, 03 May 2024 21:34:13 +0200 From: "Arnd Bergmann" To: "Andy Shevchenko" , "David Howells" Cc: linux-kernel@vger.kernel.org Subject: Re: compiler_types.h in UAPI? Content-Type: text/plain On Fri, May 3, 2024, at 20:57, Andy Shevchenko wrote: > Hi! > > Today I have stumbled over use of __force and other compiler_types.h related > things in UAPI headers. Can anybody explain to me how do they suppose to work > outside of the kernel? Or did I miss something obvious? Or it was a mistake > during UAPI split to move swab.h and byteorder/ (most of the users of those) > to UAPI in the first place? These get stripped out by scripts/headers_install.sh during the 'make headers_install' stage: sed -E -e ' s/([[:space:](])(__user|__force|__iomem)[[:space:]]/\1/g s/__attribute_const__([[:space:]]|$)/\1/g s@^#include @@ s/(^|[^a-zA-Z0-9])__packed([^a-zA-Z0-9_]|$)/\1__attribute__((packed))\2/g s/(^|[[:space:](])(inline|asm|volatile)([[:space:](]|$)/\1__\2__\3/g s@#(ifndef|define|endif[[:space:]]*/[*])[[:space:]]*_UAPI@#\1 @ ' $INFILE > $TMPFILE || exit 1 Arnd