Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3832016pxb; Mon, 8 Feb 2021 00:56:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJyyxyQb6A6QVEerZszlKBdVVbU8xmEl7NrMhPdWLvF3BweOosO4DY5ybFD/naiX98kgUyaH X-Received: by 2002:a17:906:5857:: with SMTP id h23mr15472179ejs.465.1612774606132; Mon, 08 Feb 2021 00:56:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612774606; cv=none; d=google.com; s=arc-20160816; b=TWSz93gJEo9UgmTrQNuyyXLXbFsL0w0YQqo8attlX+d1PnpkX5tDh6SSX2uQD5k93Z mIGWlIjnkMihcLqgSA8/VIcNqkE0fN36QdRNqPF3E1p+/w/E0SfZM9eXozCJTyZjBjJr +hUMf9lkH+zgAclhzr480fGx/Am3eYRxbxT02WXMNKC6T+RoMNozCyLMTazrFxAxi3Lk jz+3hMnxI3YbB/fs1Dws68kh22I+GS6JVJ2XgzZyUakSE5LdzNFKpBxib08CHGBdaPV2 ulBJ8fJ5mHBxusi2TjT8Ic+HDuNf6JSm8RXu9ZeGgpf8GJFNapvOyoLkTTot0pCaVXqb 7LUA== 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=y9ZGHU8evgoofaHhp7XbfrLRlNU40/hUs4uXlANSp1Q=; b=f8a98Foo8PZd/6xGwtvCjn/HT23czFqgKVU1IsO3s99GzMluIxmsdxSdNR+VB+aUKW 8lveZlQuJPEdJYaqdXIidJMqGgvvY2Bmx05I1DNxMfgOM8azuPQ5pJTlWgy6KNmuAygU F5EkHlTe0W1Cx4fTsyKmViXr1d+dpaOdfwOCunEzZIQ4mveL+9uhU8+K74cK7O/kcWSw tlDzTlgv8LXk2e7wV6q9JRCblyIA12z9nlA/aPiQ3l/GzddTNNE5YwGJ7cpdcV7TvWAt ES8QUKsyvUMfJpT/8SiS3qaKSJQWRIJNvPxsDgj+pz74ymCEmfWjpDyWN2Ny62JFqzHQ 0+IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V0FWVUIL; 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 t5si9904424ejb.381.2021.02.08.00.56.22; Mon, 08 Feb 2021 00:56:46 -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=V0FWVUIL; 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 S231206AbhBHIyC (ORCPT + 99 others); Mon, 8 Feb 2021 03:54:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:41862 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230328AbhBHIts (ORCPT ); Mon, 8 Feb 2021 03:49:48 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 94FA360232; Mon, 8 Feb 2021 08:49:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612774146; bh=X5abW4YXcgR/cJ5kVqBOscV0jSor3pRePsy0mqCzwNA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=V0FWVUILDGpw8ktMFYTeA59JNKjykYWV3A+3n3ROWjH8iQfpB85II1IpAfD+CzYTQ uMsLQUN1ahX/NHUAlBDDZyG4PY3FjZM74w1YXfYaUYlat4zuCpSaJ9D8cWushwBizP oX0kUMxsNk62U13kIQlb91IWubOL1roHXzllft9Ca/o7MOYFqFD+U0tHqeVt70r6fh ONRLtyVNhXQW4UrYSSlOX30LZ36YBTJGF9ZPdtuLi02wrooJNzeb+KYIqKEJikp8+o 4bZZENOPUABSzU92Ghz54sPxJi/AkNJZHnvxSsOtiDkTZ3WjpqQAt9h7ePGHLiyGil 90dg3xRg7XzFw== Date: Mon, 8 Feb 2021 09:49:01 +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: <20210208094901.087762b8@coco.lan> In-Reply-To: References: <20210208113208.35449879@canb.auug.org.au> <20210208073037.0b9fe4b9@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: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, 8 Feb 2021 09:33:14 +0100 Geert Uytterhoeven escreveu: > On Mon, Feb 8, 2021 at 7:35 AM Mauro Carvalho Chehab wrote: > > Em Mon, 8 Feb 2021 11:32:08 +1100 > > Stephen Rothwell escreveu: > > > > > 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: 'max9271_set_serial_link' exported twice. Previous export was in drivers/media/i2c/rdacm20-camera_module.ko > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max9271_configure_i2c' exported twice. Previous export was in drivers/media/i2c/rdacm20-camera_module.ko > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max9271_set_high_threshold' exported twice. Previous export was in drivers/media/i2c/rdacm20-camera_module.ko > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max9271_configure_gmsl_link' exported twice. Previous export was in drivers/media/i2c/rdacm20-camera_module.ko > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max9271_set_gpios' exported twice. Previous export was in drivers/media/i2c/rdacm20-camera_module.ko > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max9271_clear_gpios' exported twice. Previous export was in drivers/media/i2c/rdacm20-camera_module.ko > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max9271_enable_gpios' exported twice. Previous export was in drivers/media/i2c/rdacm20-camera_module.ko > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max9271_disable_gpios' exported twice. Previous export was in drivers/media/i2c/rdacm20-camera_module.ko > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max9271_verify_id' exported twice. Previous export was in drivers/media/i2c/rdacm20-camera_module.ko > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max9271_set_address' exported twice. Previous export was in drivers/media/i2c/rdacm20-camera_module.ko > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max9271_set_deserializer_address' exported twice. Previous export was in drivers/media/i2c/rdacm20-camera_module.ko > > > WARNING: modpost: drivers/media/i2c/rdacm21-camera_module: 'max9271_set_translation' exported twice. Previous export was in drivers/media/i2c/rdacm20-camera_module.ko > > > > > > Introduced by commit > > > > > > a59f853b3b4b ("media: i2c: Add driver for RDACM21 camera module") > > > > > > > It sounds to be due to a Makefile mess: > > > > drivers/media/i2c/Makefile:rdacm20-camera_module-objs := rdacm20.o max9271.o > > drivers/media/i2c/Makefile:rdacm21-camera_module-objs := rdacm21.o max9271.o > > > > Neither drivers should be including max9271.o as their objects, but, instead, > > be addressing max9271 dependency via Kconfig. > > Wouldn't > > obj-$(CONFIG_VIDEO_RDACM20) += rdacm20.o max9271.o > obj-$(CONFIG_VIDEO_RDACM21) += rdacm21.o max9271.o > > work, too? Not 100% sure, but I guess this would cause problems with allyesconfig. Thanks, Mauro