Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp526373ybn; Thu, 3 Oct 2019 08:25:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4HbPdbQFepR4EX8Pzg0ddjn43eNMpHTuNowPu1sc22De20d086Vcch9pi1cgdgMClI/a1 X-Received: by 2002:a17:906:c282:: with SMTP id r2mr7809190ejz.207.1570116334719; Thu, 03 Oct 2019 08:25:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570116334; cv=none; d=google.com; s=arc-20160816; b=v+Hc0AmVnrewqE4IriFrRJvXep5FQ40AEd4SOcrunIwyuUr+QQTSPjKieB+mEHlc1u bVDpbhXhf7w112mFd8IHMwqaSTiWrTKe2zswy/Zco8Lj77MJkc+ZV/cgjWHfLW+WlL1l ZWlg3FGonY96ONPo7wnUCVKFBnXCvJ+M4ajjKAB9ExnJKKWrbUK8cP/sz0Dqi/pkEHyp xrx58Gv5PWaHkAI2WtzPDuYlkHJJXxUwl6Zm3TW2tBze94Sloqgd+/JASwkKr8yKBcis RLbNN/c/1tvL7du53rUhMX3b6449yaTtw3uOrFieVH3SFZKIzylO5NJsfHciHGHik1dr Ix5Q== 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=Dmv6s+uqyytUyC6g7SzMJmF4FwfXF9kOMKIAKnBwkSk=; b=0nRY1qCxO5tGq+LzuoDrmDw+4LzdlpX6u2yXvzxiYsp01Cma2dSNBfsH0F+6sCkJfY rytAy8+/rrcXqfcFJeQy+RklZ6jJ8zMHg9W3f6ghxpU8UOkvV8djWEhyuqlvvDSaZqAz X+oSqrdjuvBPVQZDl8rgG6nLE6XlSt/qxYZukuXnt6go5PnbkxyEZkD3ywwnGhEE7/Go 54WLoF3vy8DJ4i/CJeVfCJmL4xgjcS+Q0GKx+9P3awY7dTRBI+nDLeB5odE4DHliXtlw w2pjRAhdxTUfMeUAu1dSYfvLS0W0DM/TyAMgO1HpjtIHM6hiLFQSRYrK1usHnBLbN+7j wvsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=nefoQvKO; 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 m17si1387952eja.318.2019.10.03.08.25.08; Thu, 03 Oct 2019 08:25:34 -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=nefoQvKO; 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 S1730112AbfJCPYS (ORCPT + 99 others); Thu, 3 Oct 2019 11:24:18 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:57232 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727302AbfJCPYR (ORCPT ); Thu, 3 Oct 2019 11:24:17 -0400 Received: from mail-vs1-f45.google.com (mail-vs1-f45.google.com [209.85.217.45]) (authenticated) by conssluserg-01.nifty.com with ESMTP id x93FO8qd009730; Fri, 4 Oct 2019 00:24:09 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com x93FO8qd009730 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1570116249; bh=Dmv6s+uqyytUyC6g7SzMJmF4FwfXF9kOMKIAKnBwkSk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=nefoQvKOH5/pGzV2/xAzoODhtmlFBoPgwbsMBMEHkOo0mkyOkEQr12Yqdt5NgzIun lBnvIOTRmbewYxm/PIclCJ9F/9jxUyFu8Ee+g1CM7rsVTQIpwUGSWK6WcpzS4pUf+7 I1Hrnj2xeDMA5nf6mcbrN8SsCh61jFMumLMIHbhObwOJU8qt5rpt0vKBDTIBvSsA4k CLMCGzrh2odfbYtWT3C17S5Fjtr3cKu0/+wFTmbGrVTvW9L1i6399EWZqAdKLNMZfb UljwUE/HSK9CUVbSZQtx+JuHTRcQgX7qx5dJ0hRwekNohUKLn9QuLffdsT2BY0iuDS uvAO9TEUcLD5A== X-Nifty-SrcIP: [209.85.217.45] Received: by mail-vs1-f45.google.com with SMTP id p13so2015802vso.0; Thu, 03 Oct 2019 08:24:08 -0700 (PDT) X-Gm-Message-State: APjAAAUYcV50U1zkH2Txs0yiMfjRtA5fhpAb8zWXZAKfqesDv3uuczEE 3/jKirYEdZ42LJ7vyYszoNRF8e6INLQP3J27VHc= X-Received: by 2002:a67:7c03:: with SMTP id x3mr5489693vsc.155.1570116247531; Thu, 03 Oct 2019 08:24:07 -0700 (PDT) MIME-Version: 1.0 References: <20191003104356.GA77584@google.com> In-Reply-To: From: Masahiro Yamada Date: Fri, 4 Oct 2019 00:23:31 +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 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. > 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 -- Best Regards Masahiro Yamada