From patchwork Thu Jun 4 20:18:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 224816 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=-10.1 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, 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 F3DA0C433E0 for ; Thu, 4 Jun 2020 20:18:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B7B5B207D0 for ; Thu, 4 Jun 2020 20:18:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591301935; bh=8AMUfx+U41h/W4ISZLyWgwankxiN0RxfqRn8dcLTozk=; h=From:To:Cc:Subject:Date:List-ID:From; b=EZAJV2DlFpBCWzIs3zhG+b6utTVyp9OqvVhSutwQyDfi6eaCxiZDLdsEHOhOsnYbJ 46aw4BUvmStBTyz878W1aSt8eykshlibeQ6zJ3a3SBqSRNmkhelztCFSlJ/7Dwvn4I FRnT5nZKg8ySugtaie1S9lhM86AUrVJ02aeewA50= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727984AbgFDUSy (ORCPT ); Thu, 4 Jun 2020 16:18:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:60276 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726456AbgFDUSy (ORCPT ); Thu, 4 Jun 2020 16:18:54 -0400 Received: from localhost.localdomain (unknown [194.230.155.118]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CF5D6206E6; Thu, 4 Jun 2020 20:18:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591301934; bh=8AMUfx+U41h/W4ISZLyWgwankxiN0RxfqRn8dcLTozk=; h=From:To:Cc:Subject:Date:From; b=cG4hGRm4OKubJ9zcO4yHg94fi43rWCmcMt8d3MJmSafIsSh2OGN1qFw9nk/MLdprw H6eZ30H84bXPOOlHoH1sDG1irCKDzTN0sOTcomSsPzs8jhao4DDoUxzs+Oh7L/XD8P U7sNhA/X4xC11tIvj05ZxlWkA9jfz2Zax3QCFD6Y= From: Krzysztof Kozlowski To: Tony Luck , Fenghua Yu , Tom Vaden , Krzysztof Kozlowski , Daisuke HATAYAMA , Andrew Morton , linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kbuild-all@lists.01.org, Joerg Roedel , stable@vger.kernel.org Subject: [RFT PATCH] ia64: Fix build error with !COREDUMP Date: Thu, 4 Jun 2020 22:18:42 +0200 Message-Id: <20200604201842.29482-1-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 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' Cc: Fixes: 1fcccbac89f5 ("elf coredump: replace ELF_CORE_EXTRA_* macros by functions") Reported-by: kernel test robot Signed-off-by: Krzysztof Kozlowski --- Please let kbuild test it for a while before applying. I built it only on few configurations. This is similar fix to commit 42d91f612c87 ("um: Fix build error and kconfig for i386") although I put different fixes tag - the commit which introduced this part of code. --- arch/ia64/kernel/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/ia64/kernel/Makefile b/arch/ia64/kernel/Makefile index 1a8df6669eee..18d6008b151f 100644 --- a/arch/ia64/kernel/Makefile +++ b/arch/ia64/kernel/Makefile @@ -41,7 +41,7 @@ obj-y += esi_stub.o # must be in kernel proper 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