Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp565476ybp; Fri, 4 Oct 2019 01:06:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwBRVaLVE7kOswTSJHlisoqQagKQho66UUOwjgWu4QmLKMrolqNmpyRvhGeqjSwZt7ACF/p X-Received: by 2002:a05:6402:1202:: with SMTP id c2mr13346520edw.190.1570176415074; Fri, 04 Oct 2019 01:06:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570176415; cv=none; d=google.com; s=arc-20160816; b=RHWjyV4N8kSZRC9SmNy1ooMoZqlqiSsTDg0b8ow8rZvdGF594k7pdHb7Mcg2SQOXVa MKKaAdkHgW9Hrp1cTk9SE2n5rdnLaPe5fAFDzM3YxEZfPJC9/+LaKYZ4FnPfgZIQXDoR DW5/wPx8zv8v7PcA4dut/tobsjBgm5DGQSLG5X/Sh5BpoKA6hjD86VVX62zAHtQgJx3d XPhuTfXAjlWmecw4qLH5ahM195DK12DNhtFd/iwwmXakB8L6F00cvJXdeQTmDVLjXh2E NattAixvaTPYfUGW9Bdjvn3iQqUimOuQOYG82s9A+4nxapunKRWw6florf3281jHChPr AKkw== 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=tsNv9PjAWMKsBmZiQ4rHHUiCG55Utym9hyikFYWrjgo=; b=jbz/MwOubQOzNIjoQyAF6dmgDaFEXRLPdUWn2T1vGCe2wlNTS3OAZB4JrAKNoDlsyW Ey9+SICKQ4kfTUHRa5aGKDlfhLXVFuaKdVE5eUp1toe6LTh3c9dbUzHoLKuRW2q92mfR pjb548qpfnFaKUyqcLHYdn1tOXZO9w12w/uvWO1FeBC0TBKtIcdKzu7f8K6tlKE43RTN Z4JXswiog/3d1MiW0+YNQUcgLSfV4vuFyyD6pRg90X0x3lQalTece0ORI06ABsi1OU27 RRW7iD75rSz8jS7AEdeIbHLoLHnC9djZEBKJUPuiUeDgJmgGm1UnOhGujaCcgifTUE2G 708w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=0alpy7wn; 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 a3si2849432edr.20.2019.10.04.01.06.30; Fri, 04 Oct 2019 01:06:55 -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=@nifty.com header.s=dec2015msa header.b=0alpy7wn; 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 S2387627AbfJDDlp (ORCPT + 99 others); Thu, 3 Oct 2019 23:41:45 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:52960 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387609AbfJDDlp (ORCPT ); Thu, 3 Oct 2019 23:41:45 -0400 X-Greylist: delayed 44248 seconds by postgrey-1.27 at vger.kernel.org; Thu, 03 Oct 2019 23:41:43 EDT Received: from mail-ua1-f51.google.com (mail-ua1-f51.google.com [209.85.222.51]) (authenticated) by conssluserg-01.nifty.com with ESMTP id x943fWY2009707; Fri, 4 Oct 2019 12:41:33 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com x943fWY2009707 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1570160494; bh=tsNv9PjAWMKsBmZiQ4rHHUiCG55Utym9hyikFYWrjgo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=0alpy7wnjELo0LrwkzuFJ2Uu5/HkQByrHc2XPHOSBa7hDLJU7t9z0iq2P4LoZeIjz N5nIOcWY2nzGYjyM92WTFr81khgwp0n8lefSijXeO1TkvCZHgNivaKleJ34AXtzjBZ /VGJ+N0fE2OrjfUpwvCwuzy8Q5WyljF81i9NjjasKrFa7eHu9NdDoyE3edxx0eIKhl Tn+a4Q7X2xPme9Gn+hCGNlpVKfe66NZZDXGhrp2vpLpF3Qu48NT9IcSTpfEHsKJF2I rvW9Q/WhhGnDDxUb2k26bQOme31wjKhKrrJgOt6yFTn6S1j4YaPLXYYd7OZ3mPYHGZ jLnTSbzi3snNg== X-Nifty-SrcIP: [209.85.222.51] Received: by mail-ua1-f51.google.com with SMTP id b14so1626088uap.6; Thu, 03 Oct 2019 20:41:33 -0700 (PDT) X-Gm-Message-State: APjAAAWuNAKbWeRxOW3ECMHgJeMNNGnGbxSXNZ7UV6Onc00m6vhg05zy WqgiYgQXOOI1UAxExzLay8vkWB3rSgHLhpxtVWY= X-Received: by 2002:a9f:2213:: with SMTP id 19mr454284uad.25.1570160492229; Thu, 03 Oct 2019 20:41:32 -0700 (PDT) MIME-Version: 1.0 References: <20191003104356.GA77584@google.com> In-Reply-To: From: Masahiro Yamada Date: Fri, 4 Oct 2019 12:40:56 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: nsdeps not working on modules in 5.4-rc1 To: Steve French Cc: Matthias Maennich , LKML , CIFS , Jessica Yu 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 Hi Steve, On Fri, Oct 4, 2019 at 1:07 AM Steve French wrote: > > On Thu, Oct 3, 2019 at 10:24 AM Masahiro Yamada > wrote: > > > > Hi Steve, > > > > On Fri, Oct 4, 2019 at 12:15 AM Steve French wrote: > > > > > > On Thu, Oct 3, 2019 at 5:43 AM Matthias Maennich wrote: > > > > > > > > Hi Steve! > > > > > > > > On Wed, Oct 02, 2019 at 06:54:26PM -0500, Steve French wrote: > > > > >And running the build differently, from the root of the git tree > > > > >(5.4-rc1) rather than using the Ubuntu 5.4-rc1 headers also fails > > > > > > > > > >e.g. "make M=fs/cifs modules nsdeps" > > > > > > > > > >... > > > > > LD [M] fs/cifs/cifs.o > > > > > Building modules, stage 2. > > > > > MODPOST 1 modules > > > > >WARNING: module cifs uses symbol sigprocmask from namespace > > > > >_fs/cifs/cache.o), but does not import it. > > > > >... > > > > >WARNING: module cifs uses symbol posix_test_lock from namespace > > > > >cifs/cache.o), but does not import it. > > > > > CC [M] fs/cifs/cifs.mod.o > > > > > LD [M] fs/cifs/cifs.ko > > > > > Building modules, stage 2. > > > > > MODPOST 1 modules > > > > >./scripts/nsdeps: 34: local: ./fs/cifs/cifsfs.c: bad variable name > > > > >make: *** [Makefile:1710: nsdeps] Error 2 > > > > > > > > Thanks for reporting this. It appears to me you hit a bug that was > > > > recently discovered: when building with `make M=some/subdirectory`, > > > > modpost is misbehaving. Can you try whether this patch series solves > > > > your problems: > > > > https://lore.kernel.org/lkml/20191003075826.7478-1-yamada.masahiro@socionext.com/ > > > > In particular patch 2/6 out of the series. > > > > > > > > Cheers, > > > > Matthias > > > > > > > > > Applying just patch 2 and doing "make" from the root of the git tree > > > (5.4-rc1), at the tail end of the build I got > > > > > > ... > > > Kernel: arch/x86/boot/bzImage is ready (#87) > > > Building modules, stage 2. > > > MODPOST 5340 modules > > > free(): invalid pointer > > > Aborted (core dumped) > > > > > > Right. > > > > Since 2/6 depends on 1/6, > > applying only the second one does not work. > > Applying both 1 and 2 I get the following error doing make (although > it makes it a long way into the build) > > > WARNING: drivers/usb/storage/usb-storage: 'USB_STORAGE' exported > twice. Previous export was in drivers/usb/storage/usb-storage.ko > ERROR: "usb_stor_set_xfer_buf" [drivers/usb/storage/ums-usbat.ko] undefined! > ERROR: "usb_stor_access_xfer_buf" [drivers/usb/storage/ums-usbat.ko] undefined! > ERROR: "usb_stor_post_reset" [drivers/usb/storage/ums-usbat.ko] undefined! > ERROR: "usb_stor_disconnect" [drivers/usb/storage/ums-usbat.ko] undefined! > > ERROR: "usb_stor_adjust_quirks" [drivers/usb/storage/uas.ko] undefined! > ERROR: "usb_stor_sense_invalidCDB" [drivers/usb/storage/uas.ko] undefined! > WARNING: "USB_STORAGE" [drivers/usb/storage/usb-storage] is a static > EXPORT_SYMBOL_GPL > make[1]: *** [scripts/Makefile.modpost:94: __modpost] Error 1 > make: *** [Makefile:1303: modules] Error 2 Hmm, I do not see those error. I was able to build the kernel successfully. (I asked the 0-day bot to test whole of my patch set in case I am missing something.) Could you share the steps to reproduce the errors and your .config file? > Running "make M=fs/cifs nsdeps" I still get the error Sorry, I do not understand why you are doing this. > > Building modules, stage 2. > MODPOST 1 modules > ./scripts/nsdeps: 34: local: ./fs/cifs/cifsfs.c: bad variable name > make: *** [Makefile:1710: nsdeps] Error 2 > > > > -- > Thanks, > > Steve -- Best Regards Masahiro Yamada