Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp214997ybl; Mon, 12 Aug 2019 14:55:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqym9CpkbipNQWM+JlDENbVXuuInEN4swt6L8tjQCzYbecGYkjs2gEm3dUiC6A5k18EfJq83 X-Received: by 2002:a63:bf01:: with SMTP id v1mr31076379pgf.278.1565646956625; Mon, 12 Aug 2019 14:55:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565646956; cv=none; d=google.com; s=arc-20160816; b=pC2AJdqEbrl0cXV/joOCS8+nsPIJvcOFQrak76NT5gGF4LPjLU8mImoKm0+yxtZMgO GNR+w8sFYP40TRHLkVrFNE4edqlhL5HxyDxagKPgjnqk8TPE5SY1htoMXYeH+5CDMUm3 vRIZODXFK/D0N9O3qVZmRzlD9E4gePBtD4IOcHz1AUhLfNnySZbITUnlBJX3sSaqs7rj 0IA2n0ZY4rPFGdl4G87SvY21V+pdFc1d91XIH4tf0GC+tB6djuqVnpbwhUBxSvJizqrw JepsQstCnS07dQbuMmE+i5H1BY/XIYbLKUw2a9ZWMTvu46cAEaSW1p/o++viICwpxEXg 3ZJw== 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 x5si261441pfo.151.2019.08.12.14.55.41; Mon, 12 Aug 2019 14:55:56 -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 S1728014AbfHLVxI (ORCPT + 99 others); Mon, 12 Aug 2019 17:53:08 -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 Content-Type: text/plain; charset="UTF-8" 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(-) 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; \ -- 2.23.0.rc1.153.gdeed80330f-goog