From patchwork Thu Feb 2 05:25:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 51697 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp52551wrn; Wed, 1 Feb 2023 21:29:50 -0800 (PST) X-Google-Smtp-Source: AK7set9clTjzEGKVMQ4ipnicgS5WGjrGr/gnoYXtsWQ6SA7l+XFZkv/Aai0w2AJoZEB7C3sjnL02 X-Received: by 2002:a62:1dc2:0:b0:592:4502:fb0 with SMTP id d185-20020a621dc2000000b0059245020fb0mr4663252pfd.0.1675315789809; Wed, 01 Feb 2023 21:29:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675315789; cv=none; d=google.com; s=arc-20160816; b=SrPnnjgLtYYsN1XgboT0qt0jFn2fSq4y19NGmCrIc2bM4Mig1/rBjlIzLQQVbDHBs6 u8Hdxe5Cmi01pnN1ZN91ZjsrCXwNCjM5Xd/2bMq86nAD1WsA7isXniZGCEdMp4NRXUlo VJUa1wluSQAm8NT6eaWaZHpCDHlPYbQxLgUOes+Q6lmyyqCkOfJO9yGkUHKz2vPhdXfw Y6jH1Mor7GwCSqmcpTb3LfhRs38Un7MkIE+uVeETTFGx+1YIImmPItItOvTy5Uzbq6LB zcaYMrzTTyskhpa+n/EDUWo9oyV2dZ8zBwELe6ABtwxNc77uTVCIKLQt9lOfCXlJHDHj W1Pg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oY4hJ2XXlDh+V2Pw4IhQbxyFjcLSOTzVLsfV7CARGpY=; b=V9tCeg+tKT27gDtjQI5lRADwLUr65fInUP74W87mqIZGz+fSM2Yt2BB91Pb4qwD+vO kgdh1qJPqAaEJxlN5cINEdCxvRMC4fiGkE1LJBkspz1tQJpiA9cXHzBuKVWsETpJSPqC jySQyzFG6D0dBVzsfnarA4uzBVSF5lfeJ87yvx8iqPAhidOCCBcea6Qcdnvj0Aq3mBMb zzfLI17IXQ/+ahfG/6nmnqOadNWctp21OP3APRZbiXX3mreqQeMVeVGCI7B3VxMSAsHv E0Rjzip+AyM6rJooKOXXB768phwJ94wO2WrsTYAT/jbZzkboRgruLeHrjuZAhL/NQVx1 ZrVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WcdfRrlS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y8-20020aa79ae8000000b0058e09be04d8si20929525pfp.340.2023.02.01.21.29.30; Wed, 01 Feb 2023 21:29:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WcdfRrlS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231624AbjBBF2p (ORCPT + 99 others); Thu, 2 Feb 2023 00:28:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231357AbjBBF2T (ORCPT ); Thu, 2 Feb 2023 00:28:19 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D886818155; Wed, 1 Feb 2023 21:28:08 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id EE551B824B6; Thu, 2 Feb 2023 05:28:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3ABCDC433D2; Thu, 2 Feb 2023 05:28:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675315685; bh=XvMp8OxqN686wYYBuokqdDG9zEqwVzaClZ28PNpdlgw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WcdfRrlSbdKncAZuzC0qEsWO7IHkpVyImUDNOAEdGOchVIlLlmNKSE+oj6ZWrJefp zvnOgiZ72xZ4gdgv8oU2lmpoXBl/U4kSTbqI8EtCri8Dqe7HTp8KJObPIXTCVnjm9U UqaUbs7ToyHXGlaSX/vpVPvFd45djSpHA3WlSxlQZw9wH/VBZF6Hn0ubVGP4cWiGlG ymWXSqUUN/Q4rPol4AuWicm3BibmjufLLIo5/7DiJ5ln4yJpzMS7KzJEg3fBKdI58o J5YMdq+bLudQfPpWlL1MzDEcdF6j32njIzOdJRf73Y3FMhqsnmgl1ZHAU38aWi/q5d dn+w/t7nSG/9w== From: Eric Biggers To: stable@vger.kernel.org Cc: Harshit Mogalapalli , Kees Cook , SeongJae Park , Seth Jenkins , Jann Horn , "Eric W . Biederman" , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, Tony Luck , Randy Dunlap , Christoph Hellwig , Christoph Hellwig , Andrew Morton , Linus Torvalds Subject: [PATCH 4.19 08/16] ia64: make IA64_MCA_RECOVERY bool instead of tristate Date: Wed, 1 Feb 2023 21:25:56 -0800 Message-Id: <20230202052604.179184-9-ebiggers@kernel.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230202052604.179184-1-ebiggers@kernel.org> References: <20230202052604.179184-1-ebiggers@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756695929216419400?= X-GMAIL-MSGID: =?utf-8?q?1756695929216419400?= From: Randy Dunlap commit dbecf9b8b8ce580f4e11afed9d61e8aa294cddd2 upstream. In linux-next, IA64_MCA_RECOVERY uses the (new) function make_task_dead(), which is not exported for use by modules. Instead of exporting it for one user, convert IA64_MCA_RECOVERY to be a bool Kconfig symbol. In a config file from "kernel test robot " for a different problem, this linker error was exposed when CONFIG_IA64_MCA_RECOVERY=m. Fixes this build error: ERROR: modpost: "make_task_dead" [arch/ia64/kernel/mca_recovery.ko] undefined! Link: https://lkml.kernel.org/r/20220124213129.29306-1-rdunlap@infradead.org Fixes: 0e25498f8cd4 ("exit: Add and use make_task_dead.") Signed-off-by: Randy Dunlap Suggested-by: Christoph Hellwig Reviewed-by: Christoph Hellwig Reviewed-by: "Eric W. Biederman" Cc: Tony Luck Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Eric Biggers --- arch/ia64/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig index 8b4a0c1748c03..0d56b19b7511a 100644 --- a/arch/ia64/Kconfig +++ b/arch/ia64/Kconfig @@ -445,7 +445,7 @@ config ARCH_PROC_KCORE_TEXT depends on PROC_KCORE config IA64_MCA_RECOVERY - tristate "MCA recovery from errors other than TLB." + bool "MCA recovery from errors other than TLB." config PERFMON bool "Performance monitor support"