Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4290000ybx; Mon, 4 Nov 2019 10:52:46 -0800 (PST) X-Google-Smtp-Source: APXvYqy22lqpD355CwGzFc6YdJfC7CJAp5GqqvVTExMFZQ/EnWkwrrWHDZslRLerKQeOxc4m6ft6 X-Received: by 2002:a50:b5e3:: with SMTP id a90mr30316179ede.201.1572893566855; Mon, 04 Nov 2019 10:52:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572893566; cv=none; d=google.com; s=arc-20160816; b=rfg/aZqHB3ZenQsBHt/iIsYuT6XsHI6EewdBP8g3OuqbeqOIDjwxk23/OrpP0Gc9md LBE1xweR71xXB7CkbcRgy132dbNhlCEvfmRQFdPp1hf3we6NUC9qOvYizqB9cu6rg74Q 01x5M69/pylTrFEsoHjmIcxB9D1WgIOMgBCBHhvO6B/58pg8rph5hpVdCHkRoR3nl1t8 I3V/LOUg3p/o5+fTa+HF9YLxu+sHPZOpkR95uUYGCPbIEz5Jd2wpWeQ/0/oNcspWqER1 ZDC/tU6T1UxA4X0yPqJTE8AlXYAfZ74bg1KhKT8uBXwjpOCE7+WrdBY2VQeNBnwGsBZp SqPA== 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; bh=MAScZrMfcRjQQzWjos/ItVtsj2/Z80jqafi9Q8Gdat4=; b=XeaEsfRl8XarpyPIH07O/Q6mGbgk8atkAgYw4iG2CKh162z6Z3yWw9TL+KIprq+Qt2 gbGLczQ53Vt9UeAWmBvxQ6BSb4znvma3DttVelhxNIxncXAZFj2jhkU+WlB5f99DS203 fbDjl9ytlbgskWInji+IhfCFFVEneP7T3TKqxk3Z3LN8SVEnmdISzmBtEKtdwJse0zkD 0F5Fe9CMyxk2v8Dh3GiYyQNz1uJ1hUdLUs5vJl2pQlkagsmQkPjYIOsC2kAWXsaaYpE2 kg7m1B1kcz7WwfeHmAbI6NOJjM6g86lLHOt1EHBatyNr1k++IM5uI7SQNESG/2R5xXoC /q7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=jMQA21nk; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e48si6987015edb.370.2019.11.04.10.52.22; Mon, 04 Nov 2019 10:52:46 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=jMQA21nk; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729623AbfKDSro (ORCPT + 99 others); Mon, 4 Nov 2019 13:47:44 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:39845 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728800AbfKDSro (ORCPT ); Mon, 4 Nov 2019 13:47:44 -0500 Received: by mail-ot1-f66.google.com with SMTP id e17so6795813otk.6 for ; Mon, 04 Nov 2019 10:47:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MAScZrMfcRjQQzWjos/ItVtsj2/Z80jqafi9Q8Gdat4=; b=jMQA21nktp7RKopIBS9wqFi6i1U/MgPY5om64JS4h+GGqMA1oI7IlIGbqbfdfrqdIA saCXi155JGBspLMG3er88AVUNsSmcsmIrx3Rav1KuF7BAVQDk1/UtICpwtaJeNyn9lpN zv7tUe2iDUpaiQ/lqfsdmsnlFBr2CFbMzBl+xVYpZUv4idw/1LM1jFM8OFJEqOKzAJHY LQ0Td6Y4IYI6qCqDnpk/+1znuoijhf3k3Umd2uq7wjPCm6RcGCgZXjVOYnmE7u/3h7WO bI1st2WpH0q9W/DyZwwx/RNqbWoMWwui8IsU8NhzYfZxOmVl9QynvfalKGl80BKpI4Vj x6yQ== 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=MAScZrMfcRjQQzWjos/ItVtsj2/Z80jqafi9Q8Gdat4=; b=iCJe7I/WX8VKgC/qFAIBz3922wROD1fgN+O3WBx+JoGbx8xzrxfg0hTXQSBGcmTjHq g2wuesDxQ6qRLSZpvoEiZFIZKW8NSk74QVcGJ1TbMb7Q+myFgGWZirNOSf2HqzAJDZWP Dm+NH+IMQgu8UWMGynWLfsm4XiTRwA761Jf7LsDUoeMfvkoakb7V8w8GC6b9HpW8ABlz CH1p+x/8ZECW0Z0Ca6aTAUCuHXrWFMFMWc/SKU4Ol/dHmKm9NFzZJgbRoIaGJesCgVp5 hMd1zdHbvyV1ocV9yg2ubE6TUIegvBJGFLQ73xXEMq1Wf4mwQVc0QMCJmow30SepKPgu q4iw== X-Gm-Message-State: APjAAAWVY1bUt1ZdYjTpsXdGPMu77mknRWN7GOTyvGRKQpI7Po5+9C08 INTOqdTHEmo94dd4lyDUd9mHIPKrzBovwxmGu/7iUg== X-Received: by 2002:a05:6830:1e5a:: with SMTP id e26mr3118340otj.71.1572893263132; Mon, 04 Nov 2019 10:47:43 -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: Dan Williams Date: Mon, 4 Nov 2019 10:47:30 -0800 Message-ID: Subject: Re: [PATCH 4/4] modpost: do not set ->preloaded for symbols from Module.symvers To: Masahiro Yamada Cc: Jeff Moyer , Linux Kbuild mailing list , Sam Ravnborg , Michal Marek , Linux Kernel Mailing List , 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 Sun, Nov 3, 2019 at 10:43 PM Dan Williams wrote: > > On Sun, Nov 3, 2019 at 7:12 PM Masahiro Yamada > wrote: > > > > 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. > > This design is deliberate. The goal is to re-build the typical nvdimm > modules, but link them against mocked version of core kernel symbols. > This enables the nvdimm unit tests which have been there for years and > pre-date Kunit. That said, deleting Module.symvers seems a simple > enough workaround. This workaround triggers: WARNING: Symbol version dump ./Module.symvers is missing; modules will have no dependencies and modversions. Which is a regression from the previous working state.