From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26B7FC433EF for ; Thu, 17 Mar 2022 08:31:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A45C06B0071; Thu, 17 Mar 2022 04:31:14 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9F5EA8D0002; Thu, 17 Mar 2022 04:31:14 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8E4078D0001; Thu, 17 Mar 2022 04:31:14 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.25]) by kanga.kvack.org (Postfix) with ESMTP id 7FA716B0071 for ; Thu, 17 Mar 2022 04:31:14 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 4FABD21A95 for ; Thu, 17 Mar 2022 08:31:14 +0000 (UTC) X-FDA: 79253208468.08.4706FF1 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by imf26.hostedemail.com (Postfix) with ESMTP id 8CF8E14000F for ; Thu, 17 Mar 2022 08:31:13 +0000 (UTC) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 412B6493; Thu, 17 Mar 2022 09:31:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1647505871; bh=zckWkHxnQHSG9CY9FWrVavqbKhRpSzeNobeFaVXdGkY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=r+VR2yMWdA5zzd3LDHdRtmMQdp61iZ27KbYlTA+E1I+/io9Jp3IRdeFNGTjDhR5kH XJv8ZmJSltlDIi/nwXAPZxdDIO5JgwHPo3cIDvgyqvM4haCGt/s79ORgjp+x0sbG6i v27cnhdvSuHtIcT3+DsRUMnYmqP3A889MtSyi0mI= Date: Thu, 17 Mar 2022 10:30:54 +0200 From: Laurent Pinchart To: Jacopo Mondi Cc: kernel test robot , Mauro Carvalho Chehab , kbuild-all@lists.01.org, Linux Memory Management List , linux-media@vger.kernel.org Subject: Re: [linux-next:master 12222/13209] ERROR: modpost: "v4l2_subdev_link_validate" [drivers/media/platform/nxp/imx-mipi-csis.ko] undefined! Message-ID: References: <202203170501.AhqUekoF-lkp@intel.com> <20220317081943.imr6o6l5nyhoehxi@uno.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220317081943.imr6o6l5nyhoehxi@uno.localdomain> X-Rspam-User: X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 8CF8E14000F X-Stat-Signature: edo84akij4ddrayybm4ohoi46hmecoze Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=ideasonboard.com header.s=mail header.b=r+VR2yMW; dmarc=none; spf=pass (imf26.hostedemail.com: domain of laurent.pinchart@ideasonboard.com designates 213.167.242.64 as permitted sender) smtp.mailfrom=laurent.pinchart@ideasonboard.com X-HE-Tag: 1647505873-347762 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Jacopo, On Thu, Mar 17, 2022 at 09:19:43AM +0100, Jacopo Mondi wrote: > Laurent, Mauro, > > I'm having a bit of troubles to get what's missing in the CSIS Kconfig > > On Thu, Mar 17, 2022 at 05:31:13AM +0800, kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > > head: 8a11187eb62b8b910d2c5484e1f5d160e8b11eb4 > > commit: 67d841549e43ddcfc8ecc75cf86df1c5b48fe007 [12222/13209] media: platform/*/Kconfig: make manufacturer menus more uniform > > config: nios2-randconfig-r014-20220317 (https://download.01.org/0day-ci/archive/20220317/202203170501.AhqUekoF-lkp@intel.com/config) > > compiler: nios2-linux-gcc (GCC) 11.2.0 > > reproduce (this is a W=1 build): > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > > chmod +x ~/bin/make.cross > > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=67d841549e43ddcfc8ecc75cf86df1c5b48fe007 > > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > > git fetch --no-tags linux-next master > > git checkout 67d841549e43ddcfc8ecc75cf86df1c5b48fe007 > > # save the config file to linux build tree > > mkdir build_dir > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nios2 SHELL=/bin/bash > > > > If you fix the issue, kindly add following tag as appropriate > > Reported-by: kernel test robot > > > > All errors (new ones prefixed by >>, old ones prefixed by <<): > > > > >> ERROR: modpost: "v4l2_subdev_link_validate" [drivers/media/platform/nxp/imx-mipi-csis.ko] undefined! > > >> ERROR: modpost: "v4l2_subdev_get_fwnode_pad_1_to_1" [drivers/media/platform/nxp/imx-mipi-csis.ko] undefined! > > >> ERROR: modpost: "v4l_bound_align_image" [drivers/media/platform/nxp/imx-mipi-csis.ko] undefined! > > >> ERROR: modpost: "v4l2_async_register_subdev" [drivers/media/platform/nxp/imx-mipi-csis.ko] undefined! > > >> ERROR: modpost: "v4l2_async_subdev_nf_register" [drivers/media/platform/nxp/imx-mipi-csis.ko] undefined! > > >> ERROR: modpost: "__v4l2_async_nf_add_fwnode_remote" [drivers/media/platform/nxp/imx-mipi-csis.ko] undefined! > > >> ERROR: modpost: "v4l2_fwnode_endpoint_parse" [drivers/media/platform/nxp/imx-mipi-csis.ko] undefined! > > >> ERROR: modpost: "v4l2_async_nf_init" [drivers/media/platform/nxp/imx-mipi-csis.ko] undefined! > > >> ERROR: modpost: "v4l2_subdev_init" [drivers/media/platform/nxp/imx-mipi-csis.ko] undefined! > > >> ERROR: modpost: "v4l2_async_unregister_subdev" [drivers/media/platform/nxp/imx-mipi-csis.ko] undefined! > > WARNING: modpost: suppressed 5 unresolved symbol warnings because there were too many) > > The missing symbols here are from v4l2-subdev.c v4l2-async.c and > v4l2-fwnode.c. > > The CSIS Kconfig entry looks like this > > # SPDX-License-Identifier: GPL-2.0-only > > ------------------------------------------------------------------------------- > menuconfig VIDEO_IMX > bool "V4L2 capture drivers for NXP i.MX devices" > depends on ARCH_MXC || COMPILE_TEST > depends on VIDEO_DEV && VIDEO_V4L2 > help > Say yes here to enable support for capture drivers on i.MX SoCs. > Support for the single SoC features are selectable in the sub-menu > options. > > if VIDEO_IMX > > config VIDEO_IMX_MIPI_CSIS > tristate "MIPI CSI-2 CSIS receiver found on i.MX7 and i.MX8 models" > select MEDIA_CONTROLLER > select V4L2_FWNODE > select VIDEO_V4L2_SUBDEV_API > default n > help > Video4Linux2 sub-device driver for the MIPI CSI-2 CSIS receiver > v3.3/v3.6.3 found on some i.MX7 and i.MX8 SoCs. > > endif # VIDEO_IMX > ------------------------------------------------------------------------------- > > The VIDEO_V4L2 dependency on the menu entry should make sure > v4l2-subdev.c is selected > > ------- drivers/media/v4l2-core/Makefile -------------- > > videodev-objs := v4l2-dev.o v4l2-ioctl.o v4l2-device.o v4l2-fh.o \ > v4l2-event.o v4l2-subdev.o v4l2-common.o \ > v4l2-ctrls-core.o v4l2-ctrls-api.o \ > v4l2-ctrls-request.o v4l2-ctrls-defs.o > > obj-$(CONFIG_VIDEO_V4L2) += videodev.o > -------------------------------------------------------- > > and the driver selects V4L2_FWNODE and VIDEO_V4L2_SUBDEV_API. > > I understand v4l2-async might be missing, but why are the other > symbols not selected as it seems to me they should be ? > > > > > Kconfig warnings: (for reference only) > > WARNING: unmet direct dependencies detected for VIDEO_V4L2_SUBDEV_API > > Depends on MEDIA_SUPPORT && VIDEO_DEV && MEDIA_CONTROLLER > > VIDEO_DEV is not selected in the config file used by the robot to > generate this report, > > CONFIG_MEDIA_SUPPORT=m > # CONFIG_VIDEO_DEV is not set > CONFIG_MEDIA_CONTROLLER=y > > so in this case CSIS should not be selectable as the parent menuconfig > should not be visible if !VIDEO_DEV ? I think this is now fixed in the latest media tree, by commit e4e92b9a6d86fe4122290e521f50d64dc1404a4c Author: Mauro Carvalho Chehab Date: Sun Mar 13 07:25:46 2022 +0100 media: Kconfig: cleanup VIDEO_DEV dependencies > > Selected by > > - VIDEO_IMX_MIPI_CSIS && MEDIA_SUPPORT && MEDIA_PLATFORM_SUPPORT && MEDIA_PLATFORM_DRIVERS > > > > --- > > 0-DAY CI Kernel Test Service > > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org -- Regards, Laurent Pinchart