Message ID | 2177555.irdbgypaU6@kreacher |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp5692132vqy; Fri, 8 Dec 2023 12:08:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IHpisbsKaJnU53CLfHOqRj3HeZdJr5EOxiSRkAaW21yh6wgKFwz69YzAYAtNWLvrMX58dZm X-Received: by 2002:a17:902:ec84:b0:1cf:ffd7:7425 with SMTP id x4-20020a170902ec8400b001cfffd77425mr729141plg.41.1702066079950; Fri, 08 Dec 2023 12:07:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702066079; cv=none; d=google.com; s=arc-20160816; b=ihVKeW+x8aO+orslgC7HaOAmsFsA8GSocFaD1m+Zr1P66BfLkft9Gi9PWDsBCDHac5 xH0OwbxDbgq2i0zPuNAbEaZl6LhPPnimVUK2AnA2XOrxxUCDfN0v8BujxyVvEfBGg0qo mhwG8iGUgMtr7ses8VuowNFI7O9n7N61Pf5accxUdF43IAC73fyya0e6sJCRYbcA/Bom DJ01kQ3aQVlGzzSsyXRX6N2hvuxuo6zESBQ2sfoUXBnn7ArtnQoUvxcLIyskJQCQyHG6 60Kzriubb/9d1TbouXWLZ2vE1DoQthS5IJIcowz2K9g59k2PNrGh6/2xinslcCezuVO0 2HMQ== 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=cIz5CF4z/D9xgKUH2Hzmn7Mnos3WDUTIgSByqiZs4Go=; fh=arJSG3Xz207w2wMVOOEdKWDKnFh7anVx1NoYPUQafKc=; b=qOkdM6cZcdHplaynB5xkdw1kl9hGozLEP1GwLnC6491x0de5i0+nnWQtZhnRFVYmte SZSLF795mlm2raTzIHmYmU0F0ne7G+dpt31MaKaTOcYREia5sOMoydODkJ1Mku0lakCf buyF3R5CLqrhVh7cCz3gtx2yTT+mMwL7OslYITtY/TSdE2VL9vC9Vt6gmq00uXvuzodi e3z3WdNIdeSdRs9YrvVAnn+ESXGjP8D4JUzAcPCJDc9qm4p3cx8l78CxL+sEEdnLU2Tc 3QE8Wy9fOC8BQZAMAdMpwAUs3j4NHevb5TJYjT6kUGGJQdwkHh5l3QgbMbiECvy9loh/ U70Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id d1-20020a170902aa8100b001d0afa2f5ddsi1979070plr.621.2023.12.08.12.07.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 12:07:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0B21A8061165; Fri, 8 Dec 2023 12:07:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234122AbjLHUHr (ORCPT <rfc822;makky5685@gmail.com> + 99 others); Fri, 8 Dec 2023 15:07:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233890AbjLHUHp (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 8 Dec 2023 15:07:45 -0500 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B2BD11D; Fri, 8 Dec 2023 12:07:51 -0800 (PST) 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.4.0) id 55d8c26a1fa2925c; Fri, 8 Dec 2023 21:07:50 +0100 Received: from kreacher.localnet (unknown [195.136.19.94]) (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 cloudserver094114.home.pl (Postfix) with ESMTPSA id 958CF6688FF; Fri, 8 Dec 2023 21:07:49 +0100 (CET) From: "Rafael J. Wysocki" <rjw@rjwysocki.net> To: Linux ACPI <linux-acpi@vger.kernel.org> Cc: LKML <linux-kernel@vger.kernel.org>, Hans de Goede <hdegoede@redhat.com>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Mika Westerberg <mika.westerberg@linux.intel.com> Subject: [PATCH v1 3/4] ACPI: utils: Refine acpi_handle_list_equal() slightly Date: Fri, 08 Dec 2023 21:06:45 +0100 Message-ID: <2177555.irdbgypaU6@kreacher> In-Reply-To: <6008018.lOV4Wx5bFT@kreacher> References: <6008018.lOV4Wx5bFT@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 195.136.19.94 X-CLIENT-HOSTNAME: 195.136.19.94 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvkedrudekiedgudefgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfjqffogffrnfdpggftiffpkfenuceurghilhhouhhtmecuudehtdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefufffkjghfggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpedvffeuiedtgfdvtddugeeujedtffetteegfeekffdvfedttddtuefhgeefvdejhfenucfkphepudelhedrudefiedrudelrdelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduleehrddufeeirdduledrleegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeehpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohephhguvghgohgvuggvsehrvgguhhgrthdrtghomhdprhgtphhtthhopegrnhgurhhihidrshhhvghvtghhvghnkhhosehlihhnuhigrdhinhhtvghlrdgtohhm pdhrtghpthhtohepmhhikhgrrdifvghsthgvrhgsvghrgheslhhinhhugidrihhnthgvlhdrtghomh 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, RCVD_IN_DNSWL_BLOCKED,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 08 Dec 2023 12:07:59 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784745641901123177 X-GMAIL-MSGID: 1784745641901123177 |
Series |
ACPI: utils: Improvements related to struct acpi_handle_list
|
|
Commit Message
Rafael J. Wysocki
Dec. 8, 2023, 8:06 p.m. UTC
From: Rafael J. Wysocki <rafael.j.wysocki@intel.com> It is somewhat better to use the size of the first array element for computing the size of the entire array than to rely on the array element data type definition knowledge and the former is also consistent with the array allocation in acpi_evaluate_reference(), so modify the code accordingly. No intentional functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> --- drivers/acpi/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-pm/drivers/acpi/utils.c =================================================================== --- linux-pm.orig/drivers/acpi/utils.c +++ linux-pm/drivers/acpi/utils.c @@ -408,7 +408,7 @@ bool acpi_handle_list_equal(struct acpi_ { return list1->count == list2->count && !memcmp(list1->handles, list2->handles, - list1->count * sizeof(acpi_handle)); + list1->count * sizeof(*list1->handles)); } EXPORT_SYMBOL_GPL(acpi_handle_list_equal);