Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1942805rwd; Thu, 25 May 2023 22:18:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6GzH7fEKsQXT48ftRdekHZnctSUYuEunbYS0fuHt4z8ji3cfkF15fKBOD6n9hlEVaC636u X-Received: by 2002:a05:6a00:178c:b0:647:4dee:62b7 with SMTP id s12-20020a056a00178c00b006474dee62b7mr1834979pfg.29.1685078326210; Thu, 25 May 2023 22:18:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685078326; cv=none; d=google.com; s=arc-20160816; b=Va5VsglaS9jkrTTwo2pkf+0/zPZeO32EApfD9QVehISor9gj6hO/9maDHQ3W7O6y+q 3QmWXplHcMr0E7QT5bcFIbwOR/WDtUa+sWPONPfPf+bsFVV9GmZAf66rD8efiXprCAbW 8kpTQpeuxUGXNpaX5OAnAGmNmQjcPy5obMxZF1KyJcbY7kknSEhd5EouMvghStfVsZoB 99amLN0YYyiEsW9kR4fYwzu419BUNhpOdlVwvL45yPpYZDKD3/ySBHdnC9rD68YwouHP mYmNmnX7KZImbPLqKpdpfD4TIkxu7EJx4GapU/geC1YxYVcjf6TNlVqbGq5wW+puWPei G2nw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=mk1hz+aR0+S5nMP4NKFg1YnAMY5/a5jNMR1UmgjUkFA=; b=ccO9g2pCPRdYBTOoYeeJK2OmcxiULx0ohYcZ1pSCiguRUbhTK8MxCApFZ2BEEDgpwg G7Y09yNLRSVo9ERshqdZcCcKMAaINGvlnw65nUvbGlC0GR4E+IqgE7Dhuoh1C04I3RcW scUyV7fEA0n14Ki98XEC2wgtQEWEa6I/wsSVRmV8rqc1R5hNaE5d3ddY3FLkZiQfN4J5 9PP3sFvnctmuUfqDN0QsZAfojOpq0J5/xJdCL6Z7wVnfgIZoSavvemWHvshA0L4GeWft YVUEWBqI00v1smb5X6rLjBSP9BkzAmA8nGeGFLgyxHJYJC8pFQsbPceARaAqkh5LWBdx Da/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=u4EZZQge; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z22-20020a637e16000000b00528cfd22852si3085630pgc.178.2023.05.25.22.18.31; Thu, 25 May 2023 22:18:46 -0700 (PDT) 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=u4EZZQge; 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 S242003AbjEZEpe (ORCPT + 99 others); Fri, 26 May 2023 00:45:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236166AbjEZEp0 (ORCPT ); Fri, 26 May 2023 00:45:26 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECF9B119 for ; Thu, 25 May 2023 21:45:23 -0700 (PDT) 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:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=mk1hz+aR0+S5nMP4NKFg1YnAMY5/a5jNMR1UmgjUkFA=; b=u4EZZQgeKpbZjOBjlg0b/8jhey NTZsii8TCpgvrsYM2u30CSuUVl+O8HCftHnF+kfPi0AlXS2pP9jSvdtuSoFBewytIBtqJpx2oiDGF 7LWBx0iWdbtngjSaO7naPKp7DBlUfBvyH56+SJV8W2Ie4VB//t8g1URg1ZMKiBwdADc7MBjXb7GLY lOuyj91gtG3nRKw4mNu328PY7IeyO1fgpR9YvEyHilD6AAzF1wf5Sujvs8MEp0q7vizytfhNqhBey N8CWE8CY6WrLIoo0MGa1ojoBsXPeURBB+o5n4YKMWkW0lvm+v1bGBOvsT1qtKn3mVDYGLZeAlhO/R 08UpR0Xw==; Received: from [2601:1c2:980:9ec0::2764] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1q2PKL-0010aD-0T; Fri, 26 May 2023 04:45:21 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Oded Gabbay , dri-devel@lists.freedesktop.org, Jacek Lawrynowicz , Stanislaw Gruszka , Andrzej Kacprowski , Krystian Pradzynski , Jeffrey Hugo , Daniel Vetter Subject: [PATCH] accel/ivpu: ivpu_ipc needs GENERIC_ALLOCATOR Date: Thu, 25 May 2023 21:45:19 -0700 Message-Id: <20230526044519.13441-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Drivers that use the gen_pool*() family of functions should select GENERIC_ALLOCATOR to prevent build errors like these: ld: drivers/accel/ivpu/ivpu_ipc.o: in function `gen_pool_free': include/linux/genalloc.h:172: undefined reference to `gen_pool_free_owner' ld: drivers/accel/ivpu/ivpu_ipc.o: in function `gen_pool_alloc_algo': include/linux/genalloc.h:138: undefined reference to `gen_pool_alloc_algo_owner' ld: drivers/accel/ivpu/ivpu_ipc.o: in function `gen_pool_free': include/linux/genalloc.h:172: undefined reference to `gen_pool_free_owner' ld: drivers/accel/ivpu/ivpu_ipc.o: in function `ivpu_ipc_init': drivers/accel/ivpu/ivpu_ipc.c:441: undefined reference to `devm_gen_pool_create' ld: drivers/accel/ivpu/ivpu_ipc.o: in function `gen_pool_add_virt': include/linux/genalloc.h:104: undefined reference to `gen_pool_add_owner' Fixes: 5d7422cfb498 ("accel/ivpu: Add IPC driver and JSM messages") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Link: https://lore.kernel.org/all/202305221206.1TaugDKP-lkp@intel.com/ Cc: Oded Gabbay Cc: dri-devel@lists.freedesktop.org Cc: Jacek Lawrynowicz Cc: Stanislaw Gruszka Cc: Andrzej Kacprowski Cc: Krystian Pradzynski Cc: Jeffrey Hugo Cc: Daniel Vetter --- drivers/accel/ivpu/Kconfig | 1 + 1 file changed, 1 insertion(+) diff -- a/drivers/accel/ivpu/Kconfig b/drivers/accel/ivpu/Kconfig --- a/drivers/accel/ivpu/Kconfig +++ b/drivers/accel/ivpu/Kconfig @@ -7,6 +7,7 @@ config DRM_ACCEL_IVPU depends on PCI && PCI_MSI select FW_LOADER select SHMEM + select GENERIC_ALLOCATOR help Choose this option if you have a system that has an 14th generation Intel CPU or newer. VPU stands for Versatile Processing Unit and it's a CPU-integrated