From patchwork Tue Mar 26 06:50:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 10870467 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EBA9514DE for ; Tue, 26 Mar 2019 06:51:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D286B2872E for ; Tue, 26 Mar 2019 06:51:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C38AA29092; Tue, 26 Mar 2019 06:51:12 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 20EBB2872E for ; Tue, 26 Mar 2019 06:51:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=2TRg14fYvu+ZLk2wAFZx4TT5J13MUCTbfDP6uyXpuvc=; b=D8G TpLd54s+sq/6nTz/qbLUxsM8sKYvpBrPIw4afxX4OuE6+7VxvmIDeT5Rfa1VFrevyx386qYA6S9SF 5Z7uVFBdHWBmnUsvrXaZjnxJUWJAV5mQJDnsp249kkNfGSwAUQu9rvb/j+3mGAxQRrd6l1ZTNaue3 +N8snDnaSj3qrFME2LbhV7X9mXqhaagBzZMNg7GcANOLyv1ZFMFmgRBKua05jaOQPh5tNsTBmOnjr WqTHcgDawfNna81VpoadiEs2nWCA7Zds7i5Ko5x5th31Y/U/LicGXw2h9nFU5c4ix2yEUe+2LTXbh J4bw0x33VP8dGDjno2szOwZxF3vEAfg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h8fvE-0002VP-5s; Tue, 26 Mar 2019 06:50:56 +0000 Received: from mail-pl1-f195.google.com ([209.85.214.195]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h8fv7-0002UY-Qj for linux-arm-kernel@lists.infradead.org; Tue, 26 Mar 2019 06:50:53 +0000 Received: by mail-pl1-f195.google.com with SMTP id bf11so1183060plb.12 for ; Mon, 25 Mar 2019 23:50:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=FZhwv3yi5zyZbOFCZb2GEhrF1eNPuv7xg9JUzeBkJ/I=; b=hvmCwAi//qSFf1oNV+YoFFPURuA1j1Iv33tcuIZ5WY3KdD4acTBttlk7KJ14N7GTsY vS77SUfU4UEQUF2p5/qDbd26y1r9Hj0QgqkUDoJFq4MkaAtloktRncvdJoLCNKLkq4Yg l5Hr/xKw/ObC+sSxoyQ7k0PgU3R2qE1S6DfbpcXPSBIjpj1Y9oiqCOVOLyC+YKWA3QKZ KuLoa3cF9G7eRp2oVcAi6d7L+AS9Kv1W8/HQny8gYDcBu0jn+tVB6r/TCQTkvv2pnXcJ 0BQiKkDutLMLkOuAPsPGzQEoYOuXvayVN9T0nOXc3ZiouAdzcntksURalmOGYwbLLOFf wX7Q== X-Gm-Message-State: APjAAAWdlYrO++yB/KpsC7dBEb3yFaHJN0LAj1SI0YCkx7tqVPuqjFWi 5GkWf8hMTJDj8yI71tF2aQZaSA== X-Google-Smtp-Source: APXvYqy39bmf1qbyFI6moNdEPCXkx4W2gXiUlmd3KBrqDCU2xEuOLaQloNXGw74Vf1g20sAehiiMvw== X-Received: by 2002:a17:902:142:: with SMTP id 60mr29516055plb.191.1553583048524; Mon, 25 Mar 2019 23:50:48 -0700 (PDT) Received: from localhost ([182.69.197.66]) by smtp.gmail.com with ESMTPSA id e13sm30256596pgb.37.2019.03.25.23.50.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Mar 2019 23:50:47 -0700 (PDT) From: Bhupesh Sharma To: linux-kernel@vger.kernel.org Subject: [PATCH] include/kcore: Remove left-over instances of 'kclist_add_remap()' Date: Tue, 26 Mar 2019 12:20:28 +0530 Message-Id: <1553583028-17804-1-git-send-email-bhsharma@redhat.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190325_235049_869828_79F627C3 X-CRM114-Status: GOOD ( 10.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: x86@kernel.org, Michael Ellerman , bhsharma@redhat.com, Dave Young , kexec@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Boris Petkov , James Morse , Thomas Gleixner , bhupesh.linux@gmail.com, Dave Anderson , Ingo Molnar , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Commit bf904d2762ee ("x86/pti/64: Remove the SYSCALL64 entry trampoline") removed the sole usage of 'kclist_add_remap()' from 'arch/x86/mm/cpu_entry_area.c', but it did not remove the left-over definition from the include file. Fix the same. Cc: James Morse Cc: Boris Petkov Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Michael Ellerman Cc: Dave Anderson Cc: Dave Young Cc: x86@kernel.org Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: kexec@lists.infradead.org Signed-off-by: Bhupesh Sharma --- include/linux/kcore.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/include/linux/kcore.h b/include/linux/kcore.h index c843f4a9c512..da676cdbd727 100644 --- a/include/linux/kcore.h +++ b/include/linux/kcore.h @@ -38,12 +38,6 @@ struct vmcoredd_node { #ifdef CONFIG_PROC_KCORE void __init kclist_add(struct kcore_list *, void *, size_t, int type); -static inline -void kclist_add_remap(struct kcore_list *m, void *addr, void *vaddr, size_t sz) -{ - m->vaddr = (unsigned long)vaddr; - kclist_add(m, addr, sz, KCORE_REMAP); -} extern int __init register_mem_pfn_is_ram(int (*fn)(unsigned long pfn)); #else @@ -51,11 +45,6 @@ static inline void kclist_add(struct kcore_list *new, void *addr, size_t size, int type) { } - -static inline -void kclist_add_remap(struct kcore_list *m, void *addr, void *vaddr, size_t sz) -{ -} #endif #endif /* _LINUX_KCORE_H */