Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1287358pxb; Wed, 2 Feb 2022 01:06:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyEKMTAvsgvIXFU0jdQtanjmDO3b4+PDOLIhKkk2orZ7ViO/kI5tQ9vCdnroaWHG63fiYVc X-Received: by 2002:a17:906:2dd1:: with SMTP id h17mr23962014eji.113.1643792784896; Wed, 02 Feb 2022 01:06:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643792784; cv=none; d=google.com; s=arc-20160816; b=ZzoV0nBDxThFm1DXd9/uXAz7F52cc/WXAXJvHsSfge8n+TvkUQLxJQABNjC3XAVpWw EwN4lB8r8vFIJ9v8TE+CNVHfCJafdbCq3nrj3gXLbe8B70uhhiPmOdoLQadHBgn3rxXe fnJQpXW1DxDJdZEY1kURsTgPPMZtiwoj01WNeXwQzIZlNPswFU7VLaxknKIn7TxloLD1 JIx2V5YQLvdpKIA+xA3kViv1pRFv2eMV+xPPjHmYE+wTEw8iyadMtGudPOCriF/tNPUf u8hg2n8W7rcu4VhgE803IxllKZpYywBXMbF5WWC7oFvgpaeXF6jlkJAATcrV0Xa0uqio b9Ww== 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 :message-id:date:subject:cc:to:from; bh=L8Go+dWfALEPPsCuiSw89hH3J6PHYFAbyUMDskLGP+Y=; b=Au6JLuaadmxaPVYIYESgdm8K7KKpJwRlZ+X5IGpCEELDXJTSHXtQ3haqcVoQeSBR1E AyIAAD26ebe8XATZeHjfKNwimSILRKAqWYuQhicwlBHRkQBwxdcJlcDkx2Hzp9Z6UFov Ebsdmhu+dNya74kVV06za4/aMTYJNEfJ7/sogWylrLRcd1wylvDomNoCnBb3lYZSM85I Mtsjca8r/CPP2CSXxQsB+s97iX64iRxmVXgooYUBke71CyWQnrjJlfVjlI8J+Ke24dI5 1Dj+xTTvysfi07OSkCeXo3NJ74UKoqpMG7nAHznQCHQZjfjPXc7vMUNzoTYtNeaIdTzG CyvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q10si10815604edb.267.2022.02.02.01.05.58; Wed, 02 Feb 2022 01:06:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241858AbiBASNn (ORCPT + 99 others); Tue, 1 Feb 2022 13:13:43 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:62358 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232360AbiBASLm (ORCPT ); Tue, 1 Feb 2022 13:11:42 -0500 Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 4.0.0) id 67adb7ded8a5fe1d; Tue, 1 Feb 2022 19:11:41 +0100 Received: from kreacher.localnet (unknown [213.134.162.64]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id CD86966B390; Tue, 1 Feb 2022 19:11:40 +0100 (CET) From: "Rafael J. Wysocki" To: David Woodhouse , Lu Baolu Cc: LKML , Linux ACPI , Joerg Roedel , Will Deacon , iommu@lists.linux-foundation.org Subject: [PATCH] IOMMU: Intel: DMAR: Replace acpi_bus_get_device() Date: Tue, 01 Feb 2022 19:11:40 +0100 Message-ID: <1807113.tdWV9SEqCh@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 213.134.162.64 X-CLIENT-HOSTNAME: 213.134.162.64 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrgeefgddutdelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpefhgedtffejheekgeeljeevvedtuefgffeiieejuddutdekgfejvdehueejjeetvdenucfkphepvddufedrudefgedrudeivddrieegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddufedrudefgedrudeivddrieegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeejpdhrtghpthhtohepugifmhifvdesihhnfhhrrgguvggrugdrohhrghdprhgtphhtthhopegsrgholhhurdhluheslhhinhhugidrihhnthgvlhdrtghomhdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehjohhr oheskegshihtvghsrdhorhhgpdhrtghpthhtohepfihilhhlsehkvghrnhgvlhdrohhrghdprhgtphhtthhopehiohhmmhhusehlihhsthhsrdhlihhnuhigqdhfohhunhgurghtihhonhdrohhrgh X-DCC--Metrics: v370.home.net.pl 1024; Body=7 Fuz1=7 Fuz2=7 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rafael J. Wysocki Replace acpi_bus_get_device() that is going to be dropped with acpi_fetch_acpi_dev(). No intentional functional impact. Signed-off-by: Rafael J. Wysocki --- drivers/iommu/intel/dmar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Index: linux-pm/drivers/iommu/intel/dmar.c =================================================================== --- linux-pm.orig/drivers/iommu/intel/dmar.c +++ linux-pm/drivers/iommu/intel/dmar.c @@ -789,7 +789,8 @@ static int __init dmar_acpi_dev_scope_in andd->device_name); continue; } - if (acpi_bus_get_device(h, &adev)) { + adev = acpi_fetch_acpi_dev(h); + if (!adev) { pr_err("Failed to get device for ACPI object %s\n", andd->device_name); continue;