Received: by 10.223.185.116 with SMTP id b49csp5382632wrg; Tue, 27 Feb 2018 12:19:28 -0800 (PST) X-Google-Smtp-Source: AH8x227CSahmpRHKo7+snFBfJjpZtBArhpB2pqDr4Gcs1K72h7Cz1Tsokcf7YZlY8DJNgUxKVND8 X-Received: by 2002:a17:902:42e:: with SMTP id 43-v6mr15787692ple.186.1519762768090; Tue, 27 Feb 2018 12:19:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519762768; cv=none; d=google.com; s=arc-20160816; b=vOjardfIExFPt0P2ADCIXe5BQNuh6YUJgW+JkHrPRRVwDgXOy/wnFn2+N8f6pngork +ufBp6kqwtPZX+GGvSCLD5kwTaFIQWEkaDixvh/C9N4F3baxBTdsRhxy8BtAGTsQhBiF iZIXDfxhKOll4Re5Gy7dF4pIIV1tl9Rcy9VCWp9ydS1ivVcI/gSIcWrXkgCcdE8CZ1UW TVgQo9fEBOblRCO1C3NuERSm8k/+Q5h5IhFpfm8vlm9/+f0jPLV97Vlsl/DIEQnD8LKs 2uPjKzX0qxWQnKRo/qQRWJK+lmD71OX7jRWMbQcJmLdszT/gFgD86iCdbeGhG6P7iqba Y04w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=ugdkTyLBufvntLW52rK9kAexhKG4/H8PoLseMSQPYME=; b=KFTqf8u1ux29nl0cOzC8138rrjnVHJ11lP5KpTDZqFPT6PeHk159WPRsHQzZPO8I+g 9WA8rKFQiqO6QAQ1/A4v9Si4EiPxTq0+OsgNv/GBY1LRrQntK+BcVRJ3jMd+rwg36hlx JLrwxlszl8pszsh7beb8R4Joqlj1Kd0szbGfr+r5Pizefmg5iMsH8jtYEgJgV64Xxwsh rZttB4t0vq+i128GOR4Zzy3sUrd+pyg63gfi+s6UFM+JFttZ0zOAeCMfgToyYkQ08SfS jzKVHYvg64q9mqepIlPwLfR25aj6PQIW3oJB6qFKbZrXGcVs/haBiMyr2b8pFltsxdbH gVUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=fSnyWH21; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6si7382051pgr.233.2018.02.27.12.19.13; Tue, 27 Feb 2018 12:19:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=fSnyWH21; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751934AbeB0USd (ORCPT + 99 others); Tue, 27 Feb 2018 15:18:33 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:34520 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751754AbeB0USc (ORCPT ); Tue, 27 Feb 2018 15:18:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ugdkTyLBufvntLW52rK9kAexhKG4/H8PoLseMSQPYME=; b=fSnyWH213I+CM4VDeKW2RltkI d94wGgBJwQ2wPrKTKIRK0TMiomgyugv6WOOBQA8/O2qQKYvX+mI9ImjDwZrq6vn/RAIzZulW03oaq MPSw76mbWi8czUqxSngEpki4u593HcL+sjjkGrIQwJLBwFtcTd/XIL1l/sR0mB9H85/ta7VPIDc1x WWkASfRSpHHPR71Z4pnZ7FAljzuCfZtqKnixZj6QJw0Vyo1Ee0rmXl93OmbRGRIIiaqww/ccvY0QX BDo9GtnvSBTcvbDkuATpd6V8amSBnJ9Cee0nbuA6BkTMI13uzaI+SSFULSC8+TFC0CozkeMzGjFyv GFfAuVn9g==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1eqlhn-0004s3-B1; Tue, 27 Feb 2018 20:18:31 +0000 Subject: Re: [PATCH] sparse doesn't support indirect_branch attribute To: Matthew Wilcox , Linus Torvalds Cc: linux-kernel@vger.kernel.org References: <20180227194828.GA29918@bombadil.infradead.org> From: Randy Dunlap Message-ID: <5a85a7cf-c59c-f338-2087-c9de799adbe8@infradead.org> Date: Tue, 27 Feb 2018 12:18:30 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180227194828.GA29918@bombadil.infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/27/2018 11:48 AM, Matthew Wilcox wrote: > > Don't use __attribute__((indirect_branch)) if we're compiling with > sparse. > > Signed-off-by: Matthew Wilcox > > diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h > index e2c7f4369eff..b6be4cc25e9d 100644 > --- a/include/linux/compiler-gcc.h > +++ b/include/linux/compiler-gcc.h > @@ -93,7 +93,7 @@ > #define __weak __attribute__((weak)) > #define __alias(symbol) __attribute__((alias(#symbol))) > > -#ifdef RETPOLINE > +#if defined(RETPOLINE) && !defined(__CHECKER__) > #define __noretpoline __attribute__((indirect_branch("keep"))) > #endif > > I don't mind the patch, but I did send a patch for this attribute on Feb. 13, 2018, to the sparse mailing list. -- ~Randy