From patchwork Mon Aug 14 13:56:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 135474 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp2789364vqi; Mon, 14 Aug 2023 07:41:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHselLxLKCA85bblDAxPBe5sNDgwFqKkYYaIzUXzfBAUQvRmdPXpmSzwIGez4m9N0m6CFLr X-Received: by 2002:a05:6300:8084:b0:135:7975:f55 with SMTP id ap4-20020a056300808400b0013579750f55mr10178370pzc.47.1692024071867; Mon, 14 Aug 2023 07:41:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692024071; cv=none; d=google.com; s=arc-20160816; b=yRM1By4jVLd38x2GIVedHxliFoDQ4IP+5rcY0uyrHCUr7zgFBlqfjXqcrY1dwlgGW7 CTc0ToxgLk7nyRe3OXM7tZFSYgnOAHWkGFAv8UmrWNHpNQ7PWGhLdHI+tSaS3503FaOu BGb1x2ah2q0aVYn4Jza1dwqzSmDW6oq8L2/rITsJYiCFW8BMuQnhJM6S2pi5an4DJASJ pXBOeCUTF4EjxyETSNXr/Z78YQvxIzjiNS/8qUpgnw/2jCuCtYkHCbwB1f9U3Usak3Q+ oWnkOUgK6EZpXy7iQJOrUytXKJh+hjsyCxf5S0gTQwHimU+W6I2CyQ4rkTKMbfIyuAwl VBYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=iY32dTZe0XMz2p0kG/ysCYnB7o3hxM6Bl5tE08ByRUo=; fh=dlnxSxctucgB+uX4gVosKqrUjWte5tiwX1FHQNyr+4k=; b=RG/pIiKeymptCiaA7xwi4b3ivrhQm2YUKFVZdZSzCRx/M4piUsTQEpFDekmoTsDX1t Qj6TUeqwvsNbjuARQ5w8iMKi8syzEgxUyR33ZRMO0bK+5VSL9wNuGUawbG9/m1PZCK6b +7ae8Z83MShq7aW4mpzpcygQY4GWdEEbY2sEzHDzmGLj88mQhtRH0IJVP2CmTffNptVf BBCzTf/sfWN8VhcOL/hvveAJG9MLrkHz4cM1tAsjAB7t90vtsy8AGOqgr7bF+pknJRol /42Krb5s3+4Oui8oTEp2xTXKfJoF6soE/debOjaQK4nMXpOKRjbuDivmT8571AuY+urL 6+AA== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bu11-20020a056a00410b00b00677eac1cd9dsi7936327pfb.329.2023.08.14.07.40.57; Mon, 14 Aug 2023 07:41:11 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231673AbjHNN4x (ORCPT + 99 others); Mon, 14 Aug 2023 09:56:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231707AbjHNN43 (ORCPT ); Mon, 14 Aug 2023 09:56:29 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43A5810F0; Mon, 14 Aug 2023 06:56:27 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4RPbVQ0btrzTmrQ; Mon, 14 Aug 2023 21:54:22 +0800 (CST) Received: from localhost (10.174.179.215) by canpemm500007.china.huawei.com (7.192.104.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Mon, 14 Aug 2023 21:56:24 +0800 From: Yue Haibing To: , , , CC: , , , Subject: [PATCH -next] ACPI: Remove unused declarations Date: Mon, 14 Aug 2023 21:56:23 +0800 Message-ID: <20230814135623.23084-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774215833397912470 X-GMAIL-MSGID: 1774215833397912470 acpi_create_dir()/acpi_remove_dir() are never implemented since the beginning of git history. Commit f8d31489629c ("ACPICA: Debugger: Convert some mechanisms to OSPM specific") declared but never implemented acpi_run_debugger(). Commit 781d737c7466 ("ACPI: Drop power resources driver") removed acpi_power_init() but not its declaration. Signed-off-by: Yue Haibing --- drivers/acpi/internal.h | 1 - include/acpi/acpi_bus.h | 2 -- include/acpi/acpixf.h | 2 -- 3 files changed, 5 deletions(-) diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h index 5f5c3a159872..866c7c4ed233 100644 --- a/drivers/acpi/internal.h +++ b/drivers/acpi/internal.h @@ -123,7 +123,6 @@ int __acpi_device_uevent_modalias(const struct acpi_device *adev, /* -------------------------------------------------------------------------- Power Resource -------------------------------------------------------------------------- */ -int acpi_power_init(void); void acpi_power_resources_list_free(struct list_head *list); int acpi_extract_power_resources(union acpi_object *package, unsigned int start, struct list_head *list); diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 23fbe4a16972..18203ee9096d 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h @@ -569,8 +569,6 @@ int acpi_match_device_ids(struct acpi_device *device, const struct acpi_device_id *ids); void acpi_set_modalias(struct acpi_device *adev, const char *default_id, char *modalias, size_t len); -int acpi_create_dir(struct acpi_device *); -void acpi_remove_dir(struct acpi_device *); static inline bool acpi_device_enumerated(struct acpi_device *adev) { diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index 0c1b69ad95d0..3d90716f9522 100644 --- a/include/acpi/acpixf.h +++ b/include/acpi/acpixf.h @@ -970,8 +970,6 @@ ACPI_EXTERNAL_RETURN_STATUS(acpi_status void **data, void (*callback)(void *))) -void acpi_run_debugger(char *batch_buffer); - void acpi_set_debugger_thread_id(acpi_thread_id thread_id); #endif /* __ACXFACE_H__ */