Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3586604pxb; Mon, 24 Jan 2022 12:53:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgJTVhRXmffGFLO8lbHHbtBX4G17wqYO1NtkomBtbY45I5gWRuRm3Jhf4dV42tvoKYzRmU X-Received: by 2002:a05:6a00:15d1:b0:4c1:e1d2:347c with SMTP id o17-20020a056a0015d100b004c1e1d2347cmr15545486pfu.29.1643057633069; Mon, 24 Jan 2022 12:53:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643057633; cv=none; d=google.com; s=arc-20160816; b=yPkPSrBNlimaAajAMY3zY+RQejcLAdASqfhcicN4mNYBdPV4ynxgnhuge2catpYYsw nKEnQiyjtocVFmJAIs0YI0LRYriv80MLvKUBePvRbNkpj0MoI1uVzqHBnorZxs8dSjLf f6g3k/FnYlHNXg6iQqwXKbhZ/VlJMYDADNmONovErDL4wGwvcjlsDCIz1zLjYQpXe3h3 ZJXPWOub6Cy7WG3/YsFGgNE8Rdm5+TqaW1yR/6NeeOdzq16dh7nGgGeeW71m6uw628Pz buDSP/x6YI+nOIC62PVwKHp0GSZpeYh2wzXvdh0ltgSUsvBwGoa98GFIxS8FxPZ1v6bS Uijg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Pj6vhdHnKAxc1I0B9Rgum8U8VOgshvj29T45A+Syogc=; b=DmYXowYpPMc7yD1O93UXpI5XwMCinF7xQcsrmqV7xijpMgY1rXWDePyKjtCS5u283Z viD8Sos8tL3PihNgbWf0JAe6yxKvzhQtkNox2fKlCBkIyN+05Tet+O4pQ5++aPwCqLYI NRmBL2BLhUiqTMkud+qFM09n825yr62wLU2n0s0wrh28CQlDJWfND4lHLWfKcwJme6tZ yOfsd/u+u0URTwy5cltXJCK5IDuP4J7VrKoPyr7m0IhGNR+l8YnAcrEbPjoh9geT0jX4 Ub1FlpslyxFoj+33MvU5mmsCkE/0Hwq0wrUuOR6p7M8OcTTVdAAxuTaowGg+hohSSV6c U5+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mXN7gTpr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i4si8455151pgj.317.2022.01.24.12.53.38; Mon, 24 Jan 2022 12:53:53 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=mXN7gTpr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354989AbiAXUNM (ORCPT + 99 others); Mon, 24 Jan 2022 15:13:12 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:51504 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358113AbiAXTyc (ORCPT ); Mon, 24 Jan 2022 14:54:32 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 34C066090B; Mon, 24 Jan 2022 19:54:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F33D0C340E5; Mon, 24 Jan 2022 19:54:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643054065; bh=FaB0y9HIYPaqAi9q7owR1nZqkiO+ArzL+57wSpMcVoE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mXN7gTpr8ERbD4+iZDnFD1CG8Hfd16PMQGyFb6f0QJt9N8Oc4gItIwdbvJ8tC73ZU qPhEmxzWqLpl36HrFUXL/Yc1unmMacmJ1RnzHGIKjksTeZefYzF8pkdE2aX/eARfs4 54HtAWaF8gdtGscg3p8tcbOcpWlYVkQGbCBep+lM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Erhard Furtner , Christophe Leroy , Michael Ellerman , Sasha Levin Subject: [PATCH 5.10 267/563] powerpc/powermac: Add additional missing lockdep_register_key() Date: Mon, 24 Jan 2022 19:40:32 +0100 Message-Id: <20220124184033.680604443@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184024.407936072@linuxfoundation.org> References: <20220124184024.407936072@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe Leroy [ Upstream commit b149d5d45ac9171ed699a256f026c8ebef901112 ] Commit df1f679d19ed ("powerpc/powermac: Add missing lockdep_register_key()") fixed a problem that was causing a WARNING. There are two other places in the same file with the same problem originating from commit 9e607f72748d ("i2c_powermac: shut up lockdep warning"). Add missing lockdep_register_key() Fixes: 9e607f72748d ("i2c_powermac: shut up lockdep warning") Reported-by: Erhard Furtner Signed-off-by: Christophe Leroy Depends-on: df1f679d19ed ("powerpc/powermac: Add missing lockdep_register_key()") Signed-off-by: Michael Ellerman Link: https://bugzilla.kernel.org/show_bug.cgi?id=200055 Link: https://lore.kernel.org/r/2c7e421874e21b2fb87813d768cf662f630c2ad4.1638984999.git.christophe.leroy@csgroup.eu Signed-off-by: Sasha Levin --- arch/powerpc/platforms/powermac/low_i2c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/platforms/powermac/low_i2c.c b/arch/powerpc/platforms/powermac/low_i2c.c index f77a59b5c2e1a..09bfe4b8f25aa 100644 --- a/arch/powerpc/platforms/powermac/low_i2c.c +++ b/arch/powerpc/platforms/powermac/low_i2c.c @@ -810,6 +810,7 @@ static void __init pmu_i2c_probe(void) bus->hostdata = bus + 1; bus->xfer = pmu_i2c_xfer; mutex_init(&bus->mutex); + lockdep_register_key(&bus->lock_key); lockdep_set_class(&bus->mutex, &bus->lock_key); bus->flags = pmac_i2c_multibus; list_add(&bus->link, &pmac_i2c_busses); @@ -933,6 +934,7 @@ static void __init smu_i2c_probe(void) bus->hostdata = bus + 1; bus->xfer = smu_i2c_xfer; mutex_init(&bus->mutex); + lockdep_register_key(&bus->lock_key); lockdep_set_class(&bus->mutex, &bus->lock_key); bus->flags = 0; list_add(&bus->link, &pmac_i2c_busses); -- 2.34.1