Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3824947pxb; Mon, 8 Feb 2021 00:41:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4H/GIWe26tzqlIy384osZdWCQ+t8KsO0iR9CRNh72MZ7FV6TKCCKurf9tHBcmimoHfutc X-Received: by 2002:a05:6402:27cf:: with SMTP id c15mr15836036ede.179.1612773684879; Mon, 08 Feb 2021 00:41:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612773684; cv=none; d=google.com; s=arc-20160816; b=Jyk3dw9le1/nta6Z/mJtjIvvvVDdUDX9Ay85P2eOUM0SI7dqcmV8rKcSXo5GtyZXMJ 76AutG/PIhCxV5fUmBFoY8CKEQU8bEESdaKZ9c31r7p8jOg3vfbJ8qzuRabFHM6LnzNQ lLgkLDxKrRbEVKPPAr4VYcd8rf4x9ReSGj7u9QMirGWm9Um6AM4WajOvcBNNiBWeDkQy Ja24uJLSOeQZaLIO3VvbNb7qVU2hgaq9rC83GyiOkjWRiqW3+YivwDdUwPadcYsEc+x9 OZHDCBcgCvsdHBhQpMXKvZOuK0zHwGNinaLZPZrsyVB5XgtKacwChmO5LjYHq3+YnpSI jBAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=co1TXlQdWofol0Al5pkdhkz1Nbg1ElaHw2eyB47/d/o=; b=eUXyeXpHQS0/0wz8GDrW4wtpeqSjvzsgQE00y6bF7Jhio9myOreGUWjLWhsRJHIb6U H/v2Gn5FEBukExdnWNubIa9C4y/E4GIBIGnLNipJYmZEV+nFa/e6qD0iBE3ufF4kfeYz nGwK50QBJs6VakO5LC2pF1kZWP6sYIna/ioSDaWRM24pr4UHLlWfOgIuKOB1eQ5W53Ot wFIVfPxCRKEITiiMA5PC/3PxzcboPk7x9+U7+Y/WxFZblc9LCss7zkA93539fjBJ62Yf ivZ/RpsUXN7XmmF666t/EKdcMdDxFPpZ1i1nCuYqJj5AhxhY2imKSUBy5fJjNyTQNppL 1ItA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m12si11125226edi.590.2021.02.08.00.41.01; Mon, 08 Feb 2021 00:41:24 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230273AbhBHIgb (ORCPT + 99 others); Mon, 8 Feb 2021 03:36:31 -0500 Received: from mail-oi1-f173.google.com ([209.85.167.173]:37895 "EHLO mail-oi1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230209AbhBHIeH (ORCPT ); Mon, 8 Feb 2021 03:34:07 -0500 Received: by mail-oi1-f173.google.com with SMTP id h6so14823626oie.5; Mon, 08 Feb 2021 00:33:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=co1TXlQdWofol0Al5pkdhkz1Nbg1ElaHw2eyB47/d/o=; b=htpZyeDnu8DANExKS+va1WTTyGTVUPWbBYxKsEy/tAHaizWknOmOXN9R9MKJRCo4ye kXNmNWT8e6Qfk4Xo9SbGyPuf19Kg0+X/bJtPWRJ3tKmzYFVkzpiZgqNbh7/46zlgvpHO cCEPl9tcdgPE/iIDMeY9JM08b40w+PBAZ2Orx20hR5v3WdtiK442qlWH+a+u52OHIFuo ijK0Qlfrg3ygQ6u5skqGn70xcHj6KDdYn6cH5CH4ZIP7cIewe1Bu4WU9g0aMpMm5oMej aBI2eISeaxPEtkqQwT6F/3TDzYOKGAZthvD8MXjPnY9idV3csLjqxZKUhBBul7VnAGnl 6aiw== X-Gm-Message-State: AOAM531Tv+CL5aTidcqlIs8G5IAlDF5wYZyupliruDgHz/At6pp2iJCA q4PfzsRosUjv2g52yivIsZx9WQDZzoDoJlUvvsc= X-Received: by 2002:aca:744:: with SMTP id 65mr10371843oih.153.1612773205850; Mon, 08 Feb 2021 00:33:25 -0800 (PST) MIME-Version: 1.0 References: <20210208113208.35449879@canb.auug.org.au> <20210208073037.0b9fe4b9@coco.lan> In-Reply-To: <20210208073037.0b9fe4b9@coco.lan> From: Geert Uytterhoeven Date: Mon, 8 Feb 2021 09:33:14 +0100 Message-ID: Subject: Re: linux-next: build warning after merge of the v4l-dvb tree To: Mauro Carvalho Chehab Cc: Stephen Rothwell , Jacopo Mondi , Sakari Ailus , Linux Kernel Mailing List , Linux Next Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds