Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp584864ybn; Thu, 3 Oct 2019 09:11:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIhv7TwU1FpqsQ59ja922AZ00cBDBN87mh0zF0hZd/Y4LgesNYCcQErEYz0SHdtPamKpzy X-Received: by 2002:a1c:544e:: with SMTP id p14mr7163398wmi.72.1570119084310; Thu, 03 Oct 2019 09:11:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570119084; cv=none; d=google.com; s=arc-20160816; b=UatPbAn0UD0JYqPEJQOSLSTfu+ZafWJE/HmNAjcgEfVsr6PlrKTGTWax3eOUV1pwkb v4AV079D9znAJYjayqM/x9Fo4GssCDV3wyU9VpHDzc7tfcag+MAKxx6xTqlm2H5PBaRG 8wwLhbjeIZ0nfDF9Edj9iQolKFIDtSWoz3AfTpw/mX0vg+bl2mNMA6TBCh995NNq4Nkk LmzqArwXDWXw6QhpbIHlMMqpsvUpBEKUFKqypoK2uJcaWdR+KxzPOPrB7vjDQXGF6eTc vCtwDOStG15hW4aF8CFvX08X57N/jkP6E7JyBXcNW6xG032PFnT4OHhjmLtKwGSuvxnm c1XA== 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=Mlk8A86Fq4GMU/KjC59awMny/l9qD3VrtRXq6Ecrchc=; b=USLqvP9P4Gtn/gKKVukJn7bri5sN8dxJHsrTR+3FGrgzry3GG9Ah3M3L7d7j2TUMIB HdZLzA+YlRohd0d0QMPtkO3ah9gwerPltnDJoEo3jUEsEHFbVla2QAmtYD3z2eO9VL6J V8AvR+Xa0NLcnXZ0yYVxn36o5YM560+ivNvkVeJug9hP0TOlHoj//7WsL2k7m822kBEX B4+aETUzlh66PUuV42YdHh3ng8x672EjXnC7fvxdIA8vEOwqCrr2/3ccN+b+l01S2ZJR sIBjNXpJj4q8CbeKEWU2d7waaVWAiZoo9bdABQlMIAIb6PhvyTGCAInzeZC//QrizssD K8ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=V3NMv022; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ng7si1440469ejb.91.2019.10.03.09.10.57; Thu, 03 Oct 2019 09:11:24 -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=@gmail.com header.s=20161025 header.b=V3NMv022; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729311AbfJCQHA (ORCPT + 99 others); Thu, 3 Oct 2019 12:07:00 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:42540 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731347AbfJCQGz (ORCPT ); Thu, 3 Oct 2019 12:06:55 -0400 Received: by mail-io1-f66.google.com with SMTP id n197so6759978iod.9; Thu, 03 Oct 2019 09:06:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Mlk8A86Fq4GMU/KjC59awMny/l9qD3VrtRXq6Ecrchc=; b=V3NMv022bIO4LOUDBGXngyMnjadYmEv5jEvTTZuP5q/wQS5Vm1+q6D3RcD6VZc4VjO 6H/Recodkm+uluNF6IuIBjp2G+wkmroJ/7VYdkIj9+4guGwcAOIL6AxPPA33VQCUFMtr +NnezmU5s8g6cJqjvx1nTgi7f18SKpobHNbSEnoDD/NFdmfOKAbAhg6GgOv6V3YuGS8a 7uwt3HpW71eSJcOfJrnYrQmhoqrmBsyzNCT/7LFxPcD07Hecy/QEpgJsqfYm0UBByHrN luK/55rb0RpO2vIWK446OJ1f86KwD8zL+2JZQxkuj2A+APwRRrPOSTSbfNMx3yq9299S EMRw== 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=Mlk8A86Fq4GMU/KjC59awMny/l9qD3VrtRXq6Ecrchc=; b=OjjSfM8IKEfWKBuFJoA2RKFzDfIzwHUFwygzp+D7SH1FlUFXFBdmc5xF91cJyYiouO zEyI+HsJE7WpZqPW0HowoCbB0A0C/ny+W5i2QcEJUcskVnBi3Mf7yEwJvEezlOOQUybq sB6tee8US/DnCAcURjWjfV1vzzki4vkmXSBLLQIxDyLOZYAfYKObaM4OtDBbeZqZCC03 AizTeLH8hkrfapNQFXdnUNR5FebkgIkw/gGmpIGbcDYiHrprZYhQSxidi5i5HoR1C1hp Zm/mY29h7Y6ly1HgwDDHJAo6krCu4etMkaoMH++ApZdQsyZHsTlUL9HKvfygS6l1iwAh unVA== X-Gm-Message-State: APjAAAUP+LUozqgBUrBMVYBqdIHzN11GqJmNyL9HOXXDD9dyqNSjcSkt 8NuAb4msoCPtdGBB2vTzqck4EVJjoaUFhusjXZo= X-Received: by 2002:a6b:a0d:: with SMTP id z13mr8337013ioi.5.1570118813951; Thu, 03 Oct 2019 09:06:53 -0700 (PDT) MIME-Version: 1.0 References: <20191003104356.GA77584@google.com> In-Reply-To: From: Steve French Date: Thu, 3 Oct 2019 11:06:42 -0500 Message-ID: Subject: Re: nsdeps not working on modules in 5.4-rc1 To: Masahiro Yamada 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 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 Running "make M=fs/cifs nsdeps" I still get the error 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