From patchwork Tue Nov 3 20:36:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 317172 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F451C388F9 for ; Tue, 3 Nov 2020 20:49:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 529CB22409 for ; Tue, 3 Nov 2020 20:49:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604436583; bh=ebhFxyfQPpIfUkMOndtreeKy5cOZRimmFH/uWLJz1V8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Ieh7pjEIfqAB+wKhyAZs75+ovOGrryUr6q8cLB9Vr/ZdIMpTnHyEyJdlLeZiDs2B2 bTgffgw6i4cuIS9Ph1bh8FPtunsXtjJYEusE9ceRhhqp30Zb/LpzqUQl1IxiGjY4VM XtQ+RebmeMYK3C6r8zMpg4v5aYBliI27Ehx+L3I8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731620AbgKCUtm (ORCPT ); Tue, 3 Nov 2020 15:49:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:42980 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731210AbgKCUtl (ORCPT ); Tue, 3 Nov 2020 15:49:41 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4CE3122404; Tue, 3 Nov 2020 20:49:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604436580; bh=ebhFxyfQPpIfUkMOndtreeKy5cOZRimmFH/uWLJz1V8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MvCB6TLGofzuye2NDL5hqiFhuu/rxO75AYH6brdqtgFzJ8g0VBPUgksaoC2kGrXsN IUDCG0duuX1vJbs6gQ05oynkWzuOHLU+LLE8XQt4yv5DgsSXvz2iHKDYvqDOcrlXca P+higzbaEgY/hTio/xgUjyGlAMOTE33gNvfoLOEk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Krzysztof Kozlowski , Andrew Morton , Tony Luck , Fenghua Yu , Linus Torvalds Subject: [PATCH 5.9 313/391] ia64: fix build error with !COREDUMP Date: Tue, 3 Nov 2020 21:36:04 +0100 Message-Id: <20201103203408.231770281@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203348.153465465@linuxfoundation.org> References: <20201103203348.153465465@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Krzysztof Kozlowski commit 7404840d87557c4092bf0272bce5e0354c774bf9 upstream. Fix linkage error when CONFIG_BINFMT_ELF is selected but CONFIG_COREDUMP is not: ia64-linux-ld: arch/ia64/kernel/elfcore.o: in function `elf_core_write_extra_phdrs': elfcore.c:(.text+0x172): undefined reference to `dump_emit' ia64-linux-ld: arch/ia64/kernel/elfcore.o: in function `elf_core_write_extra_data': elfcore.c:(.text+0x2b2): undefined reference to `dump_emit' Fixes: 1fcccbac89f5 ("elf coredump: replace ELF_CORE_EXTRA_* macros by functions") Reported-by: kernel test robot Signed-off-by: Krzysztof Kozlowski Signed-off-by: Andrew Morton Cc: Tony Luck Cc: Fenghua Yu Cc: Link: https://lkml.kernel.org/r/20200819064146.12529-1-krzk@kernel.org Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- arch/ia64/kernel/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/ia64/kernel/Makefile +++ b/arch/ia64/kernel/Makefile @@ -41,7 +41,7 @@ obj-y += esi_stub.o # must be in kern endif obj-$(CONFIG_INTEL_IOMMU) += pci-dma.o -obj-$(CONFIG_BINFMT_ELF) += elfcore.o +obj-$(CONFIG_ELF_CORE) += elfcore.o # fp_emulate() expects f2-f5,f16-f31 to contain the user-level state. CFLAGS_traps.o += -mfixed-range=f2-f5,f16-f31