From patchwork Thu Feb 23 07:01:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 60811 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp175442wrd; Wed, 22 Feb 2023 23:11:20 -0800 (PST) X-Google-Smtp-Source: AK7set8E0WqtTWt4NrNBN72iA/JFC+48onVSh5jtV2MDiq1vUqJA2k+NRW17F4lvfb1mrIm7bWsl X-Received: by 2002:a05:6402:35d0:b0:4ad:6f56:a362 with SMTP id z16-20020a05640235d000b004ad6f56a362mr12631377edc.4.1677136279911; Wed, 22 Feb 2023 23:11:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677136279; cv=none; d=google.com; s=arc-20160816; b=yb5BCVFAOcYghZf7ouIUwapG1qiRWe81tPkq6zqOb6zUw80DjnvSLl1/rrK8A+RBkb OL8OAURuxZ6EbTBRVAG6RTSxYtGugXVUqWn5tBd4DsowQVRoi0+GLcatp33psWJoqvxY 7JTwtY39vswO+kDt0y8jtqOg9qDZTlQ9KM28SICDhZzpDTSMr59r7pUmdUAnbSQGhJrA utFeZztAl5TpclwDVk2JuyDgNCoF35cBqf2trAEIGFCW8nJ8pUkM66iKLpgfUsYW936Q QYc6j/tXSfLZ0v/TW+whp6sueFZtimavTBRyA6whxe3DjH8e3zc3gY3B9QXp0ly+TXk9 NCwg== 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=6eyKcKxeMsYYmm98/NS8k7jDKjha+yov5mDRD5bGFDU=; b=IxBLq0nkZlgq/3f65qxhnvSmjG6C92niTjm6G1fykz+eAFYqyN5WxkhTad9bmYVISu OqTBRzAuwSbCHPR9DoSWiLjXtJGGUbEcNnQRztTFyJ2+T+nEgWTNPq4sqtH+xXMCLA2b JrCM9gjkdrCeM5BoXTtH4QHWu9m5spehqalZKhHhPBJZzUF1ZtLnhfdBgQK47w1UNMVY d2ERCQvoHUsdSLGFoC5Uvh3miyv6epGW+jxeqzgYkWFxASZ6NxaEGKBjClkZ9/08Fa97 CTB0eHIlVXYzVvzK3RBC0t6LQTPy4mOdsOW/MQuzbw7fVzuNaAI/E2X4Cn6824cmFaHD BybA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=cxY5zSb4; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i5-20020a50fc05000000b004acc030698dsi6071441edr.513.2023.02.22.23.10.56; Wed, 22 Feb 2023 23:11:19 -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=@infradead.org header.s=bombadil.20210309 header.b=cxY5zSb4; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233480AbjBWHB2 (ORCPT + 99 others); Thu, 23 Feb 2023 02:01:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233461AbjBWHBX (ORCPT ); Thu, 23 Feb 2023 02:01:23 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36CE84A1CE for ; Wed, 22 Feb 2023 23:01:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=6eyKcKxeMsYYmm98/NS8k7jDKjha+yov5mDRD5bGFDU=; b=cxY5zSb4hUqUbspjYybU6JKQmb WTdtv8C1po4tIfjgCCs0LbsZDScsTx4CnpPlToHW3PPJmcje/wc47WZqD56/urWAJ43oAVZQEW4eE ZVafpPBbR44MKIfyTicylpB+Yu2Mn76CCkf7guxG7rQSX7plYsCGWrY4ans2nXoUG7obCFxnKRXVf grymJooQjDMyZr2FIZ8WXS3SPdZ74khjJJEhCy9E3sQES0ayZWmZKFs9ZZjhgCAaHYozVW0xAw/1M nqpPKpCY+nc1/spw/cDDBjn+00yspZkSMT6N9RCwCSx6X6kn0m/9Utraaa3WEqeeatzCv5QgEOFWy 0Gnn31HQ==; Received: from [2601:1c2:980:9ec0::df2f] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pV5bT-00FMG2-OI; Thu, 23 Feb 2023 07:01:19 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Nathan Lynch , Michael Ellerman , Nicholas Piggin , Christophe Leroy , linuxppc-dev@lists.ozlabs.org Subject: [PATCH 3/4] powerpc/pseries: RTAS work area requires GENERIC_ALLOCATOR Date: Wed, 22 Feb 2023 23:01:15 -0800 Message-Id: <20230223070116.660-4-rdunlap@infradead.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230223070116.660-1-rdunlap@infradead.org> References: <20230223070116.660-1-rdunlap@infradead.org> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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?1758604851573686635?= X-GMAIL-MSGID: =?utf-8?q?1758604851573686635?= The RTAS work area allocator uses code that is built by GENERIC_ALLOCATOR, so the PSERIES Kconfig should select the required Kconfig symbol to fix multiple build errors. powerpc64-linux-ld: arch/powerpc/platforms/pseries/rtas-work-area.o: in function `.rtas_work_area_allocator_init': rtas-work-area.c:(.init.text+0x288): undefined reference to `.gen_pool_create' powerpc64-linux-ld: rtas-work-area.c:(.init.text+0x2dc): undefined reference to `.gen_pool_set_algo' powerpc64-linux-ld: rtas-work-area.c:(.init.text+0x310): undefined reference to `.gen_pool_add_owner' powerpc64-linux-ld: rtas-work-area.c:(.init.text+0x43c): undefined reference to `.gen_pool_destroy' powerpc64-linux-ld: arch/powerpc/platforms/pseries/rtas-work-area.o:(.toc+0x0): undefined reference to `gen_pool_first_fit_order_align' powerpc64-linux-ld: arch/powerpc/platforms/pseries/rtas-work-area.o: in function `.__rtas_work_area_alloc': rtas-work-area.c:(.ref.text+0x14c): undefined reference to `.gen_pool_alloc_algo_owner' powerpc64-linux-ld: rtas-work-area.c:(.ref.text+0x238): undefined reference to `.gen_pool_alloc_algo_owner' powerpc64-linux-ld: arch/powerpc/platforms/pseries/rtas-work-area.o: in function `.rtas_work_area_free': rtas-work-area.c:(.ref.text+0x44c): undefined reference to `.gen_pool_free_owner' Fixes: 43033bc62d34 ("powerpc/pseries: add RTAS work area allocator") Signed-off-by: Randy Dunlap Cc: Nathan Lynch Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org Reviewed-by: Nathan Lynch --- arch/powerpc/platforms/pseries/Kconfig | 1 + 1 file changed, 1 insertion(+) diff -- a/arch/powerpc/platforms/pseries/Kconfig b/arch/powerpc/platforms/pseries/Kconfig --- a/arch/powerpc/platforms/pseries/Kconfig +++ b/arch/powerpc/platforms/pseries/Kconfig @@ -7,6 +7,7 @@ config PPC_PSERIES select OF_DYNAMIC select FORCE_PCI select PCI_MSI + select GENERIC_ALLOCATOR select PPC_XICS select PPC_XIVE_SPAPR select PPC_ICP_NATIVE