Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1803855rda; Tue, 24 Oct 2023 04:01:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE0/8JWFBcfSggGGsajmQUasqe6oYKPhivGKxTBojAyYrgigUIGS8n8STknw846n3Z0p/DB X-Received: by 2002:a05:6a21:66c7:b0:17b:e1a2:d0d0 with SMTP id ze7-20020a056a2166c700b0017be1a2d0d0mr2067221pzb.33.1698145316818; Tue, 24 Oct 2023 04:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698145316; cv=none; d=google.com; s=arc-20160816; b=vjeWLh1Xb+480LciJzOGdXYghwzw+kYTORjDTcasZgyPHQ5WjQAVSOWSFWQWkvNtrm RkmUyayOY8MU2E2kJsipVeH7S7N2NIgXDJ62gSWJa9+gtgSG5BBtes3/Ls1Gh/RZmFvS mM6IGoLQ7v6tHUnjo1Cxa8yXNjMY1EV4SRQglkDjqcwNsd+UqzztLwdvkzWAzrGg4SDM piJqRIuhs5jgtCIU8RJINnnDU+U3tgO+ddRyxXH7LRjJYSez+gstTzYKykjR2JFSMvL5 WeyZRpoTu+9MsNIA9yCkpXirDbtIAzJbYavmgpZhUlj9UgevFclp65ZzzhG4/1/9HVzA RbTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=alTtMukgX6V4+gvxbn7QSuQrAtN0BsIMg+5GRpiNMC8=; fh=lD/qaDZHI+jCw188+keh5vTB8L6kxvj2NPvg+KJQHJ4=; b=ipjzFGS3kzGajvCdjXOF0H8HQ9qVOWmHQC1YBA2Jys1fqYijBAzOD6HxhH3iZYT+e3 6NaK6LqukGtB5sitIhsU9yr3Crp7Md3et3dAcm7nPqrd6rp/LgHW7TfVhl0RZ2TFxxIw VpYNvArAlisVWGtVQFU1l13i1Vdc8qEwAq7rc3l8uz32Y7sZKEFou5zYzvfoDT60Nzjb llc7N6x3IWwuZdpc8nWHDYoQgVPOXN8T+imZSwA8pdwk73WaCp/VpdwE5HuASa2NbWQs szH1Wsq/9bkeov+xVt8fjI2Gt1yPPmFtgdlTlyLz6LcR2rivHANkSRnNW6OHTKAnZYTb nK1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AwRgj5dn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id i190-20020a6387c7000000b0057c2f614756si8059918pge.212.2023.10.24.04.01.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 04:01:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AwRgj5dn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 636218041C21; Tue, 24 Oct 2023 04:01:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229569AbjJXLBi (ORCPT + 99 others); Tue, 24 Oct 2023 07:01:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231552AbjJXLBe (ORCPT ); Tue, 24 Oct 2023 07:01:34 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C568410C9; Tue, 24 Oct 2023 04:01:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698145292; x=1729681292; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=85PAA1+GqsYhqFpnQoQXck2TLmZV/C60H5Ubi4po3Rw=; b=AwRgj5dnohVDVzsjGaFMMX3QUrcpYU6brBLDHQFsPgOq6rZ3ukFQYd76 kWW7DqfAD2Mpcx7ty4zOHYnyvAU3apwJ+A1AbbRjcxhZiIf7fvxA2tlUX xVML909SqnPt5sXMuJa+upyiBexIQxRG43YS+G1+r1N9bPZk8+K3ztlg/ 1d7plWKcK/BYzsKIPe1YhF0C1vgywycBR+Ff7naL3RK+7iDpLdAEgeUXU l33PwfycajpKoxI5v9aBsZfThk4wKLVpGo/KC1WegboTUeAAUnBvoBd6j 3YOjgQho21+rOXKSsWErng3SWoxuz5x1uTpi82cFDGvEB1ZNqvF9BjxX6 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10872"; a="377408813" X-IronPort-AV: E=Sophos;i="6.03,247,1694761200"; d="scan'208";a="377408813" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2023 04:01:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10872"; a="708244687" X-IronPort-AV: E=Sophos;i="6.03,247,1694761200"; d="scan'208";a="708244687" Received: from nkraljev-mobl.ger.corp.intel.com ([10.249.41.91]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2023 04:01:29 -0700 Date: Tue, 24 Oct 2023 14:01:26 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Stephen Rothwell , Bjorn Helgaas cc: Lorenzo Pieralisi , =?ISO-8859-2?Q?Krzysztof_Wilczy=F1ski?= , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build failure after merge of the pci tree In-Reply-To: <20231024161425.0b382725@canb.auug.org.au> Message-ID: References: <20231024161425.0b382725@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 24 Oct 2023 04:01:54 -0700 (PDT) On Tue, 24 Oct 2023, Stephen Rothwell wrote: > Hi all, > > After merging the pci tree, today's linux-next build (arm64 defconfig) > failed like this: > > In file included from : > drivers/pci/controller/dwc/pcie-tegra194.c: In function 'tegra_pcie_ep_irq_thread': > include/linux/compiler_types.h:435:45: error: call to '__compiletime_assert_497' declared with attribute error: FIELD_PREP: value too large for the field > 435 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) > | ^ > include/linux/compiler_types.h:416:25: note: in definition of macro '__compiletime_assert' > 416 | prefix ## suffix(); \ > | ^~~~~~ > include/linux/compiler_types.h:435:9: note: in expansion of macro '_compiletime_assert' > 435 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) > | ^~~~~~~~~~~~~~~~~~~ > include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' > 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) > | ^~~~~~~~~~~~~~~~~~ > include/linux/bitfield.h:68:17: note: in expansion of macro 'BUILD_BUG_ON_MSG' > 68 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ > | ^~~~~~~~~~~~~~~~ > include/linux/bitfield.h:114:17: note: in expansion of macro '__BF_FIELD_CHECK' > 114 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ > | ^~~~~~~~~~~~~~~~ > drivers/pci/controller/dwc/pcie-tegra194.c:498:29: note: in expansion of macro 'FIELD_PREP' > 498 | val = 110 | FIELD_PREP(PCI_LTR_SCALE_SHIFT, 2) | LTR_MSG_REQ; > | ^~~~~~~~~~ > > Caused by commit > > 18ca6c2c2d0e ("PCI: dwc: Use FIELD_GET/PREP()") > > I have reverted that commit for today. Thanks for providing the full error message. I already was trying to investigate it and reproduce the problem because LKP's report I got about this failed to provide the full error message. It seems that the original code was more complex than it looked and the patch is wrong and suboptimal on multiple counts. I'll provide a fixed v2. -- i.