Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3442998ybx; Sun, 3 Nov 2019 19:14:15 -0800 (PST) X-Google-Smtp-Source: APXvYqzCv6fnbMuncejp1IUk46tiGlj/zm2O3PuOb8iHUzDEYGPs+13wZiF9Vyw7B+PLj5dkKY/t X-Received: by 2002:a17:906:5494:: with SMTP id r20mr21500832ejo.293.1572837254969; Sun, 03 Nov 2019 19:14:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572837254; cv=none; d=google.com; s=arc-20160816; b=zDdB4bphGXts8Oo6BSmacrnXtBdIuKO2sBCUDeKadFqaDKfzkBT+Vha/9q/tOueFVI TNnOTfpL6DHy6RN+5OZAaCLhV89T6H2adA2rRwj/AZxUvCQxMKqhM31hVnqwjt0KpHvg baFTQMDm5MnLu8c2itH4xtjt38V3DoMsiwSG8YW6MOx/c7k25BOSIUay6tfyZ1GkieeD OgZ7WCXCUA0Xy8Is2uT+6rUmJRRf0vKiGzmvixZqhBMaAJWoG3iPA74aU0yAmjltDwWy 3PzDuQ4yKk9PvT4B6Ws+qfsYbZ0KhSuRyxpSE0ALDNBz1zhoovPtkARIRY3XF0CPPSDP qB1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=vMxuYwRHws4tNFRGpfPUy5dZwjFqOGxlu03uplhO42I=; b=kxFVoWY2lloMbeNieqCk1JbOHXUppE6VpNczAnxbngeiGryc2tGPLSjvKAJ3xOoeS8 QvhXgXjtHCjDF9ugaFatlQW1fXuOkHZuIjOgbJtgA77FKZBuXdqi2FyEX7TKvTnMETYZ 5oZb4HJAhc0ILkvk4QTEtU7FfWhHdECGOPYL0dluCiO3nyT/B5jOzbBQF39A0EZysqGz qHY80zynfdg0i1gU21CyHHmTBhd3zyK0cvRLqKskYvvtfM//ECwTN7j4F5eDvC1QuMbn DBkO5B4crSY08o1TllwCVzNS1YyJPo2+Bd3YXP7iIRrkVrEaimBJx2gUqK78Qm60w/a9 xZLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=0IRR4RPw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y32si6468079ede.209.2019.11.03.19.13.50; Sun, 03 Nov 2019 19:14:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=0IRR4RPw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729217AbfKDDLy (ORCPT + 99 others); Sun, 3 Nov 2019 22:11:54 -0500 Received: from conssluserg-04.nifty.com ([210.131.2.83]:65049 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728781AbfKDDLy (ORCPT ); Sun, 3 Nov 2019 22:11:54 -0500 Received: from mail-ua1-f46.google.com (mail-ua1-f46.google.com [209.85.222.46]) (authenticated) by conssluserg-04.nifty.com with ESMTP id xA43BhWn032610; Mon, 4 Nov 2019 12:11:43 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com xA43BhWn032610 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1572837104; bh=vMxuYwRHws4tNFRGpfPUy5dZwjFqOGxlu03uplhO42I=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=0IRR4RPwZy4jcyYgVusaI75xZRM4AJnRPCkB2lfNEfnvBFx0h8CrgePHX1j8rBGEF Fa8BkImtgeKPFA6Ij87E8I/00N4wBt7zgbmK6VSshNPrf5qn8jNjmm3rJD6GdB/Q/H DrSHQscW8AEJ4g4sSNCyHUNYC6XGn3NQ7hcgX3Q3oVj+6RsqF6egBaFfwWoodocZCD KoFXwzmjI+dvpTWPzxgwrvOlanfU8DqrNdwcblpnADUBoBp8p6aybg+7MHIzX3uhoM 1lQbbwC3yF0ojU36UDnRI4R0oL7vw7/0eVio3u9MdJuhiBlqVxsXBU57JxRAVdOIz5 ZHcrS7LDvbZQw== X-Nifty-SrcIP: [209.85.222.46] Received: by mail-ua1-f46.google.com with SMTP id s25so136094uap.1; Sun, 03 Nov 2019 19:11:43 -0800 (PST) X-Gm-Message-State: APjAAAUOKds9oet/Zg81aBPsAhE0SvgGK22fxLv6sSEJnVN8dKvqPysm ZnmMPIYgZtAcw0579Sm+6ccLDySqBMF+el3vV3M= X-Received: by 2002:ab0:3395:: with SMTP id y21mr3558264uap.25.1572837102044; Sun, 03 Nov 2019 19:11:42 -0800 (PST) MIME-Version: 1.0 References: <20191003102915.28301-1-yamada.masahiro@socionext.com> <20191003102915.28301-4-yamada.masahiro@socionext.com> In-Reply-To: From: Masahiro Yamada Date: Mon, 4 Nov 2019 12:11:06 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/4] modpost: do not set ->preloaded for symbols from Module.symvers To: Jeff Moyer Cc: Linux Kbuild mailing list , Sam Ravnborg , Michal Marek , Linux Kernel Mailing List , Dan Williams , linux-nvdimm Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 2, 2019 at 3:52 AM Jeff Moyer wrote: > > Masahiro Yamada writes: > > > On Fri, Nov 1, 2019 at 1:51 AM Jeff Moyer wrote: > >> > >> Masahiro Yamada writes: > >> > >> > Now that there is no overwrap between symbols from ELF files and > >> > ones from Module.symvers. > >> > > >> > So, the 'exported twice' warning should be reported irrespective > >> > of where the symbol in question came from. Only the exceptional case > >> > is when __crc_ symbol appears before __ksymtab_. This > >> > typically occurs for EXPORT_SYMBOL in .S files. > >> > >> Hi, Masahiro, > >> > >> After apply this patch, I get the following modpost warnings when doing: > >> > >> $ make M=tools/tesing/nvdimm > >> ... > >> Building modules, stage 2. > >> MODPOST 12 modules > >> WARNING: tools/testing/nvdimm/libnvdimm: 'nvdimm_bus_lock' exported > >> twice. Previous export was in drivers/nvdimm/libnvdimm.ko > >> WARNING: tools/testing/nvdimm/libnvdimm: 'nvdimm_bus_unlock' > >> exported twice. Previous export was in drivers/nvdimm/libnvdimm.ko > >> WARNING: tools/testing/nvdimm/libnvdimm: 'is_nvdimm_bus_locked' > >> exported twice. Previous export was in drivers/nvdimm/libnvdimm.ko > >> WARNING: tools/testing/nvdimm/libnvdimm: 'devm_nvdimm_memremap' > >> exported twice. Previous export was in drivers/nvdimm/libnvdimm.ko > >> WARNING: tools/testing/nvdimm/libnvdimm: 'nd_fletcher64' exported twice. Previous export was in drivers/nvdimm/libnvdimm.ko > >> WARNING: tools/testing/nvdimm/libnvdimm: 'to_nd_desc' exported twice. Previous export was in drivers/nvdimm/libnvdimm.ko > >> WARNING: tools/testing/nvdimm/libnvdimm: 'to_nvdimm_bus_dev' > >> exported twice. Previous export was in drivers/nvdimm/libnvdimm.ko > >> ... > >> > >> There are a lot of these warnings. :) > > > > These warnings are correct since > > drivers/nvdimm/Makefile and > > tools/testing/nvdimm/Kbuild > > compile the same files. > > Yeah, but that's by design. Is there a way to silence these warnings? > > -Jeff > "rm -f Module.symvers; make M=tools/testing/nvdimm" ? I'd like the _design_ fixed though. -- Best Regards Masahiro Yamada