From patchwork Mon Aug 12 21:50:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 171133 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp77226ily; Mon, 12 Aug 2019 14:53:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8PV14EixTJlPrdYjjR1idgCYP0oeDMRD9llGZFc6W6aNvWdWo8fd6Zn0aEtuON169Uo35 X-Received: by 2002:a17:902:1105:: with SMTP id d5mr31837338pla.197.1565646789948; Mon, 12 Aug 2019 14:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565646789; cv=none; d=google.com; s=arc-20160816; b=kXL2012MjS3nSdCMiYYnVtUbNof80uZjWffD4JBQHuhVlvX0TwAEVSyDrgqPCijG6Y oA6JF3tSg4SMuitzN+u844nBzctmcaiM3zo66hWFp5lasoL2mTyloWXJImVhiI0+WT3n pHMFgYTvGBrdheDaSIY6PNtNIE0tR3gikpzBfB8bQC2BCugrt04CdSQ9OOAmLmHtyzAs 7eSGkDtYTgUI2RWrl9L0JdtD8wy1tR19uo6nMdJ6k/ARANCWtBcNmCJc5gCijhdwgiUC 0AZnGRPbacocO9HF5/lhLQyXh2l63nMfHt41ZMQZQKVEtSvO0ZsqIVi1fxMPDNKGP0tJ e4RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=mebfbjlkEdZmmfTa81qyikO5W5onC7JtmBJnlT+apBs=; b=NWnSMEueDL/Kj2N4VPQDgH+jUrG1bZRsg0NoVA2ygCxyAs5If3JD6TOqiytU5y2Jnj iBXbRW2UpPFcvHby51RCRX6V1Csiba4VEklq9MmZ5V3ahogs6NYScJKCEWMbIkf9IGIV OptD7GqfQAz+3XT4xb5jg9SgSIUzXNyKspeR3Fb3fiOG2EqOGgYV+NJQGBPnFBGv4suO kR9bZ+b8dgF0aKmWJU5PzqmFQNiNfpGixd7dLF5MqCjuf8HXr3DvkPlqjBeWsy4Xmb0i wwSXrfvcMD9acJZawA1iLGjtnNi2NiGXo66E5wRbiq0VIvpMtaPVfx11YRbXnJ0eDwWv WmJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=F7+jqw49; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u128si59345081pgu.389.2019.08.12.14.53.09; Mon, 12 Aug 2019 14:53:09 -0700 (PDT) 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=pass header.i=@google.com header.s=20161025 header.b=F7+jqw49; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728018AbfHLVxJ (ORCPT + 28 others); Mon, 12 Aug 2019 17:53:09 -0400 Received: from mail-pl1-f201.google.com ([209.85.214.201]:55613 "EHLO mail-pl1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727724AbfHLVxH (ORCPT ); Mon, 12 Aug 2019 17:53:07 -0400 Received: by mail-pl1-f201.google.com with SMTP id h3so1973883plr.22 for ; Mon, 12 Aug 2019 14:53:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=mebfbjlkEdZmmfTa81qyikO5W5onC7JtmBJnlT+apBs=; b=F7+jqw49SQZDkzeeWOAGmc6Lc1h+SEKaJh0xlc/LAxLKe2v+de+46qMQvwT+4BkWvs f8AKwNOC2CnnRVjmawfvPbXbdhxoRH91LyrcooNmXAxHmZ/SSIiRp7NP7qehBJkD9Olp Ggic8vteYilEaiqd7MDETwi5wJ0mukkru6pKC350sgRkfmYpmA1Uf6c4JGCBq+4KCoFj Zcd1QsAZD6fs0YID/HD9qvUSEmxUnQVeQOHFtt9VRuQrg3TjVMVYz9ZZaP6BYPbc4TbJ UrL5f27WPHBtcOEV1KHCFIthMyxdDU2shC6ubPAwjtByDHIVqz1vzmt1fTLro53yIjGq fxXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=mebfbjlkEdZmmfTa81qyikO5W5onC7JtmBJnlT+apBs=; b=S+ZC9t6u3GrB9dHiZn59j5cvLRGupkZL3mCsczF+G0ya9DjkoVO3uk6mFcrX2Nt/S0 /4dCcf/H2jX8oPL5t63kj0xD/G2dFxdui5HcWMQdKNEyv9jwwoUoDmOSL1/cQNK2SWEc 6jBPefd7a/KuhP1MmmbLB4N2CaNKo6q+wj+Oipvsl/CvDRyXTKkcNYmzbprL/Fovkpg8 Qld/wPaMYqaWBbvKrQ9ZTUMmuO97F9+RmcWOFinu+ekuieCs/I6SwuAE9BXsowlD2cpF yWMRjVebrIn88ebqbzZemBoyryjdpr4A8UFhud4GZAVBt8IBNd/naJNBfuPY5ZwcMow5 5VqA== X-Gm-Message-State: APjAAAXJCoYMd6QxQ4gB0aLcaCurmcLdX+Lk2OWWJ38zWpsrZx1aVE1a vTHuuZVN1rc1BaNwItFbiN3PXXkWjs2lFJFXH8g= X-Received: by 2002:a63:4461:: with SMTP id t33mr31217445pgk.124.1565646786608; Mon, 12 Aug 2019 14:53:06 -0700 (PDT) Date: Mon, 12 Aug 2019 14:50:48 -0700 In-Reply-To: <20190812215052.71840-1-ndesaulniers@google.com> Message-Id: <20190812215052.71840-15-ndesaulniers@google.com> Mime-Version: 1.0 References: <20190812215052.71840-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.23.0.rc1.153.gdeed80330f-goog Subject: [PATCH 15/16] include/linux/compiler.h: remove unused KENTRY macro From: Nick Desaulniers To: akpm@linux-foundation.org Cc: sedat.dilek@gmail.com, jpoimboe@redhat.com, yhs@fb.com, miguel.ojeda.sandonis@gmail.com, clang-built-linux@googlegroups.com, Nick Desaulniers , Luc Van Oostenryck , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , linux-sparse@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This macro is not used throughout the kernel. Delete it rather than update the __section to be a fully spelled out __attribute__((__section__())) to avoid https://bugs.llvm.org/show_bug.cgi?id=42950. Signed-off-by: Nick Desaulniers --- include/linux/compiler.h | 23 ----------------------- 1 file changed, 23 deletions(-) -- 2.23.0.rc1.153.gdeed80330f-goog diff --git a/include/linux/compiler.h b/include/linux/compiler.h index 5e88e7e33abe..f01c1e527f85 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -136,29 +136,6 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val, } while (0) #endif -/* - * KENTRY - kernel entry point - * This can be used to annotate symbols (functions or data) that are used - * without their linker symbol being referenced explicitly. For example, - * interrupt vector handlers, or functions in the kernel image that are found - * programatically. - * - * Not required for symbols exported with EXPORT_SYMBOL, or initcalls. Those - * are handled in their own way (with KEEP() in linker scripts). - * - * KENTRY can be avoided if the symbols in question are marked as KEEP() in the - * linker script. For example an architecture could KEEP() its entire - * boot/exception vector code rather than annotate each function and data. - */ -#ifndef KENTRY -# define KENTRY(sym) \ - extern typeof(sym) sym; \ - static const unsigned long __kentry_##sym \ - __used \ - __section("___kentry" "+" #sym ) \ - = (unsigned long)&sym; -#endif - #ifndef RELOC_HIDE # define RELOC_HIDE(ptr, off) \ ({ unsigned long __ptr; \