Received: by 10.213.65.68 with SMTP id h4csp155839imn; Tue, 3 Apr 2018 17:45:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+HwfdcmwJxH0TkBxEQ/2FnxUa01eg+22rmoiAzwePWdifx/dA/T702shlihFRp0rYy5aIe X-Received: by 10.98.245.156 with SMTP id b28mr11955323pfm.90.1522802729802; Tue, 03 Apr 2018 17:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522802729; cv=none; d=google.com; s=arc-20160816; b=TmfXeiseOKTsGjQMh/cHrSEeQ/X+SZQahbrV2wFM0anoHlJ8UXVLSKk5N+TRUDDum2 8+ZVf55CxTRu6YzWtLIjEj7sruAHnTNj2PdJE3giiAbg7Q1v2WrS9MDE4GNTB5+eNNQK Cn2rpAZoPX5hUg7jNtEmYFEvCO3W1NumrtGZdNzytZUZsD9QaU7vK/ogIyVeVC5mJO3b s7Eb8ZamYujLcTnOdD9Tlx+4gv7swAy3qd6zebxTkITtEVkEu9VmmDG5dmAAcpU+bBNT 1cFDkKxOGK55Xtcls+1+FRe3LkHFXKhHWR6Y69X1aPF4Mfm/2QPBbxJwudEh4fMT+34v ZUug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=tjkz03xEnhM1e8OqYIo+/rFe0wwOLa8aCuJq+XbWTcU=; b=YW0PCFAsVxdvYiDtXoy3oOtU8CduunQuMD6IJRPAxThvwI96YZt506i2/ArPvZcHWU 53rVqoemaxvEkGhHlseCkSCgLhThzTnifobv/XwfSPuBx2zk6aTcUY2j/W27Z2ZYZX+I yL7pPSqDs9dEL/3RouU6/uIEpHoWVMcujbUF5ykZH3mIUPbQ6NCI58wWiGDKL4EQ3d4y EZed8dOhmtTw8XW5dhTlZjuE1mJk5rZVDBT1iz+csqU1i26yHeF7sDFnAcZ6+U5RWL1f a3cyyLnKN+KVezDXDLrByehtmEim0gbhkELpecsnnG7ZE2U8+Efwlhe7VsSqEd+Jk6Qr 7rlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r8si1169277pgq.593.2018.04.03.17.45.15; Tue, 03 Apr 2018 17:45:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754254AbeDDAmc (ORCPT + 99 others); Tue, 3 Apr 2018 20:42:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43956 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754160AbeDDAmX (ORCPT ); Tue, 3 Apr 2018 20:42:23 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3AC4419CB90; Wed, 4 Apr 2018 00:42:23 +0000 (UTC) Received: from fidelio.ahs3.com (ovpn-116-126.phx2.redhat.com [10.3.116.126]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9DB6682706; Wed, 4 Apr 2018 00:42:22 +0000 (UTC) From: Al Stone To: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Al Stone , "Rafael J . Wysocki" , Len Brown Subject: [PATCH 1/3] ACPI: improve function documentation for acpi_parse_entries_array() Date: Tue, 3 Apr 2018 18:42:09 -0600 Message-Id: <20180404004211.6141-2-ahs3@redhat.com> In-Reply-To: <20180404004211.6141-1-ahs3@redhat.com> References: <20180404004211.6141-1-ahs3@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Wed, 04 Apr 2018 00:42:23 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I found the description of the table_size argument to the function acpi_parse_entries_array() unclear and ambiguous. This is a minor documentation change to improve that description so I don't misuse the argument again in the future, and it is hopefully clearer to other future users. Signed-off-by: Al Stone Cc: Rafael J. Wysocki Cc: Len Brown --- drivers/acpi/tables.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c index 6c5ee7e66842..b6ac8162a2c0 100644 --- a/drivers/acpi/tables.c +++ b/drivers/acpi/tables.c @@ -222,7 +222,9 @@ void acpi_table_print_madt_entry(struct acpi_subtable_header *header) * acpi_parse_entries_array - for each proc_num find a suitable subtable * * @id: table id (for debugging purposes) - * @table_size: single entry size + * @table_size: size of the root table; i.e., the offset from the very + * first byte of the complete ACPI table, to the first byte + * of the first subtable * @table_header: where does the table start? * @proc: array of acpi_subtable_proc struct containing entry id * and associated handler with it @@ -400,7 +402,7 @@ int __init acpi_table_parse(char *id, acpi_tbl_table_handler handler) return -ENODEV; } -/* +/* * The BIOS is supposed to supply a single APIC/MADT, * but some report two. Provide a knob to use either. * (don't you wish instance 0 and 1 were not the same?) -- 2.14.3