Received: by 10.223.185.116 with SMTP id b49csp5354097wrg; Tue, 27 Feb 2018 11:49:48 -0800 (PST) X-Google-Smtp-Source: AH8x2258HDxV76fN5WVJg7CG0sT7Apj0vsIiasUCuhmYzzWlZaL3w1E/yzF6u0D5JVWcFwv2AkdM X-Received: by 2002:a17:902:5482:: with SMTP id e2-v6mr15200207pli.65.1519760988465; Tue, 27 Feb 2018 11:49:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519760988; cv=none; d=google.com; s=arc-20160816; b=FnMsQG3jIs2MWzifmmwnAsauyE5DCzHtXk+OPo/fe9h1wDKxpHG4QaGYmahAhOJk9b WvHk25RAkS7TpXiWC1VTGbtAs0YJO/trrzzW9HkNTVP4rk3ZLJwyRzu+7bQhber5nOHf ItvuifFULKM2P7qY5bJOLsICKYPzk1Ur5uEcKrwo88XGvgll0EversxqE2zmbNgJop1o cbVOhqNL8uYo8dIL9NDbi7HCa6HfMrlBtaEoPJoXLeer2GozkKsDrVAFmjSnmKogaS4O CDZlx3mec6rqsLJQ37bwaMfZLCPGOYno/ZUjxdB6IKUB/+abO8GrdYtrhEt1QAsxc17k mOPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=I++G4JzwF7fW35cPyDVHO6YHO2PISaCNr2mwrhW3H8I=; b=PD8W5oJe+OFXH3UZFHQ5TnOzRnCOTuAiXZJOZ0nd4moTZBIGpRt0tS1Nig6H5D9V/U CbEqZnMev0rF2kzqNCJ74LDlbOo6Bwahki7b+YhDaRmuwZ0BwWuf//5t2bCQQcw6dmMb JBkUeup0dZ7tRI29JOqXepI1adH6H8uyXNaU1xWvIO6OyYvFQHZFCzAu4czXJCMZflpN SqQCSwIPs6z4qaBpZ6XYXGoHXsncutTuC/EsURhv9H09h50zx0eJvUzUjHUxH5pjhrVW UMB1xtHiQxpcMWE0iPXrIGGKjH3d6/pZdU69wLQdvpsZPrdJik0YbYZlF5dMWMYcJH9U ELrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=K/sZCGoS; 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 l4-v6si8881493plt.232.2018.02.27.11.49.33; Tue, 27 Feb 2018 11:49:48 -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=K/sZCGoS; 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 S1751974AbeB0Ts3 (ORCPT + 99 others); Tue, 27 Feb 2018 14:48:29 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:33152 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751716AbeB0Ts2 (ORCPT ); Tue, 27 Feb 2018 14:48:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Type:MIME-Version:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=I++G4JzwF7fW35cPyDVHO6YHO2PISaCNr2mwrhW3H8I=; b=K/sZCGoSXhpEQEcwX/aSmPciJi MopQbCWvMMJem3ZVZzzJ2lhjj+EWrGFP7hAnq9DTNTPscmsFp3AQr3oINVnzN+HIIBOm7sqrpgnKE ZIPKlQVJYSyVzsqQ/mCXlXjU2sfE2omycbDxWsE79Eo6tbqaUm7eKnRLpcamBRRm8VXFuT88MtgvT H1dzJ6pGSEUltCpmwM+mcfVnCDFmJBbrplayN25M3HLJE5aezVXxgXMv3T1CEYvx3dnPadsKaHNuU kzAR2lM/9US9QcR4fHyX1mHqYAhWnVmoYpzKWW5bRszaKl4OeUzGc2ZGCQvYCKair1kUTT5zEt0Z5 jWkE5Nqw==; Received: from willy by bombadil.infradead.org with local (Exim 4.89 #1 (Red Hat Linux)) id 1eqlEi-0003xQ-CH; Tue, 27 Feb 2018 19:48:28 +0000 Date: Tue, 27 Feb 2018 11:48:28 -0800 From: Matthew Wilcox To: Linus Torvalds Cc: linux-kernel@vger.kernel.org Subject: [PATCH] sparse doesn't support indirect_branch attribute Message-ID: <20180227194828.GA29918@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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