Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp961562ybt; Wed, 17 Jun 2020 19:10:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+QP7pdh2gY8OryXqKmNpHxtdeH41hem3xrPoFUNhnOTGLBDc1KRE4e14QulLWqn8vkIeb X-Received: by 2002:a17:906:344e:: with SMTP id d14mr1889005ejb.53.1592446244747; Wed, 17 Jun 2020 19:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592446244; cv=none; d=google.com; s=arc-20160816; b=AgVosM8kV8lL+hqRFFqLStdV2yEttZs6dQjJ2Q27h+ODfoBBLIl8SYFlrewC/nVIG8 gWKQsTyOOwHX3abbF3+pLExQpDd6OEWlQJLKn/+FvvjQwAc3jAsXFcdihzYG7x1GtnTG Wq9fEBZyvcCZwb7UTOZM13SXVQScS4azGKip/lcfNVq7k8+YO5RXYv9+65GukQaaIqlL 2EgidFeoNarxiYH1LRPakgvBulVdlzARfHVvE7EW7/k8iHIIQZHUD5CsGEH/6Iskgby8 yZYr1prs+UM+6aDLzPhFXjP39l6LZJQ6ZvGt00sXFHyN54xeuskKGdTztvd4UyfklEai ep5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FaWvn+LzUrHwIuJUNTAyXF6UGUzwalmGorSr6oFx2Pg=; b=ZQTNRVjhTgifugrAnyA9NH+Nw3sBZRg9f6vu+I3eTTV3nSyXPKbzI3PNagp/EhWnIG /5BfDCU85joEDdU+Mj7o3jyvnxnsdHiTMprZWrO6KeVp59NjjiUhDyPYaWexoBY5Caip Nv71G6B9NdBDPSe0cpGNjIrHO8cvvbqTRXHrrXTG56L4AKekTCNrepCoWUlVORCxzNiD RSahxlIF+/8BN5NKZJLogOGQURwqPZ9ZKChtV+kWWyiwuIV2blr4cM5y9B/oP+2blxiY q6MNBISzGYQOIquc+JW6xt/Y8jQovJVF36vRUb2l4dlpwTNGO7K7HGmR9UoJSSYFvfp5 m5RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kyiK1wNG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s16si969552ejx.298.2020.06.17.19.10.22; Wed, 17 Jun 2020 19:10:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kyiK1wNG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729927AbgFRCGl (ORCPT + 99 others); Wed, 17 Jun 2020 22:06:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730747AbgFRBW3 (ORCPT ); Wed, 17 Jun 2020 21:22:29 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22188C06174E for ; Wed, 17 Jun 2020 18:22:28 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id n23so5211063ljh.7 for ; Wed, 17 Jun 2020 18:22:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FaWvn+LzUrHwIuJUNTAyXF6UGUzwalmGorSr6oFx2Pg=; b=kyiK1wNG4Lc1N0Lxuahc3vmiBcgTlXg4PJWgxJSP5mw4VmYChXwPMuSZstk/LEiGCy Wqeg2Aokh4FaOjKTEVe9x30C9v7tMTr7LNZz2iCJI5Nh8Liv2/uxRsMncj7yAYUznsNT rauLfl+HFjPm5dxjEnqpV8cTxuJNK0oXK6Ar/JfTFMYx+uIlN6NNeqXukmkZ99Xas6TN mVDPyUvRHnviXRzZG+J/umdq7z4z4bNmn8E26TAo1DA9+9eQ8oc6GjZc6BiXb1T65MqJ BPzITKaqERM550cWLj1oAJSPULjZtit035usTjlJd5F5Ugq4+q6E1JMaNhj/KaSrIGie +xig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FaWvn+LzUrHwIuJUNTAyXF6UGUzwalmGorSr6oFx2Pg=; b=B5WFI/qenH9buOcwZ3OO+Y3sEOUhBATe7I7ctZFVRHgBGO3hCG5oQ7eumlFMMKN4Of JW1kGFC3CQj/jwEI9/wUvWChG7ry1W7MRgFkIavuVxXvZO25k593QL4JuDz8UAETtBbh KP18FibJzVWen+xOe29UEZiIxL+6Aaz7yzpdKK9QCGAEmqMkC2J3e0AduoFUJ1EmoT3S 9kzz6ksWk2sfg8eW1f8niEPYDSs2Tcn/TSFaSxfQT5BbLSeDs/tefv+aly81uTABnP/Q P9s4mgx9gkyC0h0N4wHkVbVvnzzK0Lqfj3g1r1FJR8w48Jvqp9EQQtOIr6GfBXHqA7qq dz/w== X-Gm-Message-State: AOAM531f9k0IGvSovRZJzyHV7KCKBmIPMgnJH9dzijtgPpGemgW5aBX+ bXI0rsMVE3NMxtgp4FztssPFrS07SK3zOLRxJN/MPw== X-Received: by 2002:a2e:9e86:: with SMTP id f6mr875898ljk.95.1592443346675; Wed, 17 Jun 2020 18:22:26 -0700 (PDT) MIME-Version: 1.0 References: <20200617220226.88948-1-luc.vanoostenryck@gmail.com> In-Reply-To: <20200617220226.88948-1-luc.vanoostenryck@gmail.com> From: Miguel Ojeda Date: Thu, 18 Jun 2020 03:22:15 +0200 Message-ID: Subject: Re: [PATCH] sparse: use identifiers to define address spaces To: Luc Van Oostenryck Cc: Linus Torvalds , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Luc, On Thu, Jun 18, 2020 at 12:02 AM Luc Van Oostenryck wrote: > > diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h > index 21aed0981edf..e368384445b6 100644 > --- a/include/linux/compiler_types.h > +++ b/include/linux/compiler_types.h > @@ -5,20 +5,20 @@ > #ifndef __ASSEMBLY__ > > #ifdef __CHECKER__ > -# define __user __attribute__((noderef, address_space(1))) > # define __kernel __attribute__((address_space(0))) > +# define __user __attribute__((noderef, address_space(__user))) I guess `__kernel` moves to the first place since it uses the first address space? Acked-by: Miguel Ojeda Cheers, Miguel