Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp830256ybx; Fri, 1 Nov 2019 11:55:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqynUW6FuvWvl+rvQWK3kxkPh9NwOBuS9kr7RAJgY1E2BNzgUCmX+apwF+l00IiqSUQc1tiI X-Received: by 2002:a50:875e:: with SMTP id 30mr14693836edv.45.1572634543760; Fri, 01 Nov 2019 11:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572634543; cv=none; d=google.com; s=arc-20160816; b=d1blaf3IGi9/KXIhX7otgcna7CE6GGr++/uzbJCx9beA2yE570YvXW926aC0XvVBQx 7Zr21d8MNGEIjXw8dXQzoPT514EAIAboYXcV3VnTt29qiilsjQb56zP+YdhaZouEnmYQ gGC70Hi1e+qAEk9MbF4qDIoB0Hwa9vb57Umpb5kaO8Ce3T9cfiavpmNk7H6vJOnhtFER J6zj4Ne+qWQcxEblcuAwu05kIWy6yk2JaT3/32aDKYbAcJhNuIz2q/ID6TS4Sod2ddW/ xITE1shiTmYbwcJCQBsULsnPSkuuD2sGfySfYd+cljNXMUgwRKKWNmsU+ddN2LJEgPpW vA5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=7vllCCVrOpmYyfvb9Xg8yUmypgDAYnIAfaIkWG13YkI=; b=xYeIloJWK+qhhuIkQYIfK2LXnVgC8YJlg7YZSyw/O0YpxL+WOfbGPo782s6x5NU0uL bi0nHD13dDBFzGCikS0Xbx5KTNbye0WXKDarx0gjJZ3jUeU2dHoLObTwEuNDgEKcWXDx 4e+QFJURL6iQAAAOXBuDRmLD2q99zPQaO8R/bj/YvLIOa1uv836hPRvTtKlZarMOr1pv Pr39dgDIYuE3rDOkgt0Zpj2KKhBJtC9WCSzTkS0+0lv0u9I+Qhh54RKe5e0CNPfLo+vE rsjVRvxLsqvXq+HywilSY6vfDP75NYUU0nZqgpHHBsCvz/ry663MNS6+kR9eGE5Y3k6R esDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BLlFl4qx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l14si6412902ejc.221.2019.11.01.11.55.19; Fri, 01 Nov 2019 11:55:43 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=BLlFl4qx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727473AbfKASwg (ORCPT + 99 others); Fri, 1 Nov 2019 14:52:36 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:30613 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727381AbfKASwg (ORCPT ); Fri, 1 Nov 2019 14:52:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572634354; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7vllCCVrOpmYyfvb9Xg8yUmypgDAYnIAfaIkWG13YkI=; b=BLlFl4qx6Ixre0EKnfeNJIBu7wsJSZKr2kIFaIsoec54sa4jerr8MEs5BYYLQmz5CnJxK4 6+56IIMdGIDyKrpT0QsywLeCeZc/h/Ebrs3xpVIjRtSBCtZyOjqIqkT5xq/lpAibo0OrG7 MZewOSTBMMVy+cIWFkIGYX0o5j20dK8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-133-5oo6zwAIOUexO0zYswBGLw-1; Fri, 01 Nov 2019 14:52:31 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D04681005500; Fri, 1 Nov 2019 18:52:29 +0000 (UTC) Received: from segfault.boston.devel.redhat.com (segfault.boston.devel.redhat.com [10.19.60.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9E9F4600D1; Fri, 1 Nov 2019 18:52:28 +0000 (UTC) From: Jeff Moyer To: Masahiro Yamada Cc: Linux Kbuild mailing list , Sam Ravnborg , Michal Marek , Linux Kernel Mailing List , Dan Williams , linux-nvdimm Subject: Re: [PATCH 4/4] modpost: do not set ->preloaded for symbols from Module.symvers References: <20191003102915.28301-1-yamada.masahiro@socionext.com> <20191003102915.28301-4-yamada.masahiro@socionext.com> X-PGP-KeyID: 1F78E1B4 X-PGP-CertKey: F6FE 280D 8293 F72C 65FD 5A58 1FF8 A7CA 1F78 E1B4 Date: Fri, 01 Nov 2019 14:52:27 -0400 In-Reply-To: (Masahiro Yamada's message of "Fri, 1 Nov 2019 10:13:10 +0900") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: 5oo6zwAIOUexO0zYswBGLw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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=3Dtools/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. Pr= evious 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