Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5812864yba; Mon, 13 May 2019 18:25:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7kH5OPA3YL35oGQOviJAi9zEZFIRsF3qSms6efBly1A6CpGWMYIjOBUe7aojSZkqo9Riu X-Received: by 2002:a17:902:7885:: with SMTP id q5mr34875890pll.12.1557797122384; Mon, 13 May 2019 18:25:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557797122; cv=none; d=google.com; s=arc-20160816; b=VsMsbJZLrQ1BRN0HWEhqXPNWD+E8ysjUFCeXtSSuPcpgTbcTlsxXYIcussnrGpZXCm TF8mFOx5lyzsj8JzYmM8u6YHPs87kVnHga8ykfHDqF1OWM0obCGOwLPBdaZvRmBl/U7B op0lWGaU7syAnHu6gdpgycW2uFxT1YpcYIg09iHgxmdbFELqc8mpuS0KEqayJn0kHz3r FIDIYyWsi5f44HLGlc5A9RFV/I8zvgZIQKGw4/RWXWu6FMXZAMuRa1hSyfA+sZAj+hOG PEPYGVTOYpHmTCTgatstJ+NtDhWJsXMOCoynipLR8H6W2rNQv3bWdMHhA7RmL0RYZ+D9 WKaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=3eobYZm7StaTAnM+px6iKkHHfDJqUuEOAPhcUxjWVIQ=; b=H5NrDDAPMl6nx390UmlNOge+I1nGAciYpz8D6XdM0L3LkkOf2Xq0zYWJUa78YPW5fG kteMgEc1USLIcXCvWvzfuHDOUuwaZjiJv27Ju9S2Vx4AQ+O9OJ5+q8aleSrIyAhkFHPq nzUW4f6oELoD91rPVgdU5R3Pa3aK8gJ56Jw3r++MZSxiYo9aa2v4SMpSljHgHMGXATYL 29jFVrdP0DM24YDpZoL4QNdz0BeucwUZUynsmkuNiUcRj23lyzv1sPsolAXfT1Pm8/no +BMfn8Dbgc4e/882JHOMZwK8UlaMbmnZox7K2zGVrBMJe/QOSY5jpsxDog+Tt5Zos+Ts XBZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dugRZx65; 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 j71si21792708pfc.127.2019.05.13.18.25.05; Mon, 13 May 2019 18:25:22 -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=dugRZx65; 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 S1726554AbfENBW4 (ORCPT + 99 others); Mon, 13 May 2019 21:22:56 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:32773 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726233AbfENBWz (ORCPT ); Mon, 13 May 2019 21:22:55 -0400 Received: by mail-pf1-f195.google.com with SMTP id z28so8172499pfk.0; Mon, 13 May 2019 18:22:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=3eobYZm7StaTAnM+px6iKkHHfDJqUuEOAPhcUxjWVIQ=; b=dugRZx65pDMZfh37DAdY9V8gH03dhprOGOwqGWj6D3nAxoC12L0iGBSufahBMWkCfq F/VRCSo5AHkgNbr3S419ZGs2vyEWyVZW2lf1Rgrg++2BjLByKdZrrEHWb4XHvR5Mlb0D p+ykhnOqX51UPaXJoBpeG/o6jI7P5Js/nwZRtrJr/C2gRUkHW3g3J6iLbXpBnbw/yN+z 2CphAPX7mLJIlDI8KAAsaZTwwTATPI/JcEBnb92lO+D8waDMopFAHqzipa42edyc6KNc stRV6Bp0irbukRFuMMkhGwKobSinCeIq29LTXAAMQ0SF3EbpmtAvloSuBvTESSUkj+sy 4Sgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=3eobYZm7StaTAnM+px6iKkHHfDJqUuEOAPhcUxjWVIQ=; b=uCg1Bf9of0WS6lcboKy6/pUKdQmy/WqZNIREFn5ERS3Iw1UHGj77uDw2K7FIyfgzla 9jxaPCuN2EaIF6oJdrxjNnITa02KVQSLo1x5QFFboekD0A/LgfyoVng1WXXjxB+sAgNT vtTen8kUav2crGFkCGFMrtW9Jg5DU4CVZBIg/eugupDfiuwE/e9RA0kBJ5Br20LCptG/ lW0Zzw4HQ5HXTk9ZZ75ZkhCTYl/z3Q308W5e0DRkBh7zW2nqpC3MIjqrRU9lRp8QiRyV e8E5Z7lAyT70YJGJPBwV9uNai7+17YwW+cVLK3bArruUZv879CCNTV8LT7TLaF73G9O+ bIfA== X-Gm-Message-State: APjAAAU15NiNX2bX3CaJqeEKj/RGdt0QCfa6xcNPS/q5p8KcZYDshbYB gL2FcRSomo6VWD+pKWB4Fq9Od70n X-Received: by 2002:a63:494f:: with SMTP id y15mr20342086pgk.56.1557796974567; Mon, 13 May 2019 18:22:54 -0700 (PDT) Received: from ?IPv6:2001:df0:0:200c:19d:e5d2:2224:77b? ([2001:df0:0:200c:19d:e5d2:2224:77b]) by smtp.gmail.com with ESMTPSA id m21sm32513074pff.146.2019.05.13.18.22.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 18:22:53 -0700 (PDT) Subject: Re: linux-next: build failure after merge of the ecryptfs tree To: Stephen Rothwell , Masahiro Yamada Cc: Tyler Hicks , Linux Next Mailing List , Linux Kernel Mailing List , "David S. Miller" References: <20190514100910.6996d2f5@canb.auug.org.au> <20190514105649.512267cd@canb.auug.org.au> From: Michael Schmitz Message-ID: Date: Tue, 14 May 2019 13:22:44 +1200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190514105649.512267cd@canb.auug.org.au> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Stephen, I wasn't aware of the other asix module when submitting the phy driver. The phy module gets autoloaded based on the PHY ID, so there's no reason why it couldn't be renamed. May I suggest ax88796b for the new module name? Cheers, ??? Michael On 14/05/19 12:56 PM, Stephen Rothwell wrote: > 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 wrote: >>> 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 match the target pattern >>> scripts/Makefile.modpost:113: warning: overriding recipe for target '.tmp_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 match the target pattern >>> scripts/Makefile.modpost:128: warning: overriding recipe for target '.tmp_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 dropped. >>> 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}). >> Module name should be unique. >> >> If both are compiled as a module, >> they have the same module names: >> >> drivers/net/phy/asix.ko >> drivers/net/usb/asix.ko >> >> If you see .tmp_version directory, >> you will see asix.mod >> >> 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 the >>> 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 ... :-(