Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp516596ybn; Thu, 3 Oct 2019 08:17:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzAuQaOippyvbnVAOXoiXZh5xOWRgHLT9yN0Q/duzx53XylXVt1iKVkyNEMGn34wyMYTJf X-Received: by 2002:a50:ed82:: with SMTP id h2mr10167052edr.206.1570115879874; Thu, 03 Oct 2019 08:17:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570115879; cv=none; d=google.com; s=arc-20160816; b=NGjiT62rVdsQohPXKg8dmuOIw6FcadQGbajJV2mPETcsVelBtfQ9yWI/eFT803D6D6 XOQB/NmZTlCt9OF/Zx+7aN54G1suU/Adn8ozOilVWyq8eQ2CkF82htrvdjYEtvBza0Cj DI9X5wjSaf2//zov+qxJ7jdkJfy5IG+le5GYyqqA2xHb+nLk/Ry14SCchZM7VveYRWcl tZVFACxRScfLxBOVbEhGjwpUcrpT7DuKMp5N+60YJii3LEhhKU15mBkhjWUGNdijPsSP oQ/L8eAGX24HKELI2P/IeGhuMnocRm0CA9gRhKKaKsh4gN24txvgYpxWoGOuu9xBBFTP WCrA== 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=BFFGExXDIOP688HODdFkIiqsjWnVg60lYlZNG2xLq9A=; b=aVipj7zygUcOTyeGffL89R8KiB+oDxo49DMPRULqBsG0kFfS9e1x1/Ae35O+4Jwhl1 Xs70/hOO1EXzWbnlc2TsIUJn1J22oKZzekWQUp9ZPr0g37HrmVGF2iawCaAQa1/pW2Wv zUl7SW+XGiL9v9/OmyDJbLbpu3LdMDHf166cWpfoivpxoSb7eJJED10eEXONg/HwpEdD 72otlexzL+l6AHG/blsOUhcy3JfVvXYErVZ9NH2OHwKlTh2g6j3x9FX9o2VO4HoR+1j2 JO9BiS5m1B95EQC0XMVmfU7Oe8Y2dQBOK/1Gl4g53oQ+5mAtzsOaJuZw10eqIAf1ERF8 AUYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oTWdxx7p; 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 x8si1803300edd.282.2019.10.03.08.17.34; Thu, 03 Oct 2019 08:17:59 -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=oTWdxx7p; 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 S1729713AbfJCPPH (ORCPT + 99 others); Thu, 3 Oct 2019 11:15:07 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:40476 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726364AbfJCPPG (ORCPT ); Thu, 3 Oct 2019 11:15:06 -0400 Received: by mail-io1-f65.google.com with SMTP id h144so6356391iof.7; Thu, 03 Oct 2019 08:15:06 -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=BFFGExXDIOP688HODdFkIiqsjWnVg60lYlZNG2xLq9A=; b=oTWdxx7pbev64Bc7cqoj93/GvY/xdreUbNKmZoAn9Mm89tX3kb25USyQObqSfrp3kx ErPyyOF3wXzdSXFAd8XLrpZyY781HEpnH2+JFBT5xNRaHNN+xwFWHK50JDMqknxS+R7b uf4FXTQRR0tBSKlGgQVqHv+/uSYfKzmbdihfmWVfxh/Y2tl5uOwrrbF2DVUcj6j39tDe onO6tPj2IuSkL6qLS1shxUYGiuwxP5XdvTKcMidZ2V7RMT7tB4B0vgnTgRmDUISinHTe WieVn4gnC7Pl2+AA7MvreRdNo92mhkoAK78OU9UW3C9bUH2LY2v5N1j0KNBigkoCsvDZ GyOg== 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=BFFGExXDIOP688HODdFkIiqsjWnVg60lYlZNG2xLq9A=; b=k+uyQc1QP1ow1gqzqHBPli5cqGgchA6+SkQYRv2sMbjiK5oT13MPHYhBtwOdHB3CDq kVCpojl1/wNbz3XTJiJC1WXc6wFTaX/2i+IRKY4yaZKJi41jM3om7AH5wQ1Z8qjZuj3j IDcD93IR8plaex2N1qajO0tnoiiN/bnMIwUW3qwgRw14quq6WsDORrTL/bOFQdOXzXSn ItV8dFFH7dEpRyqVGkg/RQhf99+9m41yvIJxIvxUfmuLu1HcFDLEfjNsI2FZr0kJl9qk 93EC9JijrxDPs2sfOVG4JHhzxCILmFi1GVMZTuOo4ewDHwT15B/WtjbPDJqlGhRIcV1c Qw4g== X-Gm-Message-State: APjAAAWLckyGA2T83TUPxZkN7+Sfxa86FYg3Py0Y7fwRKI2OMayShGHW tEQO7UeVP130SCfnNAee8MBb6up07xSwQyFj0Hg= X-Received: by 2002:a92:15c4:: with SMTP id 65mr10840441ilv.173.1570115705615; Thu, 03 Oct 2019 08:15:05 -0700 (PDT) MIME-Version: 1.0 References: <20191003104356.GA77584@google.com> In-Reply-To: <20191003104356.GA77584@google.com> From: Steve French Date: Thu, 3 Oct 2019 10:14:53 -0500 Message-ID: Subject: Re: nsdeps not working on modules in 5.4-rc1 To: Matthias Maennich Cc: LKML , CIFS , Masahiro Yamada , 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 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) make[1]: *** [scripts/Makefile.modpost:94: __modpost] Error 134 make: *** [Makefile:1303: modules] Error 2 With patch 2 and doing make M=fs/cifs nsdeps from the root of the git tree I get $ make M=fs/cifs nsdeps Building modules, stage 2. MODPOST 1 modules 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