Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3853301pxb; Mon, 8 Feb 2021 01:36:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/y26b4+Ikg4mPY5nqAms1WgEEfrlS3gdwqSARMgQaksJq1VGybvH6vmBi8H7PdpkBxtFr X-Received: by 2002:a05:6402:105a:: with SMTP id e26mr14241811edu.60.1612776997639; Mon, 08 Feb 2021 01:36:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612776997; cv=none; d=google.com; s=arc-20160816; b=Dq/1tHMEyv98cTcK6Zkyk/AraBnXX1vTPKSae6+Ke+yZsI1xtoiU0PR65qfeJmkyXN qU0YIie7u6vNY+Lp9j53vut0gRy4cZ2O/k78attKtUKPR28Mo46LU2XmvG0ve52m29/p SRCrIIXUYyMvkH60KCJIGcw0YphcuvX0dFtiPXU49QByqKcbWatOIVU+F4uFV4fR3OTX NqMK1jSwr+ZFv4ujfFUFUvlCvwqFiZyDlK5hjQ2BXUcuX3I3kQDU7fZeIS+rducr9wGy 6W8Z0KIgcHp8U0kpor1KY1TCrsKRxXOw1bGR4Dt8PXgd1OHMR6qgPr654HTs29v9L557 hRqA== 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:subject:cc:to:from:date :dkim-signature; bh=nJHo23/5VOTvh7eJD9ReBkg5Wyb3BzaDVJyzt3ZWluE=; b=c1Viq2hNfXu+Cxh2F0XKW4tERDm0OMsT0odU6YvaVh1HOjXUSAjSa6d+MKvy09aVxH BTnx8apDMrQWT1BgZxYnNoGVt+isX4bZAYK/e57bAKm9TwR4imMW2XNeqVcMePsEDjul v11188gtpaH57hBIGIajIa4WCy0KnpA8J5yzd8DJldI3OVbAax1iWdoKkRmgBnYOQivz 9TVpE9t7LmNYvRNd8u8mENytxcQIKxf7tRPuj1wp8QdWzCWM5s+BvGnaQFSk41rRgSrE CfdDy0nTZHzCaxKKe7R7kvWtKxcEY9djf+nE55TIRnqcyF+sapl1LklGtf4sd26cimp2 O8JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A1ggO496; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a89si11547554ede.326.2021.02.08.01.36.14; Mon, 08 Feb 2021 01:36:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A1ggO496; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231785AbhBHJd6 (ORCPT + 99 others); Mon, 8 Feb 2021 04:33:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:47618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231592AbhBHJPT (ORCPT ); Mon, 8 Feb 2021 04:15:19 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B031364E85; Mon, 8 Feb 2021 09:14:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612775662; bh=G4WQRGueEkXdgCtZG/8wFmeEh0IRMqEvYE9VGIoB5yI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=A1ggO496/Pnf9ryoeK3pfkVGmITnfP2e0/GQ54w/IswUAGByT845I0Hfz5zS+e9yu hciS+CgX/RPHOzvCS9uJLwaXdk7P0krK2SVbEjLGP8/Z0hlgkUxJsboDD10buqXEPz tAi6BR0CimBXC7wu3gUPvZh6yZfqcZ8LZ7/5fRfiBDXaTuiEiafu7zBrTAGlmj5Axu yjXhl4wl1KdyNTqR+Q20w2fBsyezd40TsId1UNJbmlNF5sLvmVPYqPO9xLqW710V38 poIPOnxGtekl4L813DhS2CoPT+RWijDr5GQp+IoWlxaL5WTSjE6BBtSmR4vgImEF3w N8og5EgxZqjCw== Date: Mon, 8 Feb 2021 10:14:17 +0100 From: Mauro Carvalho Chehab To: Geert Uytterhoeven Cc: Stephen Rothwell , Jacopo Mondi , Sakari Ailus , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build warning after merge of the v4l-dvb tree Message-ID: <20210208101417.236157b0@coco.lan> In-Reply-To: References: <20210208113208.35449879@canb.auug.org.au> <20210208073037.0b9fe4b9@coco.lan> <20210208094901.087762b8@coco.lan> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, 8 Feb 2021 09:52:22 +0100 Geert Uytterhoeven escreveu: > Hi Mauro, >=20 > On Mon, Feb 8, 2021 at 9:49 AM Mauro Carvalho Chehab = wrote: > > Em Mon, 8 Feb 2021 09:33:14 +0100 > > Geert Uytterhoeven escreveu: =20 > > > On Mon, Feb 8, 2021 at 7:35 AM Mauro Carvalho Chehab wrote: =20 > > > > Em Mon, 8 Feb 2021 11:32:08 +1100 > > > > Stephen Rothwell escreveu: > > > > =20 > > > > > After merging the v4l-dvb tree, today's linux-next build (x86_64 > > > > > allmodconfig) produced this warning: > > > > > > > > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max92= 71_set_serial_link' exported twice. Previous export was in drivers/media/i2= c/rdacm20-camera_module.ko > > > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max92= 71_configure_i2c' exported twice. Previous export was in drivers/media/i2c/= rdacm20-camera_module.ko > > > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max92= 71_set_high_threshold' exported twice. Previous export was in drivers/media= /i2c/rdacm20-camera_module.ko > > > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max92= 71_configure_gmsl_link' exported twice. Previous export was in drivers/medi= a/i2c/rdacm20-camera_module.ko > > > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max92= 71_set_gpios' exported twice. Previous export was in drivers/media/i2c/rdac= m20-camera_module.ko > > > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max92= 71_clear_gpios' exported twice. Previous export was in drivers/media/i2c/rd= acm20-camera_module.ko > > > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max92= 71_enable_gpios' exported twice. Previous export was in drivers/media/i2c/r= dacm20-camera_module.ko > > > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max92= 71_disable_gpios' exported twice. Previous export was in drivers/media/i2c/= rdacm20-camera_module.ko > > > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max92= 71_verify_id' exported twice. Previous export was in drivers/media/i2c/rdac= m20-camera_module.ko > > > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max92= 71_set_address' exported twice. Previous export was in drivers/media/i2c/rd= acm20-camera_module.ko > > > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max92= 71_set_deserializer_address' exported twice. Previous export was in drivers= /media/i2c/rdacm20-camera_module.ko > > > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max92= 71_set_translation' exported twice. Previous export was in drivers/media/i2= c/rdacm20-camera_module.ko > > > > > > > > > > Introduced by commit > > > > > > > > > > a59f853b3b4b ("media: i2c: Add driver for RDACM21 camera module= ") > > > > > =20 > > > > > > > > It sounds to be due to a Makefile mess: > > > > > > > > drivers/media/i2c/Makefile:rdacm20-camera_module-objs := =3D rdacm20.o max9271.o > > > > drivers/media/i2c/Makefile:rdacm21-camera_module-objs := =3D rdacm21.o max9271.o > > > > > > > > Neither drivers should be including max9271.o as their objects, but= , instead, > > > > be addressing max9271 dependency via Kconfig. =20 > > > > > > Wouldn't > > > > > > obj-$(CONFIG_VIDEO_RDACM20) +=3D rdacm20.o max9271.o > > > obj-$(CONFIG_VIDEO_RDACM21) +=3D rdacm21.o max9271.o > > > > > > work, too? =20 > > > > Not 100% sure, but I guess this would cause problems with allyesconfig.= =20 >=20 > Duplicates will be filtered out. > An example using this method is drivers/net/ethernet/8390/Makefile. Good to know! =46rom my side, I prefer that support for different chips would have their own Kconfig vars. It seems to document better what's happening there. Thanks, Mauro