Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp757666pxj; Wed, 16 Jun 2021 12:54:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUwhiyK9j+T6PD1+0MMMHNbHzEiQsJHOgYw96MczbRB2tQC6vRPlNyujqyBtpZ1tat3s9L X-Received: by 2002:a92:b30b:: with SMTP id p11mr855637ilh.114.1623873275102; Wed, 16 Jun 2021 12:54:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623873275; cv=none; d=google.com; s=arc-20160816; b=u+dYvAtPVZPle5KHiz8ia4YN/yr0fJHllytFW1zcENWEGCJB/sK8gV/GwcGopWqf/S Gie5xs6aVtNpyRLTj/XSuUjphcoT2F/IbZLgwL9FzNPdRMDDg5ejPD6aezQASpZYz13I b7MXhVk0TlXK9oa9bsEvOIYD/jtG+yPmU6FqYene2Y1tjO3iVVaJB/C+kV7oPVCLXZYM 06uI7d1VqmKZPffeV65Wy1toWWiVrZL2yrAf1MWWMk3obXJ98I6Ik1GYjXw63HGnVpAJ qllXaiAxxrBoB/LFvXqzBS7X7yV23EIa37YgoUE/tXrYjENB36b6ofBkiidZ90DfFTKO jy9w== 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=fhh2Y2B4vAAXNCTmC2Kx/LEefdVfyg1316YzgGzyzJQ=; b=lgA8/gShDUSIeHMwMbwWu5O6/ppyqpzNF2eakMp09gDk21uxVbgnStIwuTzDluBren PLo0dBg0ayDfRaIVjvfBsmoJpUv2jlbqeLLqmvQdWZ+drHhhlr9ipZ7labgAUyy5G5Sp dkIQoFoksnzlB0dhB256epl0fiUazE6L2xfFgC9wtb1htWNy7Bdiye/t+vuAxPHd7DgH aXfhkauVi2y0yLFtiV82wT9k3GCio+FCJSA8PZrAV5eQv+5gUb9CCjc6lYU28EjYxc+S vNiUay0ofR+juppRsUv7hmdqEf9uyOsu/rCPjaFRs5uzEPpyI3uSKVBz3s8U/p/nV5VT ta4w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q3si3802713jac.31.2021.06.16.12.54.22; Wed, 16 Jun 2021 12:54:35 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233788AbhFPOJC (ORCPT + 99 others); Wed, 16 Jun 2021 10:09:02 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:54868 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233720AbhFPOJB (ORCPT ); Wed, 16 Jun 2021 10:09:01 -0400 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 2.1.0) id a9b1bf71cf3ae2d8; Wed, 16 Jun 2021 16:06:53 +0200 Received: from kreacher.localnet (89-64-81-4.dynamic.chello.pl [89.64.81.4]) (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 0060B66993E; Wed, 16 Jun 2021 16:06:52 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Andy Shevchenko Subject: [PATCH] ACPI: scan: Define acpi_bus_put_acpi_device() as static inline Date: Wed, 16 Jun 2021 16:06:52 +0200 Message-ID: <2086739.irdbgypaU6@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 89.64.81.4 X-CLIENT-HOSTNAME: 89-64-81-4.dynamic.chello.pl X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduledrfedvledgjeegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpefhgedtffejheekgeeljeevvedtuefgffeiieejuddutdekgfejvdehueejjeetvdenucfkphepkeelrdeigedrkedurdegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepkeelrdeigedrkedurdegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheprghnughrihihrdhshhgvvhgthhgvnhhkoheslhhinhhugidrihhnthgvlhdrtghomh X-DCC--Metrics: v370.home.net.pl 1024; Body=3 Fuz1=3 Fuz2=3 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rafael J. Wysocki Since acpi_bus_put_acpi_device() is a synonym for acpi_dev_put(), define it as static inline in analogy with the latter. No functional impact. Signed-off-by: Rafael J. Wysocki --- drivers/acpi/scan.c | 5 ----- include/acpi/acpi_bus.h | 9 +++++++-- 2 files changed, 7 insertions(+), 7 deletions(-) Index: linux-pm/drivers/acpi/scan.c =================================================================== --- linux-pm.orig/drivers/acpi/scan.c +++ linux-pm/drivers/acpi/scan.c @@ -608,11 +608,6 @@ struct acpi_device *acpi_bus_get_acpi_de return handle_to_device(handle, get_acpi_device); } -void acpi_bus_put_acpi_device(struct acpi_device *adev) -{ - acpi_dev_put(adev); -} - static struct acpi_device_bus_id *acpi_device_bus_id_match(const char *dev_id) { struct acpi_device_bus_id *acpi_device_bus_id; Index: linux-pm/include/acpi/acpi_bus.h =================================================================== --- linux-pm.orig/include/acpi/acpi_bus.h +++ linux-pm/include/acpi/acpi_bus.h @@ -504,8 +504,6 @@ extern int unregister_acpi_notifier(stru */ int acpi_bus_get_device(acpi_handle handle, struct acpi_device **device); -struct acpi_device *acpi_bus_get_acpi_device(acpi_handle handle); -void acpi_bus_put_acpi_device(struct acpi_device *adev); acpi_status acpi_bus_get_status_handle(acpi_handle handle, unsigned long long *sta); int acpi_bus_get_status(struct acpi_device *device); @@ -726,6 +724,13 @@ static inline void acpi_dev_put(struct a { put_device(&adev->dev); } + +struct acpi_device *acpi_bus_get_acpi_device(acpi_handle handle); + +static inline void acpi_bus_put_acpi_device(struct acpi_device *adev) +{ + acpi_dev_put(adev); +} #else /* CONFIG_ACPI */ static inline int register_acpi_bus_type(void *bus) { return 0; }