From patchwork Mon Jul 10 17:20:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rafael J. Wysocki" X-Patchwork-Id: 118007 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp5213905vqx; Mon, 10 Jul 2023 11:34:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlGu8/feDE4FdxhGXrRgiPXD17qpN+PySvDqaLx2+lkXe0oftYLmGH8etJ4prICLhDwYfFn9 X-Received: by 2002:a2e:8913:0:b0:2b1:e807:f0f with SMTP id d19-20020a2e8913000000b002b1e8070f0fmr10463882lji.28.1689014051127; Mon, 10 Jul 2023 11:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689014051; cv=none; d=google.com; s=arc-20160816; b=f6Sqnxo4oZnBsXOFd5EGQStEs29d2xND/YUfWDifW05/7mNCbZZ8sKll6ItK9U10X4 NQU7HlXnRUk9sy0AByK6V+iP835+uecXD1H7te9KPK9QvffA8NZo9pvQLwosDRqXIiuR dbFOZOfHOH2quWS0anHnHZInAwNuntgtmJj/xkep+2GEP5HN1c/8B37MxHb8sAAyWpBs QIwR75sAJwYaE+KLXmnyYCp3R7ufEGYkItxrvtXHp9K7V0LINSH5o2hrn8+YiqpZWMUt YrFeAzgd//p4NCzr4ARsz+6M6UD3PvoNO0Yjdy84ZXzaMdXbaGVIDZPtp0qVem1m8n3N xOaw== 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=O+ScQnK/sV9xPpYl/dJJpPRPIfO8yPkFvQkP03EWdzk=; fh=odud58AEZ8dpT9wVpEi49z2KFyKsW9gCOcsWyWRzkG0=; b=nyKH/MXloDudh0/AFM8mkDVeATMVWK5czhWPbCJfmYlqvlejFu9D7gIhRuSEUF+iR/ TGfSXj9Oj4TdPfzXmaFKaP9xZJ/xKIsxjvuFwBOU0rBJ8DlqWDyxSrjzjs0VhiUbWAxr joOmsS2BcXR7HyS1MGp1M70DPZKvx8VF8w8Avt3Y0siKQ59ouwvFjnaBXtDAmqHKhNr0 SYz1kv03GKh+gr+GjTeT47u9PmZcIjttfmMlEU7knPKXPFhN2D6cnX9COVB3H9Ww1Ts/ izwC2kPpTLdvRAx4ThXzOvjQ7O2i93+9gkw+wQ00by++G/HOBtbt/NU+u9UF6n8fi8eI fkww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v10-20020a170906338a00b00992bd970d9csi150022eja.429.2023.07.10.11.33.47; Mon, 10 Jul 2023 11:34:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232947AbjGJRXr (ORCPT + 99 others); Mon, 10 Jul 2023 13:23:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232429AbjGJRXh (ORCPT ); Mon, 10 Jul 2023 13:23:37 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD4C2C7; Mon, 10 Jul 2023 10:23:36 -0700 (PDT) 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.2.0) id d7984a7ab631e1fc; Mon, 10 Jul 2023 19:23:35 +0200 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 v370.home.net.pl (Postfix) with ESMTPSA id C8903660DCF; Mon, 10 Jul 2023 19:23:34 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Bob Moore , Saket Dumbre Subject: [PATCH 10/14] ACPICA: Add a define for size of struct acpi_srat_generic_affinity device_handle Date: Mon, 10 Jul 2023 19:20:14 +0200 Message-ID: <9141577.CDJkKcVGEf@kreacher> In-Reply-To: <5698695.DvuYhMxLoT@kreacher> References: <5698695.DvuYhMxLoT@kreacher> MIME-Version: 1.0 X-CLIENT-IP: 195.136.19.94 X-CLIENT-HOSTNAME: 195.136.19.94 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedviedrvdekgddutdefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepledtieekkeekveeikeetgffgteeuteefjeevjeegudelvdduheeiuedvieehieevnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepudelhedrudefiedrudelrdelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduleehrddufeeirdduledrleegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeegpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheprhhosggvrhhtrdhmohhorhgvsehinhhtvghlrdgtohhmpdhrtghpthhtohepshgrkhgvthdrughumhgsrhgv sehinhhtvghlrdgtohhm X-DCC--Metrics: v370.home.net.pl 1024; Body=4 Fuz1=4 Fuz2=4 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771059597594172433 X-GMAIL-MSGID: 1771059597594172433 From: Dave Jiang ACPICA commit be56820b03d8aeabfa6709c4d99bf1711afe7ef1 Replace magic number with a define. Linux kernel code will utilize this define. Link: https://github.com/acpica/acpica/commit/be56820b Signed-off-by: Dave Jiang Signed-off-by: Bob Moore Signed-off-by: Rafael J. Wysocki --- include/acpi/actbl3.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/acpi/actbl3.h b/include/acpi/actbl3.h index 000764ab3985..c080d579a546 100644 --- a/include/acpi/actbl3.h +++ b/include/acpi/actbl3.h @@ -279,12 +279,14 @@ struct acpi_srat_gic_its_affinity { * 6: ACPI_SRAT_TYPE_GENERIC_PORT_AFFINITY */ +#define ACPI_SRAT_DEVICE_HANDLE_SIZE 16 + struct acpi_srat_generic_affinity { struct acpi_subtable_header header; u8 reserved; u8 device_handle_type; u32 proximity_domain; - u8 device_handle[16]; + u8 device_handle[ACPI_SRAT_DEVICE_HANDLE_SIZE]; u32 flags; u32 reserved1; };