From patchwork Wed Dec 6 20:48:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 174727 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp4369887vqy; Wed, 6 Dec 2023 12:48:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IEqjh6BUlxvwb6zbvuzk+4HQHUhz/0sjdezRzz6WuuYkwkpoW5g0FNhKZZK+x4TZQdZvMYA X-Received: by 2002:a17:902:ee8c:b0:1d1:ce10:d703 with SMTP id a12-20020a170902ee8c00b001d1ce10d703mr1279272pld.91.1701895725224; Wed, 06 Dec 2023 12:48:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701895725; cv=none; d=google.com; s=arc-20160816; b=Gz6hCLXoxMOOL0l80DlikU1/YSlcBft/uz0Wij3X/LpbdYCTktAtThQNS/mVYVQzkB Q/taLZPCCPftdUPwGoCRo+IIjstWUfybATFO9U8m2eUqIfOs9hKxI3ndGuG6OuRK14B3 KOV6BDKfCwcIyAEpQOSxBHURtBx/clSKqDII1NGmO/JTN6s/awGRweWBh3QMDmyvzWwJ gsrWnEgeUcwIevbl3xgnAabVSu/VnHXllVGoP+my0ik95UD4d7WS2g0IaIeIHMqUArh2 EFj5q86wPe7YO2lPZexXx9HX6Iyon0NSDkW4DhfS1BwOUmyvPP4+jyBX27K3sY2RxOdP Z+rg== 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=aBy9F9kxxPHfX2iwr4WNWrmiHbFVf5OKMgUWN/MZxMY=; fh=3In/iSjBLcz6Mx46y/lroUmGfZUOqYQm7xJaCJORgBM=; b=ZcNVuAn5iyTBNqmSyicDk0GCsBu+ZApaZRkEzMhIovG2SLcIB3izqWXSeHrV5CX3RW fUvEbR54Ez29+Qc6R08labZtW2zXsW8ylE+2KMmwT3/e74Qql7orc6LA81eoy59TVzE7 BjitRw9pYuE7uXqEiTgkV0XLEF77sRpp+ZkrAST4EdwpqLKKMw7Yg+EHJhCHgQnHRD/P eHPw54dy5Oa5H+hKa2bSeW5R6/0jzmeHeHb2X4rrVq8QEv6uVMmgNmsKL+IFwjaqmvgn rSwEwesVNBugM7BOogzt2qmOSM/M/zTQhQjIzdWGrXIm300Er1uGWpEIU/07S41gJdTh UJLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=4ed1oWJh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id q8-20020a17090311c800b001d0b4bfcbd7si352659plh.247.2023.12.06.12.48.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 12:48:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=4ed1oWJh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 8B32F80BA69A; Wed, 6 Dec 2023 12:48:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379522AbjLFUsc (ORCPT + 99 others); Wed, 6 Dec 2023 15:48:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230307AbjLFUsb (ORCPT ); Wed, 6 Dec 2023 15:48:31 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0AD7C7; Wed, 6 Dec 2023 12:48:37 -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:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=aBy9F9kxxPHfX2iwr4WNWrmiHbFVf5OKMgUWN/MZxMY=; b=4ed1oWJhWhoKn3jb19vkRj5F9+ 5efmRwI3yxoAVQ0Z8U+/WE4hZLU2MEdBaI4R4U+Zmkffa7Pnc/9vUx0ii5SODjr5XlIkaAgtRQvbI XT6uRlbB4yENkrokgg8fJkZVKjvxh0684zgOV7jJCCg4OD1gRrrQQTKWYQvuOtvUuef+jcB+LFDT9 px5ypJl1X3kV2BFc3doN0Po5bcSvGhV0tqySqFcyXb8x4lDwg5BHW8fhtFjDmDe77GcRGSfb/b4Xq aF0panlrkikQ/tqWia1/j4dKF27w8Z8bA+fPamWrZpoOxTSYoxXt9ZQJPB4DbjRPUlzyBbuvzOTCO h3gjnICg==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rAyov-00BFMR-0d; Wed, 06 Dec 2023 20:48:37 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Nas Chung , Jackson Lee , Hans Verkuil , Mauro Carvalho Chehab , linux-media@vger.kernel.org Subject: [PATCH] media: chips-media: wave5: requires GENERIC_ALLOCATOR Date: Wed, 6 Dec 2023 12:48:36 -0800 Message-ID: <20231206204836.27932-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 06 Dec 2023 12:48:41 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784567012109778609 X-GMAIL-MSGID: 1784567012109778609 This driver uses the API that is provided by GENERIC_ALLOCATOR API, so select it to prevent build errors: riscv32-linux-ld: drivers/media/platform/chips-media/wave5/wave5-vpu.o: in function `.L37': wave5-vpu.c:(.text+0x468): undefined reference to `of_gen_pool_get' riscv32-linux-ld: drivers/media/platform/chips-media/wave5/wave5-vdi.o: in function `.L116': wave5-vdi.c:(.text+0xaac): undefined reference to `gen_pool_dma_alloc' riscv32-linux-ld: drivers/media/platform/chips-media/wave5/wave5-vdi.o: in function `wave5_vdi_free_sram': wave5-vdi.c:(.text+0xb60): undefined reference to `gen_pool_free_owner' Fixes: 9707a6254a8a ("media: chips-media: wave5: Add the v4l2 layer") Signed-off-by: Randy Dunlap Cc: Nas Chung Cc: Jackson Lee Cc: Hans Verkuil Cc: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org --- drivers/media/platform/chips-media/wave5/Kconfig | 1 + 1 file changed, 1 insertion(+) diff -- a/drivers/media/platform/chips-media/wave5/Kconfig b/drivers/media/platform/chips-media/wave5/Kconfig --- a/drivers/media/platform/chips-media/wave5/Kconfig +++ b/drivers/media/platform/chips-media/wave5/Kconfig @@ -6,6 +6,7 @@ config VIDEO_WAVE_VPU select VIDEOBUF2_DMA_CONTIG select VIDEOBUF2_VMALLOC select V4L2_MEM2MEM_DEV + select GENERIC_ALLOCATOR help Chips&Media stateful encoder and decoder driver. The driver supports HEVC and H264 formats.