Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2850095pxv; Sun, 27 Jun 2021 10:44:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzO/eoQ8sTKfKcnNH+U8zKvKYyuW8XKegdVFE0hwDIKCFpFJz1nv36FqSivghXl/4yVQLB5 X-Received: by 2002:a05:6402:524e:: with SMTP id t14mr17020816edd.236.1624815896005; Sun, 27 Jun 2021 10:44:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624815895; cv=none; d=google.com; s=arc-20160816; b=KHBpQ9hyoynYkJsQKaucWhI3sDaVVBmQGBn3Xc1oVZw20A30werzKAKt5Hye4xkK/U UzDIK4/njmHgD64u1s5p2aL9nHztSWe4Vu0rzuzW6mS3EM3qMamcMng9V644wZk/0bpI DZP9bicJ73YP45m5qDyFM5BEDHBXTvZHmP01lNxhV4LC1T83Yl6mYGm92xW1e2DE9p9E Pt+H2zLJnCEFPBtEvnssjUxCpSzTcdTJcqQV41gWVl7VPko15hAFzTHAWcH5uQRnmTwA NLk9kIrINj59zRr6J/L8CKrBXs58iOLt6AAGQpyqxkS4ilJS7oB5UGJ6VqdVK+NnMweW +ivQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:cc:to:subject:from:message-id; bh=8Diw6qQw9dpUZgGr5T8oe5pNWAivZykbd6sKbBXOpt4=; b=HU6XFer4P3453JJOthJRGapqkrgcWRTlVWD8q0ZaIKwrJCzKrS4jqDRgfjmv1KUTxh BqLQ+09kwsy4FFSFmenVHGp/8jbSy0UHXF7+/44lsaZcsa0/Zf5wNJjcvX+Vogx87rWp 883vJyzbauRYlerSVdzXkaEP/LD3I9PhRbUN4vKdLZh4DhbFWMc8AodNG7EJCcE4PAwH 5GU5NJwaCfBFkZYazR1sGA+36NC3XFwdcH2aaGeZ6MOJPqwpW7nmSJQVHKeV5Jxbn6+s 7DWMpg3p0kxHxXFNUdGZnjLDmzPxDQd5vvrFYiE4qJAd24j8tlPNDZODO7wxpzRMrGZU IrSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j13si11644184eds.472.2021.06.27.10.44.19; Sun, 27 Jun 2021 10:44:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231298AbhF0RLq (ORCPT + 99 others); Sun, 27 Jun 2021 13:11:46 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:26637 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230315AbhF0RLp (ORCPT ); Sun, 27 Jun 2021 13:11:45 -0400 Received: from localhost (mailhub3.si.c-s.fr [192.168.12.233]) by localhost (Postfix) with ESMTP id 4GCcfR63VKzBCc1; Sun, 27 Jun 2021 19:09:19 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RwV2WUDul0AJ; Sun, 27 Jun 2021 19:09:19 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4GCcfR51WVzBCZc; Sun, 27 Jun 2021 19:09:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 858658B771; Sun, 27 Jun 2021 19:09:19 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id oztC-1qjEcFH; Sun, 27 Jun 2021 19:09:19 +0200 (CEST) Received: from po9473vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 371968B763; Sun, 27 Jun 2021 19:09:19 +0200 (CEST) Received: by po9473vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 86B6C66377; Sun, 27 Jun 2021 17:09:18 +0000 (UTC) Message-Id: <2a3a5b6f8cc0ef4e854d7b764f66aa8d2ee270d2.1624813698.git.christophe.leroy@csgroup.eu> From: Christophe Leroy Subject: [PATCH] powerpc: Remove in_kernel_text() To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Sun, 27 Jun 2021 17:09:18 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Last user of in_kernel_text() stopped using in with commit 549e8152de80 ("powerpc: Make the 64-bit kernel as a position-independent executable"). Generic function is_kernel_text() does the same. So remote it. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/sections.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/powerpc/include/asm/sections.h b/arch/powerpc/include/asm/sections.h index 324d7b298ec3..6e4af4492a14 100644 --- a/arch/powerpc/include/asm/sections.h +++ b/arch/powerpc/include/asm/sections.h @@ -38,14 +38,6 @@ extern char start_virt_trampolines[]; extern char end_virt_trampolines[]; #endif -static inline int in_kernel_text(unsigned long addr) -{ - if (addr >= (unsigned long)_stext && addr < (unsigned long)__init_end) - return 1; - - return 0; -} - static inline unsigned long kernel_toc_addr(void) { /* Defined by the linker, see vmlinux.lds.S */ -- 2.25.0