Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp989374ybb; Wed, 1 Apr 2020 13:27:33 -0700 (PDT) X-Google-Smtp-Source: APiQypKu7XL0Sx+ds9A4pjy8xteFJtSm7lUNRH676u4P0IXDekjyhtuhlml9FmfCZ466BI0ypPA0 X-Received: by 2002:a05:6808:a0a:: with SMTP id n10mr152723oij.10.1585772853370; Wed, 01 Apr 2020 13:27:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585772853; cv=none; d=google.com; s=arc-20160816; b=TQ/tS4i6MwvJGii1xdF9FDbcqvec0hYg1GXVRDaefDbvjgcDlU5gGFe2nvkakVcxVS HKt5KKHEzzE6WRXVrP6kEDqS6DnEJNH/NSrtvI9jUcVki+dvuHCwqtWNTgyslSwJeMLw dXuqg9CF0sMmDJH9PmYElBE+Njrt1jgUD5AsaiYtoeat4W/yBRQ80yQAJdqaueZnRQD/ LUZ9PDTfHVYomOoT5jATy9PNGFPr3OXlNRPv9xyJ/FPJQS/AycQCYNdwy0hlOkfGnpcG 5n6unb7tPFpad7gaugHjijo4kEo6knhR2J+Sck3njdvhtJplyUilTOyYCBR/NPnVJ7X9 KuVg== 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; bh=Ug9xvso2ibAozuMtdH282Ae+5uQpIAI7JbIiApWivYY=; b=uQpgRr+wYXlvSbgXkbV2WaNOVCFa48puGPsTchTOYTebAcql6L5x60au8fV4x5I0Gw nKMGeeGFs3LOYAQsik6KS/jB3mLC+TWwgizeiydoizfmPFiJCTK6J3bJvgq+YBHAeZJp c7dU4zTZqib2tflnThmAXUUtXumD15TsBTAXg0ciQBp10Gt7nx6JFMvEk115kaVGuwo7 VRY1bMkKF3UmYe2jDl1hvD2w3OlmhPfY9xP02odIMuJW0WlRjgEpuaRy8Wfd1bq0rK4k k86LnYdGimCyIMePsFa+DcsUY6iafLLVwq7PXB9gZ3g14ZC8URqWfay3dS1rhIy0fbeq e3mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZGY1Lrw1; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z10si1281205oth.135.2020.04.01.13.27.19; Wed, 01 Apr 2020 13:27:33 -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=@google.com header.s=20161025 header.b=ZGY1Lrw1; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732746AbgDATy6 (ORCPT + 99 others); Wed, 1 Apr 2020 15:54:58 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:39945 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732554AbgDATy5 (ORCPT ); Wed, 1 Apr 2020 15:54:57 -0400 Received: by mail-pl1-f195.google.com with SMTP id h11so393601plk.7 for ; Wed, 01 Apr 2020 12:54:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ug9xvso2ibAozuMtdH282Ae+5uQpIAI7JbIiApWivYY=; b=ZGY1Lrw15EmGLMr9MBH/js6pVH4l6VCDnlhGqVA62hkZItw1g5GZOUYg1HNTAE8t/E GOBfiE0Aa3DsGUFZBk1kUv4UZCqVeeLuRSaTSPyVnRzvDqdGdtxPVK/uhTRZMOumjCGp TyiTnWP1ss/XBV/Ozmuzvc97naoA0cWrOjBzHUVXl8Pk4totnKmOjKbAwPelHW4gqrdK z+RyV3fDkXnTNW8LeC2cSdSVutNe7UJdyFSmjAiMNUxwz+vsAHBJeUzVlLRjX+yk3kN2 UXehzLotn9PgGxbU3ar+jky4WPV8bjykAKwQ73S+oLmEvfsVyFdPP/nnojEb9ER7p2Ma ulsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ug9xvso2ibAozuMtdH282Ae+5uQpIAI7JbIiApWivYY=; b=jVzquqfabfskep+ms2y+vClMs0dQme2mG8GH1ob1t6YRBIHrdR94FDMN0oynLQ8xPW 8lYgV5KUUXWqC9mw3GsLOqGPSY7NrzSx5U9DUKXnn6gXviAuEp1l35hT9U7GGWbLgCRY +ntSS6WLH4DL5h03fhfVtlHPSx/nPP7mK2VkYwznpyEr7kfQHj9BI7xWIqrOhUbh5Qli tG9boz05C0/M2qRZmNaeSwXOOuyOPYvaTFl3j9gSFoXSJWk+OhManMYMptr6R+0Fr7CF p51R1zoeIIR5+rVq6M/ZXCM5TWDNAiah8EQzOyT5c3UimVjgAldtk8rGOOU+i2tS1UNN NYvg== X-Gm-Message-State: AGi0PubJ5qR9dC4VAKwR4LnxlYTnbHc9DVu0mKb0mgyzYoBJeDZqH58N 4uAFxeExNStT/VwIXbwfOjLRez4EGI6HUivMuQ8KwA== X-Received: by 2002:a17:90b:230d:: with SMTP id mt13mr6803649pjb.164.1585770895190; Wed, 01 Apr 2020 12:54:55 -0700 (PDT) MIME-Version: 1.0 References: <20200311024240.26834-1-elder@linaro.org> <20200401173515.142249-1-ndesaulniers@google.com> <3659efd7-4e72-6bff-5657-c1270e8553f4@linaro.org> <3c878065-8d25-8177-b7c4-9813b60c9ff6@linaro.org> In-Reply-To: <3c878065-8d25-8177-b7c4-9813b60c9ff6@linaro.org> From: Nick Desaulniers Date: Wed, 1 Apr 2020 12:54:43 -0700 Message-ID: Subject: Re: [PATCH v3] bitfield.h: add FIELD_MAX() and field_max() To: Alex Elder Cc: Maxim Kuvyrkov , Arnd Bergmann , Bjorn Andersson , "David S. Miller" , Johannes Berg , Jakub Kicinski , LKML , Masahiro Yamada , Nathan Chancellor , Network Development , Alexander Viro 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 On Wed, Apr 1, 2020 at 12:44 PM Alex Elder wrote: > > On 4/1/20 2:13 PM, Nick Desaulniers wrote: > > On Wed, Apr 1, 2020 at 11:24 AM Alex Elder wrote: > >> > >> On 4/1/20 12:35 PM, Nick Desaulniers wrote: > >>>> Define FIELD_MAX(), which supplies the maximum value that can be > >>>> represented by a field value. Define field_max() as well, to go > >>>> along with the lower-case forms of the field mask functions. > >>>> > >>>> Signed-off-by: Alex Elder > >>>> Acked-by: Jakub Kicinski > >>>> --- > >>>> v3: Rebased on latest netdev-next/master. > >>>> > >>>> David, please take this into net-next as soon as possible. When the > >>>> IPA code was merged the other day this prerequisite patch was not > >>>> included, and as a result the IPA driver fails to build. Thank you. > >>>> > >>>> See: https://lkml.org/lkml/2020/3/10/1839 > >>>> > >>>> -Alex > >>> > >>> In particular, this seems to now have regressed into mainline for the 5.7 > >>> merge window as reported by Linaro's ToolChain Working Group's CI. > >>> Link: https://github.com/ClangBuiltLinux/linux/issues/963 > >> > >> Is the problem you're referring to the result of a build done > >> in the midst of a bisect? > >> > >> The fix for this build error is currently present in the > >> torvalds/linux.git master branch: > >> 6fcd42242ebc soc: qcom: ipa: kill IPA_RX_BUFFER_ORDER > > > > Is that right? That patch is in mainline, but looks unrelated to what > > I'm referring to. > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6fcd42242ebcc98ebf1a9a03f5e8cb646277fd78 > > From my github link above, the issue I'm referring to is a > > -Wimplicit-function-declaration warning related to field_max. > > 6fcd42242ebc doesn't look related. > > I'm very sorry, I pointed you at the wrong commit. This one is > also present in torvalds/linux.git master: > > e31a50162feb bitfield.h: add FIELD_MAX() and field_max() > > It defines field_max() as a macro in , and > "gsi.c" includes that header file. > > This was another commit that got added late, after the initial > IPA code was accepted. Yep, that looks better. > > >> I may be mistaken, but I believe this is the same problem I discussed > >> with Maxim Kuvyrkov this morning. A different build problem led to > >> an automated bisect, which conluded this was the cause because it > >> landed somewhere between the initial pull of the IPA code and the fix > >> I reference above. > > > > Yes, Maxim runs Linaro's ToolChain Working Group (IIUC, but you work > > there, so you probably know better than I do), that's the CI I was > > referring to. > > > > I'm more concerned when I see reports of regressions *in mainline*. > > The whole point of -next is that warnings reported there get fixed > > BEFORE the merge window opens, so that we don't regress mainline. Or > > we drop the patches in -next. > > Can you tell me where I can find the commit id of the kernel > that is being built when this error is reported? I would > like to examine things and build it myself so I can fix it. > But so far haven't found what I need to check out. From the report: https://groups.google.com/g/clang-built-linux/c/pX-kr_t5l_A Configuration details: rr[llvm_url]="https://github.com/llvm/llvm-project.git" rr[linux_url]="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git" rr[linux_branch]="7111951b8d4973bda27ff663f2cf18b663d15b48" the linux_branch looks like a SHA of what the latest ToT of mainline was when the CI ran. I was suspecting that maybe there was a small window between the regression, and the fix, and when the bot happened to sync. But it seems that: e31a50162feb352147d3fc87b9e036703c8f2636 landed before 7111951b8d4973bda27ff663f2cf18b663d15b48 IIUC. So I think the bot had your change when it ran, so still seeing a failure is curious. Unless I've misunderstood something. -- Thanks, ~Nick Desaulniers