Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1373646rwl; Fri, 24 Mar 2023 09:39:24 -0700 (PDT) X-Google-Smtp-Source: AKy350aQ3a7hu2ScTdnaymaPI34tspr6uzM9dxNJUcXjCf6QcpPINwpCNJp28Ec1t9ZGdnJBu+nX X-Received: by 2002:aa7:d68f:0:b0:4fb:8b80:e959 with SMTP id d15-20020aa7d68f000000b004fb8b80e959mr3754874edr.32.1679675964017; Fri, 24 Mar 2023 09:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679675964; cv=none; d=google.com; s=arc-20160816; b=S0Z0bmCcuiWnPCZPP911yeXLuTfNmM0sc0T6oj+XzGff8DvKIlbsB8rVLIZG2O5sBH nWjLM1Clj9VIksutw9XQtpgaD3gBlhXjmR2UCEEnwMt1IyKaQhl1ISqSG0QTlQ1DKHS/ Y++IKu/rTbH7yALeeh07Yl3f820/HV7lQXNE/2/XE5oiSh0/8NHJRy5nrQgEKv7wQzH5 q8OtVTR1/ZqQSiHOVWujTmrgqbGTHobwQwThD2xw8fMz4Iay76eQg3cxM0PmP79ToJJV LW43xD/seeiHqykf6sAenEdq5EG3FCei1XiTZIVn7ov4Nf2qxVrKsXBs7UqI32JgKmQZ KR9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=z0I9lsT60WCP6vbQCWj28YST5u9bxKrl5bchzlD9sCE=; b=n3o5d50H2Qm+Mtql8Tj4nWBHUTc5sSCYd71TLbVUrUzdEAi4dxa9dJSa/84QyTK5Zh A0GlD1hCoPJzQYc5CljbZG0la89aMnDMkv0Gn//I7N3vwv76Fa7U5iHnZFQ0vflnReR7 CTT7+qyTAPAs2rCqWNL/Xip3r3QjGjNNRzvSPidEjantJbYS3pUoAhl5mOYYVDhHNQ1N VNfhrftOA4gqPf6tTg+PIiWU+g2vRrqHSJjWZ//Ka6F88lxMXbjUWCj/fU0lRU220fI1 JGradhDyVU0nC5aJmYRa2vUXW2jSepu4sZjXbFnAhERCQkUB3EmYT0rRhO6+O4bthGqS eXuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=yaZeWUSU; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n20-20020a05640204d400b005021f0d1410si1977293edw.32.2023.03.24.09.38.59; Fri, 24 Mar 2023 09:39:23 -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=@linutronix.de header.s=2020 header.b=yaZeWUSU; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229921AbjCXQfS (ORCPT + 99 others); Fri, 24 Mar 2023 12:35:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbjCXQfR (ORCPT ); Fri, 24 Mar 2023 12:35:17 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F3B9D52F for ; Fri, 24 Mar 2023 09:35:16 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1679675714; 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: in-reply-to:in-reply-to:references:references; bh=z0I9lsT60WCP6vbQCWj28YST5u9bxKrl5bchzlD9sCE=; b=yaZeWUSU815+XJ/jzQpzdqIwgsCsBNHFWGrBYbuy32UqwPOL+Q/9c87OH3NslI0LE7mQA8 2/zEUxIBbeOWiPzf5OmG8gxf5g8vF6v/uFqhjwa0Y7jNtLhtslqY8qQhdQHRbrvi1XwHOZ DVAXgimQ0nMrLcph9zrk08IQdMECf5tcuKcS4K1QTqK7sXXcT9blMMW4M4TaBfRRrMM6nL sQO57Pe7HA9GSOy5jxBbUdCJTTymL67Do+5wFjeCn2/DEDsOZ1W/yuYQ+a3hkLEmI3HAIm IUrFPnF/Jpp6Wl9E/d2jL+csKrJM6Lmh15xux/yhYO+QNTxalnZWEbVnSLlVYA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1679675714; 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: in-reply-to:in-reply-to:references:references; bh=z0I9lsT60WCP6vbQCWj28YST5u9bxKrl5bchzlD9sCE=; b=xBqsF3Xfl1mz/yPYkhuXGlsIWrS9exh/cdRXclN129z2MMikXTPjq9YOXNtfv9/VrtyErx ZonNezu0lAPFwKCg== To: Borislav Petkov Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/microcode: move @microcode_mutex definition near usage In-Reply-To: <20230324151933.GCZB2/hUOFuECIF1AG@fat_crate.local> References: <20230324114720.1756466-1-john.ogness@linutronix.de> <20230324120019.GAZB2Q09ODVq0iYz5l@fat_crate.local> <87edpenvkh.fsf@jogness.linutronix.de> <20230324151933.GCZB2/hUOFuECIF1AG@fat_crate.local> Date: Fri, 24 Mar 2023 17:39:35 +0106 Message-ID: <87a602nm74.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,INVALID_DATE_TZ_ABSURD,RCVD_IN_DNSWL_MED, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-03-24, Borislav Petkov wrote: >> I was doing some tests with CONFIG_PREEMPT_RT. I did not think that >> mattered, since the mutex is obviously defined but not used for >> !CONFIG_MICROCODE_LATE_LOADING. > > Oh sure, I see that. I'd still like to have in the commit message why > exactly it happens. Note that an unused mutex is being defined, even when the compiler is not warning about it. >> CONFIG_PREEMPT_RT cannot be enabled yet, so this patch is not urgent for >> mainline. But at some point it will need fixing. > > Sure, send it to me when it can be triggered with a .config with the > upstream tree, along with exact explanation how it happens and I'll > queue it. OK, but the kernel test robots will probably beat me to it. ;-) John Ogness