Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1217030rdb; Wed, 6 Dec 2023 11:49:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgDae5QfVoQwb8eQP3dJNWR3zNF9yJuoF7hqMsekSjdhKDDxymNQFGsf5B8ikAHuvXdPk6 X-Received: by 2002:a05:6a20:8e28:b0:18f:97c:8a23 with SMTP id y40-20020a056a208e2800b0018f097c8a23mr1819448pzj.78.1701892197671; Wed, 06 Dec 2023 11:49:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701892197; cv=none; d=google.com; s=arc-20160816; b=KU1zbH5BGnO0nWZ645MozOuz7P8gFBwaWjsy3B65KmIGsI7OmxTFpqfKdelwnJGMVS MF/Bj4+P4mV6cPyIpDAu9m6P0uJZs0PshaOKsvbStG67XGh9H1A12E8aLNJDgCRv8S3i C5axky/Gdi14MtagSfNzTtko3o8pe1R/UcATZerfjx/Kppy9J2h/RgjZK3JlD3Cndals zZGnhRJHk1Z3cHfgXA1ju1C8rQCMwMlIkvMWwLGSD0VYfpNrQuMlMFWoWM+A0XBxF9dl gzz+tHzJNLJ1Y4/4i817MbsbFbirpgroRB/6ExF1A0aiWGoZcenwtiwrDYrvq//4lKd9 hS0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=B6UPZKbYXzQNdzAYIjCuGesvxBISoHlyp0IREnJXyI4=; fh=XyEKYyn5OuGgu7x2I8FbT6KFhnamuraxvWB02S5FWDE=; b=PQ6Y+jUyv+gcvU/GTGH81olR5+aFUTHhYSuo7PbSOwR08Pzm/G3A03AFqANBFE4r1l QLATN7WLygUxpp7t5+Tzj32erdN8hQhQNMUcLe9o9rXkIyyuFGswv8WImBtB5yk86Anm GMXJPQ+9OwAMJghSh5/bGdHJ+4zGZ8Rm0SdStVo93Ru1tJUTXFSRkWPGUHHOt+RePic2 ++Axjp5ZVWj7liNs3XWLGmlG2dGqmYTGpiZacDhY/V0HrPmLr0jh2vbWIvCaJ+NcCe2t bJMdgQz+osZs9IY1YQZr64FJlANQfZAaFHq+LeRIRjWLcb3bD7wcCvD+rP/ZZxvvOZed nYWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id s14-20020a65644e000000b005c65fe4373fsi365917pgv.315.2023.12.06.11.49.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 11:49:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id BADBC81C98D2; Wed, 6 Dec 2023 11:49:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442809AbjLFTti convert rfc822-to-8bit (ORCPT + 99 others); Wed, 6 Dec 2023 14:49:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379274AbjLFTth (ORCPT ); Wed, 6 Dec 2023 14:49:37 -0500 Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88A76FA; Wed, 6 Dec 2023 11:49:42 -0800 (PST) Received: by mail-oi1-f179.google.com with SMTP id 5614622812f47-3b9b5b254e2so31526b6e.1; Wed, 06 Dec 2023 11:49:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701892182; x=1702496982; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hp7+4/skeq3z1JjM3KigvsLSXGvrXr1gskXOMgpelSY=; b=CysehOvfQJu5YxK3jdN2InAl6O8JpAI0enLtXaC7iJjaIs1J13bs/dCoGzlqf6dtZ+ MqdFbC6K3OWPmaqptAuWlEzx7fwyHa6NkPJYdUUROQNfLNVnXo440wTDMR7KGLUkQCNF wayscpiXYsASJbSoOfdGGIUG9HrxQYu7osnW+0oF4zn/dUs1Mv4s7J81NbxUBxUy0FLf lyDgBVzdQiyKHEZLQsBxguMUaR82kf+5byieayAk6OWyGdo5DznYHEb7Biv9WAzDUaU3 7jNLjohIk0wgxMqk52hTzGg4tMXFMkxQIRfR6AdrdqosmH5aYSCN5h//k5u2WjOp8CYA 5VJg== X-Gm-Message-State: AOJu0YyIv02B5IokNNAfm7iDorOhcWOz2wYPIM23QSs7aivIvBNAhlXC XesLK39CVrhRA9BA+eyJxtk71a+YxUVs1Ahaexg= X-Received: by 2002:a05:6870:b69a:b0:1fb:9b:3d4c with SMTP id cy26-20020a056870b69a00b001fb009b3d4cmr2791355oab.0.1701892181729; Wed, 06 Dec 2023 11:49:41 -0800 (PST) MIME-Version: 1.0 References: <20231127055858.41004-1-ytcoode@gmail.com> In-Reply-To: <20231127055858.41004-1-ytcoode@gmail.com> From: "Rafael J. Wysocki" Date: Wed, 6 Dec 2023 20:49:30 +0100 Message-ID: Subject: Re: [PATCH] ACPICA: Remove unused struct field and incorrect comments To: Yuntao Wang Cc: Robert Moore , "Rafael J. Wysocki" , Len Brown , linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 06 Dec 2023 11:49:54 -0800 (PST) On Mon, Nov 27, 2023 at 6:59 AM Yuntao Wang wrote: > > The return_object_type field in `struct acpi_evaluate_info` is unused, > so remove it. > > There are also some issues in the comments of acpi_ps_execute_method(). > First, the parameter_type field has already been removed from > `struct acpi_evaluate_info`, so the corresponding field description in > the comments should also be removed. Second, the return_object field > description in the comments is duplicated. Remove these incorrect comments. > > Signed-off-by: Yuntao Wang > --- > drivers/acpi/acpica/acstruct.h | 1 - > drivers/acpi/acpica/psxface.c | 3 --- > 2 files changed, 4 deletions(-) This is ACPICA code which comes from a separate project. The way to change it is to submit a pull request with the desired change to the upstream ACPICA project on GitHub and add a Link tag pointing to the upstream PR to the corresponding Linux patch. Then, the Linux patch can only be applied after the corresponding upstream PR has been merged. Thanks! > diff --git a/drivers/acpi/acpica/acstruct.h b/drivers/acpi/acpica/acstruct.h > index f8fee94ba708..fe57c3a16e59 100644 > --- a/drivers/acpi/acpica/acstruct.h > +++ b/drivers/acpi/acpica/acstruct.h > @@ -169,7 +169,6 @@ struct acpi_evaluate_info { > u16 param_count; /* Count of the input argument list */ > u16 node_flags; /* Same as Node->Flags */ > u8 pass_number; /* Parser pass number */ > - u8 return_object_type; /* Object type of the returned object */ > u8 flags; /* General flags */ > }; > > diff --git a/drivers/acpi/acpica/psxface.c b/drivers/acpi/acpica/psxface.c > index 6f4eace0ba69..df5679bbc510 100644 > --- a/drivers/acpi/acpica/psxface.c > +++ b/drivers/acpi/acpica/psxface.c > @@ -70,9 +70,6 @@ acpi_debug_trace(const char *name, u32 debug_level, u32 debug_layer, u32 flags) > * NULL if no parameters are being passed. > * return_object - Where to put method's return value (if > * any). If NULL, no value is returned. > - * parameter_type - Type of Parameter list > - * return_object - Where to put method's return value (if > - * any). If NULL, no value is returned. > * pass_number - Parse or execute pass > * > * RETURN: Status > -- > 2.43.0 > >