Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp240425pxf; Wed, 10 Mar 2021 05:26:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwea0W9TdV/tkX0pwxyBT7dkuF+gjdoxsIaiIzodrHH61YzeoC+x6vRz+oiapODMSPdwzpZ X-Received: by 2002:a17:906:6c93:: with SMTP id s19mr3615538ejr.151.1615382792671; Wed, 10 Mar 2021 05:26:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615382792; cv=none; d=google.com; s=arc-20160816; b=YwI5UebrN6RL8KB4nVpiTxPUpZ38LYHd6MRdh2K1agD8bK6V1016CIHVc8nYQZCnya IrL5EqzaXfmnE26f1xUOJMSWIDEgbrTSbSuhYRt/xYfg0+7o45LV6fLIpOOAHn5vtFye BZ3YMaX0fTH0bHnX84DoWIH4p9ms1PgQzrMOLQ+H7ooiuHEg47+wHuJ4mVi4nIrBnHoq o4zsV7s86QUfaGmeAkVDThcoo/cel5iuUqaAqCUT04hvNg7KAM0yB87RyFYitMbKKZ6M 4prI7TIHNIhgR+ZRyLWLH0Wfi9LG8IhAEyMHx0WtrpCsmXTzD7EfWPtJ5R/NaNBqLlJE 4j6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=N850AeULBJVJZjJtcEP+jFkDQcrAdCZJb5e1c29Bhpk=; b=O/uzS0m7FHfjTmNThX52j7lien8+ieYrVCgFK7zbBbved5ngJSomhIcLliL657AS61 6KVcF/zR1bW6+FW5A0iCAgxfNRP7ZyCLzoZ7aM/QB3JAKCnGDgBHiPFEE50ceO3NcKDk Rw8bnb4yd4eAdXFiGosiZWSREFSy8GMgFvkgVwMcaStjoSw42FxNkwUpyXXKHsAGbuvT 2v2o+F9Z3S+fa6llsNxN9EcgXp1GJGbnp+XZHb2V1swoHIqQGe1xh0lrZGes6GnVyDTI g38QG47rv1uIn8NedTLv9arUnzJt4aGut3ejebxOgY3clBow1WA7N1CUKt7BCWlnLQ4q Pwig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=M0wwT6MX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cf26si11526685ejb.702.2021.03.10.05.26.08; Wed, 10 Mar 2021 05:26:32 -0800 (PST) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=M0wwT6MX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233111AbhCJNYz (ORCPT + 99 others); Wed, 10 Mar 2021 08:24:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:45454 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232781AbhCJNYO (ORCPT ); Wed, 10 Mar 2021 08:24:14 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 677EC64FF3; Wed, 10 Mar 2021 13:24:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382653; bh=cfD1P8CGtyw8lKVkpK4hcIzouL4RqZsCpWZlx6d2iTM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M0wwT6MXczd2cClhCG94hOkWuPEM8DuHwe4mnM+oku0vRvysRmBvXHFY49X3Hl10+ 01JXmpt4YpcPG+W4h9LZHFdh40VZKjs+sJpMCjJT8j1BU0+XfmNtVf2B6uSPuU8mou yx2rM1eOAUzxq6ogTFK20cXh7/RFEkpjN0O+YwaM= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Helge Deller , kernel test robot , Sudip Mukherjee Subject: [PATCH 5.10 04/49] parisc: Enable -mlong-calls gcc option with CONFIG_COMPILE_TEST Date: Wed, 10 Mar 2021 14:23:15 +0100 Message-Id: <20210310132322.097347598@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132321.948258062@linuxfoundation.org> References: <20210310132321.948258062@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Helge Deller commit 778e45d7720d663811352943dd515b41f6849637 upstream The kernel test robot reported multiple linkage problems like this: hppa64-linux-ld: init/main.o(.init.text+0x56c): cannot reach printk init/main.o: in function `unknown_bootoption': (.init.text+0x56c): relocation truncated to fit: R_PARISC_PCREL22F against symbol `printk' defined in .text.unlikely section in kernel/printk/printk.o There are two ways to solve it: a) Enable the -mlong-call compiler option (CONFIG_MLONGCALLS), b) Add long branch stub support in 64-bit linker. While b) is the long-term solution, this patch works around the issue by automatically enabling the CONFIG_MLONGCALLS option when CONFIG_COMPILE_TEST is set, which indicates that a non-production kernel (e.g. 0-day kernel) is built. Signed-off-by: Helge Deller Reported-by: kernel test robot Fixes: 00e35f2b0e8a ("parisc: Enable -mlong-calls gcc option by default when !CONFIG_MODULES") Cc: stable@vger.kernel.org # v5.6+ Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- arch/parisc/Kconfig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- a/arch/parisc/Kconfig +++ b/arch/parisc/Kconfig @@ -201,9 +201,12 @@ config PREFETCH def_bool y depends on PA8X00 || PA7200 +config PARISC_HUGE_KERNEL + def_bool y if !MODULES || UBSAN || FTRACE || COMPILE_TEST + config MLONGCALLS - def_bool y if !MODULES || UBSAN || FTRACE - bool "Enable the -mlong-calls compiler option for big kernels" if MODULES && !UBSAN && !FTRACE + def_bool y if PARISC_HUGE_KERNEL + bool "Enable the -mlong-calls compiler option for big kernels" if !PARISC_HUGE_KERNEL depends on PA8X00 help If you configure the kernel to include many drivers built-in instead