Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3840184pxb; Mon, 8 Feb 2021 01:11:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRPHl6m8hlXwqHqb9mY+Gh27GRb9+HU/KOKi3Ly5iY37Uc5XTLnWAaK3BBJGsp8ZJm5LTN X-Received: by 2002:a17:906:cf89:: with SMTP id um9mr16211982ejb.189.1612775494138; Mon, 08 Feb 2021 01:11:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612775494; cv=none; d=google.com; s=arc-20160816; b=aVNeHIhN2cvSuzUsao7tV8hb3erKOVvfa0rKbcbB4EArmXglFzfbga7Su/olL36neo E6lHbgQWvKY6S5NhAzq5vSTH8EfmWmQb32pgo/dtfR3Vyx8RKt0CdQSfycsR2c6UDKkL 4/7e90T9YMrIjRi5xXX/6SDyDPzMaGfLTaeXGejVTpr+w0SD6r8bbXEJge4vry1UXdvs wJEB3C/MwuIz0PBmyWbqOt5CQciXq8cxu6b90yFsIGuXg/mqMRHexm/nUnQxzcc9Pc1D IFoFyc9rbr8Fgix2dNuDH7d4/riz6Ez7IdKyMGtIf3G/y2J3rdaGE/0E3SuMAG2olnro AFzA== 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=zHudw0TAP+YeZRvB+TR6ZUnftiytNBVnLvjklahW0oo=; b=TvvrTc/RW+CtQhTc35J/A0nTGVAU1bmpEeKgZ8wvynFzZxBv946zlp4lZZj1FVfNtZ 6SQvR3rC4a/xmAXwo/7CVCIdkUmYFQPrvLEq9td1yHmqIhFaxbPLnP+kVjx5BclNXu/i Y0NEaoAoqvfrEonpFDPRMJwBscEOGPiYzkQAfZn4PVY13Qht1BzLQPp6oM9R+9kvJxsD 82Cd+QIdEKEZsMlc9Cvg0ikJKlUG6ApQAQod8YS0xYgOI/zqTFuOaikevaKnYAj5gXNi x4qpPQEVsqykUhxWskCXWYjzVbsYDMhWUuBMoslyumW2MpNQP5pyNSbqOUvUNDxtRHMW ZT5Q== 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 q23si10647798ejx.29.2021.02.08.01.11.10; Mon, 08 Feb 2021 01:11:34 -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 S231204AbhBHJJX (ORCPT + 99 others); Mon, 8 Feb 2021 04:09:23 -0500 Received: from mail-oi1-f182.google.com ([209.85.167.182]:41399 "EHLO mail-oi1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231180AbhBHIxP (ORCPT ); Mon, 8 Feb 2021 03:53:15 -0500 Received: by mail-oi1-f182.google.com with SMTP id v193so9400538oie.8; Mon, 08 Feb 2021 00:52:59 -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=zHudw0TAP+YeZRvB+TR6ZUnftiytNBVnLvjklahW0oo=; b=tzQEalYLCl8saKCZDrhDmcgTboQ3hemZWHvXmDdeFLqydnWrRFfM+v7LY5CBEndolt ub2iDdiKWidZv+LU74EYmF0/FCeb7lxhxS34jQXvhWcpHc2xdLZP2zzb10pESYTsBo4/ 6rjCPcckvbNtXlK1Ymd9fcjstzOSSkfAoCnQ44B98OA5HlSSS39lVLHQX1DKvxl0MjbL rpIZvGg+uF32gQ4Kme+pTqXRPUSbFWJcLXfd6c3/JpCzkaOkEH5i0/yHSvgc1QRHUaSz t37MF1srSS+Lkz7FQ1JEwBN2/cGb+HdpaLR/clvmJklDvfym3LWEQTYMngcALVL3DQ9K te5w== X-Gm-Message-State: AOAM531hlodfM9msX1bdih0jhFU9220uCAp7ye3LiGuZGJaV/cpfpovu 2khwVlR+9zXGB1o/Gl6RtWejNm5J4bXeyyphl9A= X-Received: by 2002:aca:744:: with SMTP id 65mr10411020oih.153.1612774353903; Mon, 08 Feb 2021 00:52:33 -0800 (PST) MIME-Version: 1.0 References: <20210208113208.35449879@canb.auug.org.au> <20210208073037.0b9fe4b9@coco.lan> <20210208094901.087762b8@coco.lan> In-Reply-To: <20210208094901.087762b8@coco.lan> From: Geert Uytterhoeven Date: Mon, 8 Feb 2021 09:52:22 +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 Hi Mauro, 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: > > 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. Duplicates will be filtered out. An example using this method is drivers/net/ethernet/8390/Makefile. 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