Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1514824ybg; Wed, 29 Jul 2020 16:44:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQGfFP3s+Quj65M6w/nPKGpxtBWqt9cmZGf0zwXOokKf06sfzoLAGzI8ARVyi7a5f9NMcq X-Received: by 2002:aa7:ce90:: with SMTP id y16mr167612edv.325.1596066291582; Wed, 29 Jul 2020 16:44:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596066291; cv=none; d=google.com; s=arc-20160816; b=fdiemzQFECsAebjSamZs/TpdHN787vMU0HEZoy9yCcSXIALn2bn+c0OY3hHI6I8aS/ DCIHA7V4w8DhHnf6QbWUcETa+TxhzaSFoH70hWZy3VyYh5whzYe1GiC3w6oMvaezs+HU 9OPYP5VYEAioMqY+bp18RIqcgjpjgJiO6cvfz93+KKJ4x12+y7Yhp5QdhMoN1ZaLzQr5 1T7p9js/CbWCFCRMRJSJ5lYC+epSc5Ye90rEs8dDrDaPWuNpvUZI0S0OdCbox66G1/ll mcDADXY69E6SDFJHq5cVbj4q5nftAEhmVFBpNCDtrqT5txdRpP5o5/92AijRrw1w8Yy3 sKsQ== 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=cLb39v1oq5FRSvzH9bhk1WYh4C3cI/mPlFpmehg+P8U=; b=A2pkAYPJ8gt7ym0yGo7Y+sKfIXMya2/ykgCjDlaCkqQEqrtK6qxqYMmPndL6yZJilb czBTNFf96xv+UGVP3Uki26Cg04YQYnwvQC+TZGpgXPmP6bBLDbWIXioANBv26gaYwrfr chHwF6/XbXB5E8Uy3xJS2/ybPSE9LUDUr7LFr1Z4zrcq+S4AxNKyqcM35MPB9W3UiNKg JsZZmi4AdcVZc802eZRtnSxVhVWCeau3Z6vhWwhBf9Fmjp3PeX4XX1NsSiOBQ4B7SXxi Gay9gVBQow10yBMdTmE1EwOxd65feyuN9TeBkK8I2ijANP0LkYj7p4y6O60lWWoochKc 072w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=bJY1IJET; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b25si2144306edy.296.2020.07.29.16.44.29; Wed, 29 Jul 2020 16:44:51 -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=@linux-foundation.org header.s=google header.b=bJY1IJET; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728127AbgG2Xn0 (ORCPT + 99 others); Wed, 29 Jul 2020 19:43:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727858AbgG2XnZ (ORCPT ); Wed, 29 Jul 2020 19:43:25 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E613C061794 for ; Wed, 29 Jul 2020 16:43:25 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id t23so3394859ljc.3 for ; Wed, 29 Jul 2020 16:43:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cLb39v1oq5FRSvzH9bhk1WYh4C3cI/mPlFpmehg+P8U=; b=bJY1IJETI9mZ6ooPJU+FDg9B7jzap0h2Yz93SPYM9zKJ9Wdg5rhq1Q38+uqHFUftp6 yXS3OWEtQE+ECx5vOXCBAGIp+ZFWxHA4xV5cJeTIyP54f59CP+/hvMrC1NPhC8s3Ij31 Sk8Hf3X7mT+6eSMW+Rv2JLhvzWZAuA8ve65jI= 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=cLb39v1oq5FRSvzH9bhk1WYh4C3cI/mPlFpmehg+P8U=; b=TFbRTVtGQiR49Ul/7IIDRP9bbmkcm7BCZqMk1d8C/89MlV6qGy03lIWVS2GPpOD+yC VExxvh2p7aJTEqTapz6x3zSy/53kaW1QBVua0h+fru/XVyUsM6b4ShmadI2b4Wd9Kajd Y4DBClYT3fsJYdsAQ4KZc5Yl/mikcidv9DkWDNRoQr+lBsMZxLCejWzvuYCnEwe6oZgW hV991qiPPo33JuhIJ6OFpGeGPAlu6IYp/dil9sMc5W2OabrP0P7e87nO6ZhDj38v5ocH mNYYHjNrEmPjwSpULaOLV8S8rFtz4EtTFHGtPTDRpYW1oCJhGx2SJ0sYiKkrbbtGy/5g tCBg== X-Gm-Message-State: AOAM532nEzd2qouSa7nwmUxrUCwJ/OSTVW6ibyrkhBN+cwVlgvXtYeT+ 6PxBobvq7TVIC9QswZwsrcF/txZGjnY= X-Received: by 2002:a2e:1641:: with SMTP id 1mr119858ljw.73.1596066202099; Wed, 29 Jul 2020 16:43:22 -0700 (PDT) Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com. [209.85.167.54]) by smtp.gmail.com with ESMTPSA id y26sm660612ljm.132.2020.07.29.16.43.20 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Jul 2020 16:43:21 -0700 (PDT) Received: by mail-lf1-f54.google.com with SMTP id i19so13965710lfj.8 for ; Wed, 29 Jul 2020 16:43:20 -0700 (PDT) X-Received: by 2002:a05:6512:241:: with SMTP id b1mr171970lfo.125.1596066200379; Wed, 29 Jul 2020 16:43:20 -0700 (PDT) MIME-Version: 1.0 References: <20200730090828.2349e159@canb.auug.org.au> In-Reply-To: <20200730090828.2349e159@canb.auug.org.au> From: Linus Torvalds Date: Wed, 29 Jul 2020 16:43:04 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: linux-next: build failure after merge of the origin tree To: Stephen Rothwell , Emese Revfy , Kees Cook Cc: Linux Next Mailing List , Linux Kernel Mailing List , Willy Tarreau 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, Jul 29, 2020 at 4:08 PM Stephen Rothwell wrote: > > include/linux/random.h:123:24: error: variable 'net_rand_state' with 'latent_entropy' attribute must not be local > 123 | DECLARE_PER_CPU(struct rnd_state, net_rand_state) __latent_entropy; Hmm. Ok, this shows a limitation of my allmodconfig testing (and all my normal builds) - no plugins. So that problem wasn't as obvious as it should have been. That error isn't very helpful, in that I think it actually is very wrong. The variable really isn't local at all. I think what the plugin *means* by "local" is "automatic", and I think it uses the wrong test for it. IOW, looking at the plugin, it does if (!TREE_STATIC(*node)) { *no_add_attrs = true; error("variable %qD with %qE attribute must not be local", *node, name); and what I think it really wants is that it has a static address - so a global variable is fine - as opposed to being an actual static declaration. Also looking at the plugin, I suspect it is going to be very unhappy about the fact that the attribute is there both on a declaration and on the actual definition. The code later seems to really only want to work on the definition, since it's creating an initializer.. IOW, I get the feeling that the plugin is confused, and it so happened that the only variables we'd marked for latent entropy were static ones. But I haven't done gcc plugins, so... Adding the gcc plugin people. Otherwise the only option seems to be to just remove that __latent_entropy marker. Linus