Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1020071pxb; Thu, 25 Feb 2021 23:51:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyqRu1rtLSilUTPZuysYQzDfm0k2iP7qQYVlRviyl4r1dIxtUt6E9Eu5GX1+XiDNQCGkbgI X-Received: by 2002:a17:906:8a5c:: with SMTP id gx28mr1934096ejc.51.1614325892507; Thu, 25 Feb 2021 23:51:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614325892; cv=none; d=google.com; s=arc-20160816; b=EYuF63fqT8x83Y7FkyKi34+Vcn9bU5YfsBY1Yw3n9CUlEtZzBMeLQuRyLvImqi5mQn lN5NAk6UDZOgZAeVwDKn+FInxVhIxB/ioat3J2eVEqAQj5ozKNrv0RIR4ejgX+VzNFSU N6dwwvJEjuCr6Nn5rqDH1l+S4+Vome7cKC6VJP7ljJozwjRWJZFFyNyzC7DL4D3Crtin 4M3XrKkO7ZsSvxwVr7OAVDJM08Qw9o8cs4hecR+t1ak5HQCrQCJo16gu6sjgx8LwXb3R Yo1gcplZM9X1x9vsf3sOO94SYA/1rQcGXgpZUC//xSLap2BvuP7R3Xlex9AtCsBT6JA2 XDjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4DN+A5hkNrzxN+WZsFV8KY0Vzh1Hlgt+doIBF7EMR7I=; b=SlWR8GQ9mpTozTLHuu678ZdrRQ+zmLmJMIUJ1SowP0pNaFASBm4VftHmHXMpxto8HK N/8pTHMZcRv9p6G1T9xzVEQHY/OwnNt25huXZYYNX9SX0MoQQTeTaJ6qKCtmW/D64kq5 OCMJaHeU4d0T+DP6/AA9SvBIcP/QxcFf1gozoiHdh1/yIuln29E/J9TNwEbYXHT4oVq3 TLyHuOna43Mn89LVSNE07QCBQBkqpGFv4MuNTYNClQE4YUD3yTBv5aXExVtMgj/5fjxg b6tQfYvGZf+Fdfzz04qOCqo+sfYB+xxG9KQEK0pm3tdrB0vxarsa7e1ZVcCQ88X9wED7 GxCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OoI1pL7l; 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 jg4si5688690ejc.313.2021.02.25.23.51.08; Thu, 25 Feb 2021 23:51:32 -0800 (PST) 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=OoI1pL7l; 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 S229800AbhBZHs2 (ORCPT + 99 others); Fri, 26 Feb 2021 02:48:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbhBZHs1 (ORCPT ); Fri, 26 Feb 2021 02:48:27 -0500 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85335C061574 for ; Thu, 25 Feb 2021 23:47:47 -0800 (PST) Received: by mail-ej1-x634.google.com with SMTP id u20so13183560ejb.7 for ; Thu, 25 Feb 2021 23:47:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=4DN+A5hkNrzxN+WZsFV8KY0Vzh1Hlgt+doIBF7EMR7I=; b=OoI1pL7li43evyqmtnhBTd2iXlFkyRAtJhv0UsbG4sZLfAyi/0E8XbDi7CnfngA1Fb EGbtX2gv6++FtCuAjoDpPQ1IYU7OoF5/Un1UtUwuyOHqnXLUpZk5dc9eAqRdY0ltJ74k 4pgIrvMRednWCeZd3/VXFtHGBWobptY3IRVGstcv9YFU2D4ySf87tegWKAWVMLAy8+hN kWHT6uPCm0aYkMk+S3xSFj/yunSaZcE+rajXHiTKOEBk3CjT8OeFziRWhyWdwBjl5dZH Fvt+rt7S7haJJnRpFTKXKI/1r7bafqK7NOZ1KOo+/yGia4FwyXIRjkTOyOLpbUMTtIAF Ry9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=4DN+A5hkNrzxN+WZsFV8KY0Vzh1Hlgt+doIBF7EMR7I=; b=fGwibIPlViqSmt92atqAPKkf1TDM5x7YxuKcwvRwLxfhUdSgsVhJxt2gmKJcTt3GlN T0lc1mFJy7G5HMBuO8Bm+onzcP1FGxhGBwsRDXFogTfmOkvgTnE+Oh+yGAdHzO2lC2d1 mb5CYTO2cSSucxEA+93I/QIBEEC68bIxjnhBgBFCTHLRj3ziEdZ0cxSm+/sKWkq+2ORx hOF/Cw62Jm8Vy1Rih4WUVliolT0xoWV2XNL6pSw1vrRkQKNFI4ZpKCOCwcSy8wclbXCB FC06h1XBl810xzl8Jmu8frn+nes+kvREXNOM+Q2tPuts0SheLif569T6Ly667ghE3IfZ vRQQ== X-Gm-Message-State: AOAM533uToEhXGKrFYeKSMgllvc3P5BrjoWwrWUhdgxu7B7k3P+ryOKc TrATIdaj6rtP3u4KYOry3Pc= X-Received: by 2002:a17:906:4f96:: with SMTP id o22mr1846571eju.511.1614325666360; Thu, 25 Feb 2021 23:47:46 -0800 (PST) Received: from mail ([2a02:a03f:b7fe:f700:b14f:9a2a:80ff:1887]) by smtp.gmail.com with ESMTPSA id t27sm4650257ejc.62.2021.02.25.23.47.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Feb 2021 23:47:45 -0800 (PST) Date: Fri, 26 Feb 2021 08:47:43 +0100 From: Luc Van Oostenryck To: Arnd Bergmann Cc: Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Arnd Bergmann , Miguel Ojeda , Kees Cook , Andrew Morton , Marco Elver , Sami Tolvanen , Arvind Sankar , Randy Dunlap , clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] linux/compiler-clang.h: define HAVE_BUILTIN_BSWAP* Message-ID: <20210226074743.krd3cixaf7bt5vsp@mail> References: <20210225164513.3667778-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210225164513.3667778-1-arnd@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 25, 2021 at 05:45:09PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > Fixes: 815f0ddb346c ("include/linux/compiler*.h: make compiler-*.h mutually exclusive") > Signed-off-by: Arnd Bergmann > --- > include/linux/compiler-clang.h | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/include/linux/compiler-clang.h b/include/linux/compiler-clang.h > index 6478bff6fcc2..bbfa9ff6a2ec 100644 > --- a/include/linux/compiler-clang.h > +++ b/include/linux/compiler-clang.h > @@ -33,6 +33,16 @@ > #define __no_sanitize_thread > #endif > > +/* > + * sparse (__CHECKER__) pretends to be gcc, but can't do constant > + * folding in __builtin_bswap*() (yet), so don't set these for it. > + */ This is not true anymore since 2017. Also, a much recent version of Sparse is needed for _Generic(), for example). Can you remove the comment and the test for __CHECKER__? Best regards, -- Luc