Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp677844pxb; Thu, 25 Feb 2021 12:09:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxaG6dQhBpkKL3NgB8EXJ2aF9AgBNMFN+7NoExtNBHKXX+MyDtDtStBY1jH8RH9/qRDLL8c X-Received: by 2002:a17:906:ae88:: with SMTP id md8mr3427800ejb.264.1614283785273; Thu, 25 Feb 2021 12:09:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614283785; cv=none; d=google.com; s=arc-20160816; b=tr7McmHik+mkaHK1gxy31I9+ojDLJeL1B/RcAZ8DvqXsUAmZd+iArBjw2G4PWNeQK4 HJdD3Wa+MOkylzjes1mtFCGU/zKKA7t64Axuwju+MaGkN93CD/pJwaa3Czg60Di+ZSYc DqK/BHqKfWVBJaPtsNGoRBt+5VmFOF/TwgNQzDRnpoX8/oVqCxyRJH3eKBhry+NQK4qX oMkTXtWz2XZ73+66tlfq+1Uq+gRf0equQKggpwndnpw4dj449192vFml5aZcM60jb8OM 9Fi2NkeZ92cxNNLL8sTbu+mm3L6ROcpcP2G6UXaFdHVTDFRpa0Fd26O+VlY3rb5JhQHQ vr3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=XnwYf58+/MJ9ya/9zMcFFH/6+V3KSyipl/k5Rw01xEQ=; b=P8K+5VxhZbaB8T/WPFyFnANH69M6r2esILVJzeTE1zxVT8LjjBCmPDKHc8kcmaUpu1 70r3R14NddzKtd3MRp8qY5GjMa2nG8U/Yn4hFvC3Nmqdmp6Hd6tz4l5QaDg9kRkNrYhh b/uD6VbdNFPJ201owJ7YP0COB3ArDKrJHKdGBLxorLK+uUi+gp+tnh/C2Wh+j3ElSGnj SZrWl6PDQbVzB1y0u+4rxr0ckmpqGzAY6WTNtyxXucZ/6gZ8S+vX7TXKbhGkx43YUoes XW1Lq2N0ZaT543HhrljN4tixd91/+511f4QR8m6jJ9T7nMuWcSCRgJLNyKVwjq9pgjMF FEIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=S33rec2d; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j9si4119820ejn.497.2021.02.25.12.09.21; Thu, 25 Feb 2021 12:09:45 -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=@linux-foundation.org header.s=korg header.b=S33rec2d; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231895AbhBYUH1 (ORCPT + 99 others); Thu, 25 Feb 2021 15:07:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:58756 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229993AbhBYUHY (ORCPT ); Thu, 25 Feb 2021 15:07:24 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2B79460235; Thu, 25 Feb 2021 20:06:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1614283598; bh=CYRFdOJBvR/yxA/tEE02fkILr27KR8sdKgRLGbX0XJM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=S33rec2d419BnIoz2NtABr9//difXwnak25NChMOhjvN6ZTsyFaqfjV2ucFur3pq4 fHya/yOpRzuBJn5cSTbd0GcRU6zLDuJOYQftypmqde19m1QDK/d5lLtSgMHIFEa3hX 2RWT6bilc9L1vE/FyPF+lcKa9gjPUjzUPT7IQp3E= Date: Thu, 25 Feb 2021 12:06:37 -0800 From: Andrew Morton To: Kees Cook Cc: Arnd Bergmann , Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Arnd Bergmann , Miguel Ojeda , 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: <20210225120637.8e2a234f192952829fc5f471@linux-foundation.org> In-Reply-To: <202102251203.03762F77@keescook> References: <20210225164513.3667778-1-arnd@kernel.org> <202102251203.03762F77@keescook> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 25 Feb 2021 12:03:48 -0800 Kees Cook wrote: > On Thu, Feb 25, 2021 at 05:45:09PM +0100, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > Separating compiler-clang.h from compiler-gcc.h inadventently dropped the > > definitions of the three HAVE_BUILTIN_BSWAP macros, which requires falling > > back to the open-coded version and hoping that the compiler detects it. > > > > Since all versions of clang support the __builtin_bswap interfaces, > > add back the flags and have the headers pick these up automatically. > > > > This results in a 4% improvement of compilation speed for arm defconfig. > > > > Fixes: 815f0ddb346c ("include/linux/compiler*.h: make compiler-*.h mutually exclusive") > > Signed-off-by: Arnd Bergmann > > Cc: stable@vger.kernel.org I figured 4% better compile time isn't significant enough to justify a backport. Thoughts? > Reviewed-by: Kees Cook