From patchwork Tue Jun 25 07:20:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: You-Sheng Yang X-Patchwork-Id: 1951963 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4W7bpr6BZVz20X1 for ; Tue, 25 Jun 2024 17:21:08 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1sM0U5-0007JF-G5; Tue, 25 Jun 2024 07:20:57 +0000 Received: from mail-pj1-f44.google.com ([209.85.216.44]) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1sM0U4-0007In-A7 for kernel-team@lists.ubuntu.com; Tue, 25 Jun 2024 07:20:56 +0000 Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-2c7b14bb4a5so3583977a91.0 for ; Tue, 25 Jun 2024 00:20:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719300054; x=1719904854; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4o/OEDM+ySRx9/ajoCrXwKz7g6A2cEijzKef6uTCS7U=; b=SfAElgVKH5tHpeQm0jEuMHYGRZ9B390brZ+LcvOko3n0vqSRliJSYqeeJ7dJSdyZVA DsvdFFcEjwP1jZKOa7i7oHetD7aIfWjbq8Tkr92Zmb0poVWx7LLVGqkof4AQO+q3wCGP JCbBjDAJNwX42Znn+pnbSWLUGXa0sMjMUzPRszepd56W/wLXMyruBrxH/8Q+Ibok93Ms fH5JX2J2N4rvs4RlIWbcXCeRC8dfksWKqfdMegvPweiedlGjPLnHMtKEidiI7qfXZL2o LTPQGaE7SU5o4H1h3gaAwLkQUXTvZ5A12JZRpqxHBab+o5yUN0IyrdNVeDk8wYmvNBwA kwEw== X-Gm-Message-State: AOJu0YyAuuvcPxIk3HB7aNAqD3DPFC4LJWQhbwndNhwlVSctcjPqnpVS llJcbAoZuPrbvwOyA34xnP3pFwJr+2cml4SMvGQ9M5TROc3wEof5VBV1oDck X-Google-Smtp-Source: AGHT+IGLRSKGD4HjekUBgb9YmtB36dMpVPDnE/Su2scLKDDZgq//0myz6XOjo0yxjTCD0NeEaplV1w== X-Received: by 2002:a17:90b:d85:b0:2c3:2f5a:17d4 with SMTP id 98e67ed59e1d1-2c8a232c548mr3933100a91.4.1719300054086; Tue, 25 Jun 2024 00:20:54 -0700 (PDT) Received: from localhost.localdomain (125-229-129-140.hinet-ip.hinet.net. [125.229.129.140]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c819db97f8sm7938969a91.39.2024.06.25.00.20.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jun 2024 00:20:53 -0700 (PDT) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [PATCH 1/4][SRU][Noble] ACPI: utils: Make acpi_handle_path() not static Date: Tue, 25 Jun 2024 15:20:30 +0800 Message-ID: <20240625072033.3410543-2-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240625072033.3410543-1-vicamo.yang@canonical.com> References: <20240625072033.3410543-1-vicamo.yang@canonical.com> MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.216.44; envelope-from=vicamo@gmail.com; helo=mail-pj1-f44.google.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Sakari Ailus BugLink: https://bugs.launchpad.net/bugs/2070251 acpi_handle_path() will soon be required for node name comparison elsewhere in ACPI framework. Remove the static keyword and add the prototype to include/linux/acpi.h. Signed-off-by: Sakari Ailus Signed-off-by: Rafael J. Wysocki (cherry picked from commit 1269b6d7222f761b6f5fb85b19f7ab76a5bbf803) Signed-off-by: You-Sheng Yang --- drivers/acpi/utils.c | 2 +- include/linux/acpi.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c index abac5cc25477..202234ba54bd 100644 --- a/drivers/acpi/utils.c +++ b/drivers/acpi/utils.c @@ -559,7 +559,7 @@ EXPORT_SYMBOL(acpi_evaluate_ost); * * Caller must free the returned buffer */ -static char *acpi_handle_path(acpi_handle handle) +char *acpi_handle_path(acpi_handle handle) { struct acpi_buffer buffer = { .length = ACPI_ALLOCATE_BUFFER, diff --git a/include/linux/acpi.h b/include/linux/acpi.h index b7165e52b3c6..a170c389dd74 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -1170,6 +1170,7 @@ static inline void acpi_ec_set_gpe_wake_mask(u8 action) {} #endif #ifdef CONFIG_ACPI +char *acpi_handle_path(acpi_handle handle); __printf(3, 4) void acpi_handle_printk(const char *level, acpi_handle handle, const char *fmt, ...);