Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3635478pxb; Mon, 24 Jan 2022 14:04:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMlXC5oQkCukAw11qPuY0E5ngwVeY4WFA6krHRPeLYSR/eiclUlQ61Jv2mGr3Q0fSbSKFX X-Received: by 2002:a63:525a:: with SMTP id s26mr12905530pgl.178.1643061862410; Mon, 24 Jan 2022 14:04:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643061862; cv=none; d=google.com; s=arc-20160816; b=mXvk9BXHqroWFVcbl16M6Yy/qaMt2tH/psyxNTMfAhW+UD+1W/mbudqLP7ZiRc/veq rqfoD7r85F4h+yb2nHWTNhzMBtaQsNh9TWV+Y6VgmNSRiIO4st/gc2rp5veOt2/vchrh KV3eCsgak/jTYbNZBWvhz1eklmwcrr2NPdLV9ChQiCsZR6iyAjPemn3C2bDhAL6uyCST IvkuzOK60Sweg3OWuQdlSLfkDBjoZFKKe3KHoMymYzxNp3aHGv+hxtEG4QtlJ4aZfsQN AtvuH3gQTmqqO4QQvNDkksLknqaAa3PzqocDRXu4vhGr5EN8ltDizQnJOeCE2+hUcAjk iT4w== 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=pLV4ruGXPEArmlkK2wxDL2xUM1ly7dUqh4NnDppGvUAQB5NYA/hK9TwylufK39Kerq QbVqzypAj5g3vRROsFwMXwBKB6Q9mR927ABa1LfKgFyApfMcUk09OuTFFeExoB0V4mfZ wraYsKU6rjbiXpeozmlYrYmzseZtEXa5Znx5KJOcPcGyhpmIj6BVDzvhgJV9HA75MFSr PIxsCZ4UBVHqxMEsbX1g7Krf97GZBDZUVzuPG2nZmi270QpJFxsK8/tgW+bkq7qmFgfQ ZX/NX7DqXShwb1/UugVSwPWu1vpIvzWvnFp8ScOe+Fr0KjOX8AayA8HyYazDfGMx9JOD +INQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fyNIE7iB; 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 c17si437255pfv.315.2022.01.24.14.04.10; Mon, 24 Jan 2022 14:04:22 -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=fyNIE7iB; 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 S1575968AbiAXVws (ORCPT + 99 others); Mon, 24 Jan 2022 16:52:48 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:37966 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377498AbiAXVTA (ORCPT ); Mon, 24 Jan 2022 16:19:00 -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 ams.source.kernel.org (Postfix) with ESMTPS id E1E06B8123A; Mon, 24 Jan 2022 21:18:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26D51C340E4; Mon, 24 Jan 2022 21:18:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059135; bh=FaB0y9HIYPaqAi9q7owR1nZqkiO+ArzL+57wSpMcVoE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fyNIE7iBTyVbZr2OOVH2YW4MLr2aJumoGAqSgLGYSPQwpi9YvdFAkOqku86d8+lgR /AM/o7Y3pH+Sa+bxqmD60gUTopFx0Mm/pirui2/63WBo4PfjeB7FAsQ1p+v/IRbmDt a84F6WfU+c1GCJs0sStRsEu14obCqUkr7r0A8Pl8= 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.16 0482/1039] powerpc/powermac: Add additional missing lockdep_register_key() Date: Mon, 24 Jan 2022 19:37:51 +0100 Message-Id: <20220124184141.475710269@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@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