Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp567987ybp; Fri, 4 Oct 2019 01:09:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8Jypi2S3+z6rM7MNJa3JiQvIOMTKVSmVxzzAnmT6c07uH1O9ix+/OX5aRxYcBwpuKoucR X-Received: by 2002:a17:906:7752:: with SMTP id o18mr10944894ejn.227.1570176587127; Fri, 04 Oct 2019 01:09:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570176587; cv=none; d=google.com; s=arc-20160816; b=jeaQGFcb3gK1PGCn+zFbCTlA5jeTTtLiYiAujedO4dM88cp0wftti7c8T39NV6m3xc PY2xWM4kC4Rba5nJK71lfJyQUvW8AjlUYraXAu2KlJdxoySvojUMYa8oS2t9xTAoiQw+ sO7Fj1g0vaFI1Q+JrB5ibumgnaNSAq7HwJ45ZRp3C7nlIzsCK3bmaVxXgmVMledY5W3v /9fVMJJ+RL1bq7whe96o2/4Fj2ZGJ4stEBGLjDw7HCRBdwBvw9mDJwv7AV3F+ft3tI6M Az0uVGQ7RGQIU3ejGK1a9nTG6T7CpL0tV058fEa1z0G0o/TNn0TUNB3EukJKhtNdRd5J SaVQ== 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=rHfYQZgD0EQmfiwk2jUfiDRVNcFRIDmx/nFkBWnOAS0=; b=MDjF8VAG2HJvY3N2MBs/pWKpxKeLPvoP4fpcUHhcYjgrfiKap62O2dzm6vdgXv07px l0OZJt7acPf5Qb9mAVmoVaDWeE+/Q7qptZ4rk6K2WSJN3N/I9nbWmid9ixOH12YtPNoe OmBYLOYPi41oCfKMCg/JxphWM905lOPwxFjLoNzzywsMzZ87kquydHGIHTQuSI7atZrk UsXuzpVeJTExiGuM2JhIfKDSKwkYOprwCMMJzg0bFLoHQRIyZtXWEWPYB7dp2zmkg6ZV cKxyAFK6xyOXdoplo0RxPzPEiCWAcwQYS2SciMYQFsftnOX58b6lYjbFDt2bOQPFewfg v/hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H2Wwkg6a; 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 p14si2758251ejn.192.2019.10.04.01.09.22; Fri, 04 Oct 2019 01:09:47 -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=H2Wwkg6a; 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 S2387812AbfJDE16 (ORCPT + 99 others); Fri, 4 Oct 2019 00:27:58 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:46813 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387788AbfJDE16 (ORCPT ); Fri, 4 Oct 2019 00:27:58 -0400 Received: by mail-io1-f65.google.com with SMTP id c6so10577048ioo.13; Thu, 03 Oct 2019 21:27:56 -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=rHfYQZgD0EQmfiwk2jUfiDRVNcFRIDmx/nFkBWnOAS0=; b=H2Wwkg6aS/uKQIEkGTFV59WwqF7ZWPt+BhRE3+DLRi1V6VafYLu4nb5oUrcfLqtyPh Ee2nJ7KKT+8rCqBBFUMNaWrsJQWvu47p7j0ESfn/LM9yAy8IQwnEdlhBg32PTMYRw395 spt4uroUDIP0wlXyKznuDgAyy9Qo2BPfDfqZiebK+kkP61PioEbwWQmzATLPwKXr/z0F k0cAIbnegRJudsGPRxhBhKsMywyz9bu7TM+ZsYIqrmelR9M5DXbNSTycvJDjruFbSVRI 1+/86OIaaqpZOejo7cIfOZWE1ULt+5wINPXIsf75pkFYQcG4sP4PuDxCHgjCRtadHB3j vFmg== 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=rHfYQZgD0EQmfiwk2jUfiDRVNcFRIDmx/nFkBWnOAS0=; b=rfn1NWkTmlhCpoIB/IlxEVXz/1EiMf7lE9R+iYF9KOeVuqD5cDrvTd07EEwcY6Ec7Y dH8BFNChsdFIecorGWlzezniKF8l1irN2cK+lj/hKQkveWAAuRpNhkh3BKH5/JAMWN3x x0R0AAJwNva+zoSB97GlQjW2jDqnqcYpuRh3sLJHlES/O+zZc6k5pEjGjl3HK2bA0tls Uic66se29EMlOeAu3qYrY2u1jJXqsf8MI88wqJ/BIkp4/MDYqrqxwrfM8WqriqT81Z1V Q1Pnzc3C+3yIb/D2cozwncHyKM5grv36AXLqzhURKmr2ChlQ0RuvHesanLq1Oc1fpQhy 8aYw== X-Gm-Message-State: APjAAAVH84NdC4lsOPriOAQo3wVJclAlnXRCrNflFqXaGA73WKkZNh/6 JZr+J/HxM/fQJfCyvzNXF+7KR5pc32oCropdrvg= X-Received: by 2002:a6b:a0d:: with SMTP id z13mr10754863ioi.5.1570163275621; Thu, 03 Oct 2019 21:27:55 -0700 (PDT) MIME-Version: 1.0 References: <20191003104356.GA77584@google.com> In-Reply-To: From: Steve French Date: Thu, 3 Oct 2019 23:27:44 -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:41 PM Masahiro Yamada wrote: > > 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? From the root of git tree - at exactly 5.4-rc1 ~/cifs-2.6$ make nsdeps CALL scripts/checksyscalls.sh CALL scripts/atomic/check-atomics.sh DESCEND objtool CHK include/generated/compile.h CHK kernel/kheaders_data.tar.xz Building modules, stage 2. MODPOST 5340 modules Building modules, stage 2. MODPOST 5340 modules ./scripts/nsdeps: 34: local: ./fs/cifs/cifsfs.c: bad variable name make: *** [Makefile:1710: nsdeps] Error 2 I get the same error doing "rm fs/cifs/*.o" and repeating the "make nsdeps" command I will send you the .config