From patchwork Sat May 13 17:57:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 93566 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp5908232vqo; Sat, 13 May 2023 11:10:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7pjDIoeya7fbvDWZ0qsr4YRp/2QWoNe/jGtwxaPvGw+zwLwcETMbYxlMLqcjC6IuDTnDbr X-Received: by 2002:a05:6a20:3d27:b0:100:99a:7f71 with SMTP id y39-20020a056a203d2700b00100099a7f71mr32096652pzi.2.1684001432109; Sat, 13 May 2023 11:10:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684001432; cv=none; d=google.com; s=arc-20160816; b=OwVee1cfMCj4BPvw9qnaUhNogG8vB6Am7HJ3dDGqlRVwYErCRTIdqr+dwA+9ED2846 gB+0XbwpCt5ViyHv70ic/FOm+tK/tRYThv3Dqa/lifEidxL0w3fGpgvKdeYUYt7ahmui rrh+HYtiQyWkhDdPV54jyeaQ6JOFFiJtui8K7p+SgdNnC4TbYG5l7O5Lzwa/SsEUxSBb XRpp2tivV/oT70xu3NxWAT8UnVJncv2uuvU5CG8BADputKBiY2XoVER2FjswvvCNoCDX 8SNslMXKzLKDzsFcCVAaBbZMvDGaOMtvEyCSkeg44Yint6/RPFuCh7AP1j1vwG5zThsL gPcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=F144OLqNP2bLKrGU6O6wsNtnbmoZHjsCsV7x0tYJafI=; b=OFAQfFm0NpJh2+pDo3tYkajQGlQZaRl2h/KZsRZUU7DIb+8QP5TyjAHQHlzkGQD/zc uykfx3BANcFkuD8hstoc2p9fg+LVKvGwLALaAITxqcwME065xcjA073qFIJhGS8cVzbq Ijqbfuef/uOgJ8NdcSQKaxinQQAJt6k3W0DhM17978YMD7XKojDrpSw7codnZyxqmafR WoZO31lHYLXIsHOq+mhpgIwakIoQeyCRo27UukX41C9qjY5Fg+bK/UeGxHLgQyYe/1RK lZkfy937KB+kD2AJWKIcn+staL2npUR/3T+n4DKoT0qE7Rw3bp2aW24gOlXJTH5rdpX8 3UjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b="dR/m4fFT"; 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 w190-20020a6230c7000000b0063b1fbbb8c5si12843909pfw.131.2023.05.13.11.10.19; Sat, 13 May 2023 11:10:32 -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=fail header.i=@kernel.org header.s=k20201202 header.b="dR/m4fFT"; 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 S229654AbjEMR6K (ORCPT + 99 others); Sat, 13 May 2023 13:58:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233461AbjEMR5u (ORCPT ); Sat, 13 May 2023 13:57:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A95DE273F; Sat, 13 May 2023 10:57:49 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 6D49461C28; Sat, 13 May 2023 17:57:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3696BC433A8; Sat, 13 May 2023 17:57:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684000666; bh=1qTBZIy/0s0rnJPtyTEqiDh0a/SvnY8Eo2eM/Rkf/i0=; h=From:To:Cc:Subject:Date:From; b=dR/m4fFTbTZvr+QfxNN98GnzkeguwI3JEAJWtSOMPjk6Lm1NO4KHMb7PSYsiP2EWs KF1hrEZzjMtl349HfMlFJtQQ8eSI80uZp7ehJkmcvV2R+5e1h0rrkrSQM1Qogfafh/ S7oG/jFyShwI87BCxRkOSgefHEHg+39hDwwIKee32IsY/KXjJZi8ztPKn/vR32b2vQ MNma0NGsc4DSqvLUHDlpdHw6268DTH/Z+H2/J42cxVtC1xDCiYnfN2W6Crmwtt+gHP yUd7/nSNtfjyQH0ZgrIf3tOZdvHNC1i2+xWFwvN0uyA7GAGnbYI+RBXcjqKk5Q05e+ gYjQolSHSNipA== Received: from mchehab by mail.kernel.org with local (Exim 4.96) (envelope-from ) id 1pxtV1-001txS-0k; Sat, 13 May 2023 18:57:43 +0100 From: Mauro Carvalho Chehab Cc: Arnd Bergmann , Hans Verkuil , Lecopzer Chen , Mauro Carvalho Chehab , Mike Isely , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH 01/24] media: pvrusb2: fix DVB_CORE dependency Date: Sat, 13 May 2023 18:57:18 +0100 Message-Id: <53558de2b5c4f4ee6bfcfbe34e27071c2d0073d5.1684000646.git.mchehab@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) 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?1765803485895996582?= X-GMAIL-MSGID: =?utf-8?q?1765803485895996582?= From: Arnd Bergmann Now that DVB_CORE can be a loadable module, pvrusb2 can run into a link error: ld.lld: error: undefined symbol: dvb_module_probe >>> referenced by pvrusb2-devattr.c >>> drivers/media/usb/pvrusb2/pvrusb2-devattr.o:(pvr2_lgdt3306a_attach) in archive vmlinux.a ld.lld: error: undefined symbol: dvb_module_release >>> referenced by pvrusb2-devattr.c >>> drivers/media/usb/pvrusb2/pvrusb2-devattr.o:(pvr2_dual_fe_attach) in archive vmlinux.a Refine the Kconfig dependencies to avoid this case. Link: https://lore.kernel.org/linux-media/20230117171055.2714621-1-arnd@kernel.org Fixes: 7655c342dbc4 ("media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y") Signed-off-by: Arnd Bergmann Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/pvrusb2/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/usb/pvrusb2/Kconfig b/drivers/media/usb/pvrusb2/Kconfig index 9501b10b31aa..0df10270dbdf 100644 --- a/drivers/media/usb/pvrusb2/Kconfig +++ b/drivers/media/usb/pvrusb2/Kconfig @@ -37,6 +37,7 @@ config VIDEO_PVRUSB2_DVB bool "pvrusb2 ATSC/DVB support" default y depends on VIDEO_PVRUSB2 && DVB_CORE + depends on VIDEO_PVRUSB2=m || DVB_CORE=y select DVB_LGDT330X if MEDIA_SUBDRV_AUTOSELECT select DVB_S5H1409 if MEDIA_SUBDRV_AUTOSELECT select DVB_S5H1411 if MEDIA_SUBDRV_AUTOSELECT