Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3326236rwe; Mon, 29 Aug 2022 09:30:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR7w8bHAzFDtQoD5VWS71LEqF4FB+Lac6W7EP+9l+/pwfziG1/tkRVawDW66AiDyNBZoYHm1 X-Received: by 2002:a05:6402:b74:b0:447:d664:83f6 with SMTP id cb20-20020a0564020b7400b00447d66483f6mr13747365edb.303.1661790648210; Mon, 29 Aug 2022 09:30:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661790648; cv=none; d=google.com; s=arc-20160816; b=mNeNfP8e+1TO+dsuGeDgkPezOHzI8BLpjgZG8k0nvxVl2hbmQayXjG6oSgkkxWSdUS gNypvf6x+d+iPN3uKRo4XEHXWsj8mWA54RuUpccwc0dHsogqSeGHh+Qb9WS7KmcVpD89 FtnT7xqa83IWhLAZ1EYzHGZ+TlEpO1vQGGEvH5Je5ptxhhn+cs+T68EpCC0imLPEGSB9 s1nSPPttasDYgyO0GiumiU2Iz2A13CEUFIoj3uL6jUGHTf0tA4tdIa7MaW1BGBMv6BS/ SOmJRnjwANfz2jWuLiKCzDe2y6pvfWnmEeWikuTt6gTd2Zt1W8FI3SLTJ/rWTb3Fz7MF Ls2Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=f8xTg1u3cZfvPubyOxOgUbDKeMZXUHHzypgxKCPVpzw=; b=c8mRFbMaoJRTwy+1cIozpEke1V2fVRVNBy7CPhV9By1oAu+7L12thnXyayU5FJ8OFm szdjdZ11ebNHqhJpvEmuBzqB3suNXbayygF0LRti1b1/q0b394p6p36gZNVfkie82o/3 rLWJMc7Amsl0J5CfqYMWlGcFkJPIO/B9GMt3qqDBn/Jzz6wcG53pf9LD4jCZHG/ufb1h V9I/u7xKfrAt4y3+n2tERPOIjgtTWWP0Mn1DJ3SD1Qs9abYAWLmgR53TwXUMCmozax7G AdcIvfbyN9FzbAHEkKX4py6Jw55rkW65uSdhPUrVxOm+IyEwQYWMUjfYGO3QILoW+1SI wtZg== 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 sd14-20020a170906ce2e00b007307fa2da78si5986115ejb.450.2022.08.29.09.30.20; Mon, 29 Aug 2022 09:30:48 -0700 (PDT) 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 S230064AbiH2PxY (ORCPT + 99 others); Mon, 29 Aug 2022 11:53:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229631AbiH2PxX (ORCPT ); Mon, 29 Aug 2022 11:53:23 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18A8C9568D; Mon, 29 Aug 2022 08:53:21 -0700 (PDT) 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 5.0.0) id 9abc4cb16e062276; Mon, 29 Aug 2022 17:53:20 +0200 Received: from kreacher.localnet (public-gprs523165.centertel.pl [31.61.162.222]) (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 DECDC66D25B; Mon, 29 Aug 2022 17:53:19 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Andy Shevchenko , Linux PM , Hanjun Guo Subject: [PATCH v1] ACPI: Drop redundant acpi_dev_parent() header Date: Mon, 29 Aug 2022 17:53:19 +0200 Message-ID: <2664175.mvXUDI8C0e@kreacher> In-Reply-To: <12036348.O9o76ZdvQC@kreacher> References: <12036348.O9o76ZdvQC@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 31.61.162.222 X-CLIENT-HOSTNAME: public-gprs523165.centertel.pl X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrvdekuddgleehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepvdffueeitdfgvddtudegueejtdffteetgeefkeffvdeftddttdeuhfegfedvjefhnecukfhppeefuddriedurdduiedvrddvvddvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepfedurdeiuddrudeivddrvddvvddphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedpnhgspghrtghpthhtohephedprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopegrnhgurhhihidrshhhvghvtghhvghnkhhosehlihhnuhigrdhinhhtvghlrdgtohhmpdhrtghpthhtoheplhhinhhugidqphhmsehvghgvrhdrkhgvrhhnvghl rdhorhhgpdhrtghpthhtohepghhuohhhrghnjhhunheshhhurgifvghirdgtohhm X-DCC--Metrics: v370.home.net.pl 1024; Body=5 Fuz1=5 Fuz2=5 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rafael J. Wysocki Because acpi_dev_parent() is defined as static inline, the extra header of it in acpi_bus.h is redundant, so drop it. Fixes: 62fcb99bdf10 ("ACPI: Drop parent field from struct acpi_device") Reported-by: Hanjun Guo Signed-off-by: Rafael J. Wysocki --- linux-next material --- include/acpi/acpi_bus.h | 1 - 1 file changed, 1 deletion(-) Index: linux-pm/include/acpi/acpi_bus.h =================================================================== --- linux-pm.orig/include/acpi/acpi_bus.h +++ linux-pm/include/acpi/acpi_bus.h @@ -485,7 +485,6 @@ void acpi_initialize_hp_context(struct a /* acpi_device.dev.bus == &acpi_bus_type */ extern struct bus_type acpi_bus_type; -struct acpi_device *acpi_dev_parent(struct acpi_device *adev); int acpi_bus_for_each_dev(int (*fn)(struct device *, void *), void *data); int acpi_dev_for_each_child(struct acpi_device *adev, int (*fn)(struct acpi_device *, void *), void *data);