From nobody Tue Apr 14 14:18:27 2026 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9DC752609EE for ; Tue, 14 Apr 2026 03:39:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776137959; cv=none; b=H6J5WixWTrFASaHFn1KEU/PtcX4YNzmOYcf88lGG4B/J4wsBoy28mFAJQAVCK61Mz/Z7jrkVVhdgWWCWENuSotzCXIJ2IkyOHEkd7I1VrcxG2SU5RJtgd9W4YTh1TnKpk+erosV++Lxr5OqVk51zlSJb9Ai8Rgxh17fdkNRbuvY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776137959; c=relaxed/simple; bh=zNDKfRLP43CIS6wtIVl39uiWar78YYuaxtYAI73yGss=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=f0Tuj30aQteYw7UNanS5wwbHfUvcDKXbw1KncYk6XNtzL5YIWfxH+nlb+O2jGg8diLq6WGzE3CkKYTo51HACXclB8bSl+0eLbMPsf0R71RXwAdJ8Tu9zrrNRQ9bw4YeRJxTaKpsyZtT3HvDhgXT6ZAVaeBP+BzgS0g3z55en/QE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=dK407oH0; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="dK407oH0" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=22bZuTzDBpuG4PHjLY3wC6OFIQ/GBTRHdo/4QgWyHqQ=; b=dK407oH0ROjU1giYN222OuN9Vk zRnHNi03iiMT/9DUunSRPWVx+ozCl326EXN6ZK8IC2ulQq+GePejsq9PHtkm2law19Vd1vizL038F YQb0jQUPn7EkPYexNI/WTCqe8yI77y+ADfw5qeCHvvgVqTKf01utsCXqupf8pc57tYIIXdbwhPs42 Sg1TcnEdxom2Qv5do4SgFHqpNNc0crV1SrK/aKN1WjoZ3Bd87eKNSBHGlYk6j1eBvwee78WjKUg0Q ZiQ93EL6U1eVhSsSl051P7jSM2IF0MImzy0ZUV6nQac0OggCZfGlhx+55jo3pgk3/y6PeYCW0jjnI 2BOR+lRg==; Received: from willy by casper.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1wCUcK-0000000Ewtm-4654; Tue, 14 Apr 2026 03:39:13 +0000 From: "Matthew Wilcox (Oracle)" To: Peter Zijlstra Cc: "Matthew Wilcox (Oracle)" , linux-kernel@vger.kernel.org, kernel test robot Subject: [PATCH] nvram: Conditionally define nvram_mutex Date: Tue, 14 Apr 2026 04:39:05 +0100 Message-ID: <20260414033906.3562980-1-willy@infradead.org> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This mutex is only used if compiled on one of these three architectures. The DEFINE_MUTEX() macro used to confuse the compiler into thinking that the mutex was used, but that was recently changed by commit 25500ba7e77c ("locking/mutex: Remove the list_head from struct mutex") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202604121134.ZzyH3ZAX-lkp@int= el.com/ Signed-off-by: Matthew Wilcox (Oracle) --- drivers/char/nvram.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/char/nvram.c b/drivers/char/nvram.c index 9eff426a9286..cff2bd4a1fb3 100644 --- a/drivers/char/nvram.c +++ b/drivers/char/nvram.c @@ -53,7 +53,9 @@ #include #endif =20 +#if defined(CONFIG_PPC32) || defined(CONFIG_X86) || defined(CONFIG_M68K) static DEFINE_MUTEX(nvram_mutex); +#endif static DEFINE_SPINLOCK(nvram_state_lock); static int nvram_open_cnt; /* #times opened */ static int nvram_open_mode; /* special open modes */ --=20 2.47.3