Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp190547pxj; Wed, 23 Jun 2021 19:30:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyPttBOeUtXaxJH/vEw7HT8K7dcBU4VDF/PH5fKqK8ZEtFA6EHyd9/eeZ1O9MS8aV9SUkC X-Received: by 2002:a05:6402:188:: with SMTP id r8mr3732177edv.75.1624501847566; Wed, 23 Jun 2021 19:30:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624501847; cv=none; d=google.com; s=arc-20160816; b=HKQZQCg+lgbFmhF+XW8tlNBnVNOhxe3WpXDL/j75W+Nc5U7e0Kjga6bCcyRu2hg/HU JSjl5v1J/wdu21KkcDBtS9WH+hN5CBhe2SkWdCVjz4Gcfa5wdwKo8eDxN9QNQIbFIRm3 5vhvIb2wpIwd3rhVtXADbaV0ErDirDzsLUUQkbryoBCg/X2EEXh1XcOCoKeeDzj1jFKb 2NwUm3EB3pjgRvqMoPKlIw84fb5/y+j9LYVR8QPJSi3O1BHS5KxLjEquQEEKzLKMcwl8 cmZ6Mbm4vvCm0ZwYZtwhzLZNxPebWzAV8dYnd7HwGc0e+iO5E6sGWQWejj5tkbKLHSNX H14g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GauNYK1wWCnCXDiY/TssR7htwXcf3kgCKaWXBmc1iqg=; b=XB+CpsHhJGkpKRlev3MQG5JVuRWS49/VCuO/LDXw2PjZZiAXfnSa3jQodCKKwdjGiG 5DssRTW2eTnVDiu4o8QS0rgMVj3lfVotER9BHxqUFIFvYaCWvFfxtA3tW7xrwz2WVrdJ YTcxaJrVrwl3jNpLvaVqY0aZ2mev/xfV/+JioNDVzLXHa4XpUjagdKctc+2/G9G24wb6 lwryOxAEAwTf0d36rcDyD0/woncn6G4y8gFl72MeA8Nv8W1L09L5xF44cFQKlJNcziuz 36y2uSEFKXY3Me3Cs19Ny+Baj9lwOovnt1jSuNV4NeWgH0edYsLfsBGd7tHCdfI22THy BVFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FAMh4+Qo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g21si1517585edw.335.2021.06.23.19.30.24; Wed, 23 Jun 2021 19:30:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FAMh4+Qo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229850AbhFXCbd (ORCPT + 99 others); Wed, 23 Jun 2021 22:31:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:59964 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229758AbhFXCbc (ORCPT ); Wed, 23 Jun 2021 22:31:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AB35F613B0; Thu, 24 Jun 2021 02:29:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624501754; bh=qfes4XlTr7wZHA/gX1R4vn3ErhXUgft2vuwloOuqJH8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FAMh4+QoAuFF1jJ9kHmTbp9/ydQxbb3M5ZXBFYFE5KwhbO8otL4kipxuWZCx5CvXV 1g/6NvgDwplHRZuGBhTtc6SHDQxjSpk6y95eGTetqRfIvyp32Kx5Ya5T5ay344bzEE D9sGb1HKg9xTiP3RmSnd4WkjUR/SLietI7dEfA5kf+f011nRkGNq5yCRB1cyr9AQmK 00KuXivitCPNOy5tY6Da+rcrfkF2EBc9mOkR5HmtnRsp9bCtE9HojGQ9c48JJ6RFVv /P/luhRi5YV574NjTxA3YTl7IYODn5ZeuXzd5tx51WGfWxH6C91MYON63V/vMoiXJ+ /lOBphk8eqyUg== Date: Wed, 23 Jun 2021 19:29:11 -0700 From: Nathan Chancellor To: Marcin Wojtas Cc: Stephen Rothwell , David Miller , Networking , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build failure after merge of the net-next tree Message-ID: References: <20210624082911.5d013e8c@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 24, 2021 at 12:46:48AM +0200, Marcin Wojtas wrote: > Hi Stephen, > > czw., 24 cze 2021 o 00:29 Stephen Rothwell napisaƂ(a): > > > > Hi all, > > > > Today's linux-next build (x86_64 modules_install) failed like this: > > > > depmod: ../tools/depmod.c:1792: depmod_report_cycles_from_root: Assertion `is < stack_size' failed. > > > > Caused by commit > > > > 62a6ef6a996f ("net: mdiobus: Introduce fwnode_mdbiobus_register()") > > > > (I bisected to there and tested the commit before.) > > > > The actual build is an x86_64 allmodconfig, followed by a > > modules_install. This happens in my cross build environment as well as > > a native build. > > > > $ gcc --version > > gcc (Debian 10.2.1-6) 10.2.1 20210110 > > $ ld --version > > GNU ld (GNU Binutils for Debian) 2.35.2 > > $ /sbin/depmod --version > > kmod version 28 > > -ZSTD +XZ -ZLIB +LIBCRYPTO -EXPERIMENTAL > > > > I have no idea why that commit should caused this failure. > > Thank you for letting us know. Not sure if related, but I just found > out that this code won't compile for the !CONFIG_FWNODE_MDIO. Below > one-liner fixes it: > > --- a/include/linux/fwnode_mdio.h > +++ b/include/linux/fwnode_mdio.h > @@ -40,7 +40,7 @@ static inline int fwnode_mdiobus_register(struct mii_bus *bus, > * This way, we don't have to keep compat bits around in drivers. > */ > > - return mdiobus_register(mdio); > + return mdiobus_register(bus); > } > #endif > > I'm curious if this is the case. Tomorrow I'll resubmit with above, so > I'd appreciate recheck. I wonder if this message that I see with Arch Linux's config is related and maybe explains the issue a little bit more: $ curl -LSso .config https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/linux/trunk/config # do not require pahole $ scripts/config -d DEBUG_INFO_BTF $ make -skj"$(nproc)" INSTALL_MOD_PATH=rootfs olddefconfig all modules_install ... depmod: ERROR: Cycle detected: acpi_mdio -> fwnode_mdio -> acpi_mdio depmod: ERROR: Found 2 modules in dependency cycles! ... Reverting all the patches in that series fixes the issue for me. Cheers, Nathan