Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3916309pxp; Wed, 23 Mar 2022 08:06:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0rIu7aotD3ddsmtrJsEbyrkmsaAPKW6HDOXY0TTcyl52HvvM2zltHkiskcQbDvcLNZdoh X-Received: by 2002:a9d:6189:0:b0:5b2:4da6:30e2 with SMTP id g9-20020a9d6189000000b005b24da630e2mr108516otk.141.1648047988778; Wed, 23 Mar 2022 08:06:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648047988; cv=none; d=google.com; s=arc-20160816; b=xlq3YQHDBm/gfZr+nMv90/rx0Q9Kca0m1R1IJgJRfW9muzFtWT4HLwkTdgytYtY8g6 aH2dYZlLj7vh47S4O5xG+t1NdqHcfUMC/0gMA+dXXQNH0edbRC24DgJn8UGR/u19RFwX LxU8W9dG/ud1kdnawSew5g56/vHzvgGCi1MYm85IFmuA6YTVdZTrOzmIQo51H3Ozb7mM nzgGe4tnc1C7N+T0zJ8DJPEyv25lWqbwOrJ1LmYy6QQYoY7RiR7qq+lamg5N1rKnwZZ2 mS5RcbOkxJHnrHnG7+iDU6h3ZO6fWdyflbvHnxfBnRgHYKu35/c5ZV29+9Jv2FMuLz3e u0EA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+wLjXHgWZkMwbEKVBxHxrfvtzB2gVmwUl628XukYUD0=; b=KfDteU3n2QfxmmL6Pi/1yFqFKfzrx9AJScPGBTsb88bScJ0bHuefNBdh1HrglYNm33 0s47z3kE74k/LQGRHzBzGTmgXLmpzA+Z6EI8r/yfibhtQULC3gNvIjKcElXDdtbKEunJ Q3mF5W429ntHDp09o7wAPmFmis/GuK2i7J1HsWWFgSiYm0t05PT044DY60RkJuOTt+Gh m4ffE6pMnomeDv+iyc7wAkrdG7trFWnQHMheyT2FqKBZ3qg2vFHOHe9woGsNb56zJq43 PUF5j8l4hCDiie95I0AoRRC1qrpiDB/O/f6sKNLLm9+y/C6N/sgexLLgZE5m0vzJx7DG SuUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=NBIuBzJX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c25-20020a9d4819000000b005cb3c6803e7si8084473otf.244.2022.03.23.08.06.12; Wed, 23 Mar 2022 08:06:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=NBIuBzJX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237745AbiCVWVe (ORCPT + 99 others); Tue, 22 Mar 2022 18:21:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230336AbiCVWVd (ORCPT ); Tue, 22 Mar 2022 18:21:33 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DEDCDF2B for ; Tue, 22 Mar 2022 15:20:04 -0700 (PDT) Received: from zn.tnic (p200300ea971561dc329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9715:61dc:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 540D51EC0528; Tue, 22 Mar 2022 23:19:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1647987597; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=+wLjXHgWZkMwbEKVBxHxrfvtzB2gVmwUl628XukYUD0=; b=NBIuBzJXz0docrwg/JsRQuvD5mehP+VRjDQ3JFfC7MkCaGbNiPQytJrOBtMDJaPmzxeb09 AidKrgTofsGhYuda8lNll8cclIl132FIoLQNGywKtsgB5DpmhpWFUc7sO92EZNtDtXYo8Y Alug83kl2S3AtYfWWSkF7Fx4FZBJPsM= Date: Tue, 22 Mar 2022 23:19:52 +0100 From: Borislav Petkov To: Linus Torvalds Cc: Ingo Molnar , Linux Kernel Mailing List , Peter Zijlstra , Will Deacon , Waiman Long , Boqun Feng , Thomas Gleixner , Andrew Morton , Sebastian Andrzej Siewior Subject: Re: [GIT PULL] locking changes for v5.18 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org + Sebastian. On Tue, Mar 22, 2022 at 03:05:39PM -0700, Linus Torvalds wrote: > On Mon, Mar 21, 2022 at 4:11 AM Ingo Molnar wrote: > > > > Sebastian Andrzej Siewior (2): > > locking/local_lock: Make the empty local_lock_*() function a macro. > > Grr. I noticed this too late, but this one actually breaks the build with clang. > > Why? > > Because it's now a macro, it doesn't use the argument at all, and you get: > > mm/page_alloc.c:131:40: error: variable 'pagesets' is not needed > and will not be emitted [-Werror,-Wunneeded-internal-declaration] > static DEFINE_PER_CPU(struct pagesets, pagesets) = { > ^ > > and I'm not sure why this doesn't show up with gcc, but apparently gcc > only warns about unused static functions, not unused static data. > > Or maybe gcc considers it used just because somebody did a typeof on it. > > I thought -tip had started checking with clang, but apparently not. As a matter of fact, I do see this in my builds: mm/page_alloc.c:131:40: warning: variable 'pagesets' is not needed and will not be emitted [-Wunneeded-internal-declaration] static DEFINE_PER_CPU(struct pagesets, pagesets) = { ^ 1 warning generated. but I dismissed it as one of those not-in-tip-area warnings. Sorry about that, I'll try to pay more attention in the future. > I see that the -mm tree has a fix for this, but I'm rather unhappy > that the -tip tree build checking has deteriorated so much, and clang > builds will now have a pointless build error that will cause issues > for bisect. Ah, you say build error because you have CONFIG_WERROR=y. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette