Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5792603yba; Mon, 13 May 2019 17:59:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMlQzlCKyXgCIfkfSHPrBF6EsC18gMtlq3HkhJMoVbSFFnwhVpsq/1JrqeWBuevt9PXAVS X-Received: by 2002:a62:3145:: with SMTP id x66mr10790897pfx.223.1557795551610; Mon, 13 May 2019 17:59:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557795551; cv=none; d=google.com; s=arc-20160816; b=zTo4VLEDsjk+MhE4c+DOGtZRYCCEUbx/o1pEIAnOGH9g5RELTBY8LsY8SH24dzjbSV /BpsLCuJumwU07fY89C4+QjImdTle1nfBB9vE1cACYjWCuER4aGpcjK6q5WznJF8V8UU vZTYvquqVeBItSDWjzegJMoaM7tE0KuisRSr/TyArHNxrucErbXVDCry+fpydWjDG6XS X7GfF0pONoJqDD2PYpg0/QU6KmI84EtjB7x9q1ODTU+q0HPWpiRFnCZENd27MZgVUVVu 18amwcCuqr1CYTJ8LQ/zI3exmmgiydCK2Mj4W99n4NXm/PtYZRBupja3Up5EV+y377EY BXhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=uyJqTssy+L79aE9KI+7r+931kJmZyiPFE2+cqE2I1/I=; b=P10vsblPYWumVpEwHR6ruzUWTFtEVfAfe+rQaWXCHsGwhXvWWYpxv5U1dcEaqBGzJj Q9eUyzD4Bw4tVzxz8Y8cwwYcuakXLlmOYQ0VqC1me+bIZkZDe8G5ayEVfWovukftKkSK EBCqiKP7BqZo7aqfBf/hdQ1DgsjqFMwKE0LghUySLrmBtqskQA0CBl7tPup6BiJZYF8+ llAOZs72UhYOosM1gvor3Aq3f3YMDvsNlwCrVDAW/TfbPnkwPA6T6GGPxv1jRBufFzsh Xer2fa8+14CNKkc5Oi5ZedLAmJ5Z9P+baMQ9fBl0Vaxmpfwu0cw4I1KyfZNuvS/1R8AB 0PhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=L55k7Xpy; 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 f193si19849601pgc.144.2019.05.13.17.58.56; Mon, 13 May 2019 17:59:11 -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=@canb.auug.org.au header.s=201702 header.b=L55k7Xpy; 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 S1726882AbfENA4y (ORCPT + 99 others); Mon, 13 May 2019 20:56:54 -0400 Received: from ozlabs.org ([203.11.71.1]:41959 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726750AbfENA4y (ORCPT ); Mon, 13 May 2019 20:56:54 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 452zm21TCvz9s5c; Tue, 14 May 2019 10:56:50 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1557795411; bh=TxTcMKVqXgh7M+k63ZhUKgh1N6mWCEbKVbjlNxSZxxQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=L55k7XpytwSSD1dtS2oPdIP7U3wNYg3AWkB2LnGA0twqCO3igIMU8erT6RZjhAa9y RoM/9XKlRI6XB8ZdUU0kinDUTSLoHZQP6Lqv3W2IvIlWz92+9SYzkCeEXcEe3NwQX/ n+7rIeMIcMlbRr2D7sp9HE9F0LWXXFLfrVy9LX5dzAGwosbvjg6npXpgAJt7gaYbuY yQCyF8YFZkhMi7jgklFHnG/GF33pAjYe6CleQ67oa7bisbtZZWOaJ6kDqM+lV/prnL 8Flj3rovoCnJVqQyQYtU6ucLoIkZ412E7yBkIM73p4BAAGqnzZSI1cMR1sQn4FvaVY 8oJtwbQvAH3bA== Date: Tue, 14 May 2019 10:56:49 +1000 From: Stephen Rothwell To: Masahiro Yamada Cc: Tyler Hicks , Linux Next Mailing List , Linux Kernel Mailing List , Michael Schmitz , "David S. Miller" Subject: Re: linux-next: build failure after merge of the ecryptfs tree Message-ID: <20190514105649.512267cd@canb.auug.org.au> In-Reply-To: References: <20190514100910.6996d2f5@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/GAZU4z.04i=a5k9ZE+2ngzi"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/GAZU4z.04i=a5k9ZE+2ngzi Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, [excessive quoting for new CC's] On Tue, 14 May 2019 09:40:53 +0900 Masahiro Yamada wrote: > > On Tue, May 14, 2019 at 9:16 AM Stephen Rothwell w= rote: > > > > I don't know why this suddenly appeared after mergeing the ecryptfs tree > > since nothin has changed in that tree for some time (and nothing in that > > tree seems relevant). > > > > After merging the ecryptfs tree, today's linux-next build (x86_64 > > allmodconfig) failed like this: > > > > scripts/Makefile.modpost:112: target '.tmp_versions/asix.mod' doesn't m= atch the target pattern > > scripts/Makefile.modpost:113: warning: overriding recipe for target '.t= mp_versions/asix.mod' > > scripts/Makefile.modpost:100: warning: ignoring old recipe for target '= .tmp_versions/asix.mod' > > scripts/Makefile.modpost:127: target '.tmp_versions/asix.mod' doesn't m= atch the target pattern > > scripts/Makefile.modpost:128: warning: overriding recipe for target '.t= mp_versions/asix.mod' > > scripts/Makefile.modpost:113: warning: ignoring old recipe for target '= .tmp_versions/asix.mod' > > make[2]: Circular .tmp_versions/asix.mod <- __modpost dependency droppe= d. > > Binary file .tmp_versions/asix.mod matches: No such file or directory > > make[2]: *** [scripts/Makefile.modpost:91: __modpost] Error 1 > > make[1]: *** [Makefile:1290: modules] Error 2 > > > > The only clue I can see is that asix.o gets built in two separate > > directories (drivers/net/{phy,usb}). =20 >=20 > Module name should be unique. >=20 > If both are compiled as a module, > they have the same module names: >=20 > drivers/net/phy/asix.ko > drivers/net/usb/asix.ko >=20 > If you see .tmp_version directory, > you will see asix.mod >=20 > Perhaps, one overwrote the other, > or it already got broken somehow. So, the latter of these drivers (drivers/net/phy/asix.c) was added in v4.18-rc1 by commit 31dd83b96641 ("net-next: phy: new Asix Electronics PHY driver") If we can't have 2 modules with the same base name, is it too late to change its name? I am sort of suprised that noone else has hit this in the past year. > > I have the following files in the object directory: > > > > ./.tmp_versions/asix.mod > > ./drivers/net/usb/asix.ko > > ./drivers/net/usb/asix.mod.o > > ./drivers/net/usb/asix.o > > ./drivers/net/usb/asix_common.o > > ./drivers/net/usb/asix_devices.o > > ./drivers/net/usb/.asix.ko.cmd > > ./drivers/net/usb/.asix.mod.o.cmd > > ./drivers/net/usb/.asix.o.cmd > > ./drivers/net/usb/asix.mod.c > > ./drivers/net/usb/.asix_common.o.cmd > > ./drivers/net/usb/.asix_devices.o.cmd > > ./drivers/net/phy/asix.ko > > ./drivers/net/phy/asix.o > > ./drivers/net/phy/.asix.ko.cmd > > ./drivers/net/phy/.asix.mod.o.cmd > > ./drivers/net/phy/asix.mod.o > > ./drivers/net/phy/asix.mod.c > > ./drivers/net/phy/.asix.o.cmd > > > > ./.tmp_versions/asix.mod > > > > Looks like this: > > > > ------------------------------------------ > > drivers/net/phy/asix.ko > > drivers/net/phy/asix.o > > > > > > ------------------------------------------ > > > > What you can't see above are the 256 NUL bytes at the end of the file > > (followed by a NL). > > > > This is from a -j 80 build. Surely there is a race condition here if t= he > > file in .tmp_versions is only named for the base name of the module and > > we have 2 modules with the same base name. > > > > I removed that file and redid the build and it succeeded. > > > > Mind you, I have no itdea why this file was begin rebuilt, the merge > > only touched these files: > > > > fs/ecryptfs/crypto.c > > fs/ecryptfs/keystore.c > > > > Puzzled ... :-( --=20 Cheers, Stephen Rothwell --Sig_/GAZU4z.04i=a5k9ZE+2ngzi Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAlzaElEACgkQAVBC80lX 0Gyjdgf/VOXl+vcYN5/Ns9TE9My0Xo/JNrguSjSJhQx3ADvaV+/jtei0jM7gRdLu Zjl0UU0Ru2sOJjhUnIgm7nAk7c9btHOG46lMDnYuFWvYATJNpPR5yepJywPvpbTy BMtnQEcSWBUIYW8GLDZiVtsrH1bgmahjDfJ/kShawh6OiF2p5+ai/zx2bOMPV5vR 1nC41I+l76jUF8triGtXtcbHtuTKKJI5MMUhnn/xEO/uIukCNAv5FjcrC0SPHXPX 97bj/UFKpGuZEPDlGVJBUOaBaif2xOuq2d5cbGktps99xg2f2Ti9NrD9z02RW/RA 2/SyK8qUp3+tSlyC77Ns41H08A4MXQ== =zQyT -----END PGP SIGNATURE----- --Sig_/GAZU4z.04i=a5k9ZE+2ngzi--