From nobody Mon Feb 9 20:32:10 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1576779273; cv=none; d=zohomail.com; s=zohoarc; b=kompQmXYklDX4m38WBQXJc1ovY8mUqSnZBafeoGFgtxop4/kYvDtROxg1vU2OpSMAv06Q+RLvLMP1xG4eJMc3pDh7YfpUsUT4ADUdDqodqqXSur408RlNiZjHCAalGIuKXD0FaqGpHyLEE/7boqbVyvjg7LfYoXC5sGkjFatjF0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576779273; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=sDNDh/ZW/Evq2GTlj6ORMgIfH+KAJoksc8z05rCv5KE=; b=NZ2bGmB3YyhJa76o4FfbI4e29ZkaHiz3y1gjV2tIh2KJlyWXQwfEkIfy2d3ObpHFbN3f+58ZxhY4DYsztETL4N429VNdILLMg/8rgITcJM1AQv/b/mQCe1rYIY1wEhrbimi++78kYrTPh88aBqXnPYS0y4AIukbSAkjompqvl8I= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1576779273741608.4357528348341; Thu, 19 Dec 2019 10:14:33 -0800 (PST) Received: from localhost ([::1]:46216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ii0Jk-0002IL-05 for importer@patchew.org; Thu, 19 Dec 2019 13:14:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37758) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ii0Ha-0008Pb-3y for qemu-devel@nongnu.org; Thu, 19 Dec 2019 13:12:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ii0HX-0001ml-Rx for qemu-devel@nongnu.org; Thu, 19 Dec 2019 13:12:16 -0500 Received: from 4.mo7.mail-out.ovh.net ([178.32.122.254]:42614) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ii0HX-0001dC-Ka for qemu-devel@nongnu.org; Thu, 19 Dec 2019 13:12:15 -0500 Received: from player734.ha.ovh.net (unknown [10.108.16.68]) by mo7.mail-out.ovh.net (Postfix) with ESMTP id E09A2147AA3 for ; Thu, 19 Dec 2019 19:12:13 +0100 (CET) Received: from kaod.org (lfbn-tou-1-1227-223.w90-76.abo.wanadoo.fr [90.76.50.223]) (Authenticated sender: clg@kaod.org) by player734.ha.ovh.net (Postfix) with ESMTPSA id 63298D6D6255; Thu, 19 Dec 2019 18:12:08 +0000 (UTC) From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: David Gibson Subject: [PATCH v2 01/13] ppc/pnv: Modify the powerdown notifier to get the PowerNV machine Date: Thu, 19 Dec 2019 19:11:43 +0100 Message-Id: <20191219181155.32530-2-clg@kaod.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191219181155.32530-1-clg@kaod.org> References: <20191219181155.32530-1-clg@kaod.org> MIME-Version: 1.0 X-Ovh-Tracer-Id: 13654069647169588198 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrvdduuddguddtkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhggtgfgsehtkeertdertdejnecuhfhrohhmpeevrogurhhitgcunfgvucfiohgrthgvrhcuoegtlhhgsehkrghougdrohhrgheqnecukfhppedtrddtrddtrddtpdeltddrjeeirdehtddrvddvfeenucfrrghrrghmpehmohguvgepshhmthhpqdhouhhtpdhhvghlohepphhlrgihvghrjeefgedrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpegtlhhgsehkrghougdrohhrghdprhgtphhtthhopehqvghmuhdquggvvhgvlhesnhhonhhgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 178.32.122.254 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , qemu-ppc@nongnu.org, Greg Kurz , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Use container_of() instead of qdev_get_machine() Signed-off-by: C=C3=A9dric Le Goater Reviewed-by: Greg Kurz Signed-off-by: C=C3=A9dric Le Goater --- hw/ppc/pnv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c index f77e7ca84ede..855254f28263 100644 --- a/hw/ppc/pnv.c +++ b/hw/ppc/pnv.c @@ -561,7 +561,7 @@ static void *pnv_dt_create(MachineState *machine) =20 static void pnv_powerdown_notify(Notifier *n, void *opaque) { - PnvMachineState *pnv =3D PNV_MACHINE(qdev_get_machine()); + PnvMachineState *pnv =3D container_of(n, PnvMachineState, powerdown_no= tifier); =20 if (pnv->bmc) { pnv_bmc_powerdown(pnv->bmc); --=20 2.21.0