From patchwork Tue Feb 13 21:52:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 10217633 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1E76F601C2 for ; Tue, 13 Feb 2018 21:53:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 18ABE28792 for ; Tue, 13 Feb 2018 21:52:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D047287EF; Tue, 13 Feb 2018 21:52:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A98E28792 for ; Tue, 13 Feb 2018 21:52:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965932AbeBMVw5 (ORCPT ); Tue, 13 Feb 2018 16:52:57 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:54758 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965843AbeBMVw4 (ORCPT ); Tue, 13 Feb 2018 16:52:56 -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:MIME-Version:Date:Message-ID:Subject:From:To:Sender:Reply-To:Cc: 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=BFMcTSDYNm/xhfVk1A05RbWGP+0bebAPMqSrtkDijCk=; b=eZ11LFBCHOgNRkGb/KEoggOsr zlASbn4dO4eTxw7e7A9+W0v0+8+Wb76w0N5Q38mIAaBEzP4IGa9NqpPAG7+q9cZfagQgopML0mvzS gylMP1acY3hS3SLd14bS8oRUAKncxh16SsZ3xGE1YNKc+dEyZtKmeDT5Mf7Sj3PxpfGA4jsWtNLDo 8HCKrgXopJhEmtFUMGIamJgE59sxhsGQNNu2gjhGsqkEq5gyvkJ/Cf193u8KeCfy9sRdUeFBePhUB LhHRBlLhvw/cNuYc4nq+pH/WQRzyAgBI3ijaqHxHPaRqTHqmiqgnj0C9OOke0e7/uj/8ND/TpxCbc w2pRydPeA==; 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 1eliVT-0001GL-Dc; Tue, 13 Feb 2018 21:52:55 +0000 To: Linux-Sparse , Christopher Li , Linus Torvalds From: Randy Dunlap Subject: [PATCH] sparse: ignore indirect_branch attribute Message-ID: Date: Tue, 13 Feb 2018 13:52:54 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Language: en-US Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Randy Dunlap Teach sparse about the "indirect_branch" attribute as used in Linux kernel: #define __noretpoline __attribute__((indirect_branch("keep"))) and tell sparse to ignore it. This eliminates over 148K warnings (which also cause the 0day bot to send error reports uselessly). Or does sparse need to do something with it? Signed-off-by: Randy Dunlap --- gcc-attr-list.h | 1 + 1 file changed, 1 insertion(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- sparse-2018-02-13.orig/gcc-attr-list.h +++ sparse-2018-02-13/gcc-attr-list.h @@ -62,6 +62,7 @@ GCC_ATTR(hidden) GCC_ATTR(hot) GCC_ATTR(hotpatch) GCC_ATTR(ifunc) +GCC_ATTR(indirect_branch) GCC_ATTR(init_priority) GCC_ATTR(interfacearm) GCC_ATTR(internal)