Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3668583pxb; Mon, 24 Jan 2022 14:56:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5CmagYp5ZD8KgeXq2Xacc5OvvM7WEc+jUoGUcVq/XC1BG9AZVvb/Bv7VbbWlGTS89HPJG X-Received: by 2002:a17:902:8307:b0:14a:c935:4403 with SMTP id bd7-20020a170902830700b0014ac9354403mr15231926plb.15.1643064967177; Mon, 24 Jan 2022 14:56:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643064967; cv=none; d=google.com; s=arc-20160816; b=OOKkm5n6glRv+9i0ErMz4ShxUWEfDR3ilpuk+ytmeztmsjvb5MQM413DekBVqWpMYo vVkYJyndELRk56YT9GbIasz2y+O5NY9WzaulwUbjYwtdFWvslbkrHfRSHkomLRoFwHRD RExZfSe3QB75+jpgthRL3/DezD+2mi52iMgqlD3DmBWmlyUly1CDIZHjFxeMRYyriVX4 PpqyX7RnXEdxVZbosU139e20ZJ1BQZDIo9f+pw+L/z3x3vhB92EE317SEsj6cDFfMPqi nwjQselMY80A+SJ1W7bX1SkvgF09hvZqW3RAgDenkfSXDxqTZSeB6c/+MGIy0oBzHr5b yiwA== 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=tjiREXsvOPfN6I2tbO4azVSRzjnm2Qfn2NwpuFwveeNFW6haiM7Y+wRjE6ojnZbZUH bgk8FzASTjCA6kiDd6iL5CjRyOXXLHk4YYykC2fu79eICZPFD/hi/A7pCzAqYT8G+Cvy JHwK5n6EBmLU9HI4GwcaXwqLa+XRQ4UmlQA8/BVmuDor5nVWBEGUDkGWKK+51MV6felk y6GZJ7/010f7SePlbpX+YDFnRe/VyJd0+HthYKBt4mu55FGudGxIoVYR1I//Aj4QMIpD jUagark5W3/iaxYRhzHIh+NcOqAv3ydWqtJ9f4koCD7+mn/R+iwoiu1K0z6St4DCwZko 5B/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bkQvpRbk; 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 n3si13084481pff.351.2022.01.24.14.55.55; Mon, 24 Jan 2022 14:56:07 -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=bkQvpRbk; 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 S1840012AbiAXWwZ (ORCPT + 99 others); Mon, 24 Jan 2022 17:52:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1458067AbiAXVmo (ORCPT ); Mon, 24 Jan 2022 16:42:44 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A14BAC0419D6; Mon, 24 Jan 2022 12:30:12 -0800 (PST) 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 4C683B811F9; Mon, 24 Jan 2022 20:30:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78F1BC340E5; Mon, 24 Jan 2022 20:30:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643056209; bh=FaB0y9HIYPaqAi9q7owR1nZqkiO+ArzL+57wSpMcVoE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bkQvpRbkcpPgH1fbQgJ4J09iIbgDbZQ3SE/qzB4gMiiStpAwtDViq9R+XlUneT9jJ vzBG6PtZwd6kCtFmdwgE4QjBWE5zv7dBK+VtAiTVdurJiA13yB+nOJm9x/80BFD05/ /3bA425sSLA3LzDMU1DjV9H+ZYOCEp+ZKKPomY3w= 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.15 408/846] powerpc/powermac: Add additional missing lockdep_register_key() Date: Mon, 24 Jan 2022 19:38:45 +0100 Message-Id: <20220124184115.038576142@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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