Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2576276rdb; Fri, 8 Dec 2023 12:08:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IEtn6WxtaEb6pB6LbvquzOI9rj0vAegiZ9yoSkg4mADPAwGQLoiBirxvEw04IPnstzBk+21 X-Received: by 2002:a05:6a20:3ba3:b0:187:78ef:e3f1 with SMTP id b35-20020a056a203ba300b0018778efe3f1mr604904pzh.20.1702066081138; Fri, 08 Dec 2023 12:08:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702066081; cv=none; d=google.com; s=arc-20160816; b=o4FS66IMHZo8hbn+uLdLzA5iCaIDpCl6h+CCgr+Vhdku6DsU6qMIpqVomOhOlJlIlV 7Fkwq0orU3DJSCqoFz+x0szdJVBNX61pU4I26xKbzJj0O0J+awe54AUONMdWES6h2rdN OSQXmJod7qsJ3nMyQEunxmqYZ/ATPNzo02FS2xO5+MV3juXBBvOJvLSrSL6S5p58T43I a4TqictowVYRydWnb/WoBu1CJPKPG753Rjzmed2vFcKIq0Ibm/hXMKg61+tspP5hehs8 SYvv7kUXvb8/LedMZ3Zb5dEp3j+lI37HpXZbFkcGocdMc001S2dDr1pUAR3mbARAEN0E JFYQ== 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 Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id j64-20020a638b43000000b005bd11902100si1979956pge.840.2023.12.08.12.08.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 12:08:01 -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 A6FB180564BC; 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 + 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 ); 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" To: Linux ACPI Cc: LKML , Hans de Goede , Andy Shevchenko , Mika Westerberg 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: 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) From: Rafael J. Wysocki 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 --- 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);