Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1688639rdb; Sat, 3 Feb 2024 18:48:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8zuoUScqT4vpsh5bhTTInovHXuKr3LvbhaHfCQpL93Z1XapAHtjYX8LuVeDby/gXY78Kj X-Received: by 2002:a05:620a:1341:b0:783:c889:9887 with SMTP id c1-20020a05620a134100b00783c8899887mr9971125qkl.18.1707014892982; Sat, 03 Feb 2024 18:48:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707014892; cv=pass; d=google.com; s=arc-20160816; b=uORt/6mArZSd8kNVYOmIH0mnWGcHuM8PtJnrZuOmRRWmSntNf8a0yK+EpIJMzOJFsn Y1R0yifkyuf5F+ASzbXXFu4PyacYPuMkmtkA+vv/BuVOskWT77Q0iamrHOJ2qNPgQ4T3 d7htzooAqs9iwNIFMO3BTfC777QUZ+O2uHaAFb5w82C7Rotc0KTChgBd60WnY7GhB83J hZXq9sIArT5bPNbghryunElj+Yb0VOWh9P5ap7lQR5t1bX83245PLfei0UhhWuZCEG61 2DtgNQ5DI5ETWts3cQOkNXY7rutpDbMbnPuL53RTk+ygjIUa7AxZRiHPrgmoU3HBUaeK 8Cog== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=imN3WE21OsBTummgsvGMBkxlBsiyqt3pZ1K2sG9PsF0=; fh=R2OauV333pprgML9ZDG1f4sLuOyvHP8nuUx0IoVCsvs=; b=ZxY3SCEvA6GMLI9Ij5JtIbXP2JEaXxeHTz2Ak/34oj3ZxrujPMFB7XWQnTriGuUAqr 4+vvfApEB58Yu9PaUeVczml8iQmiKuBfrQ6K/i9Gz7Uzy80KC0UxLvUJAeNbNkvoiU6v nq8cvdkQvsskjTEj3KUOsmSNurwDt6FjtTlDKV3rDObfQUVSEkWorNu6QnZ9wGgfsly+ FAmy8dFpphFtVs+QNyq9/UMEwgQlgGCpT8yD4QIe89n9mNj2/des5zyHjaXmfHBnW2yw xcelGWyb9VGFX0EzrDWAqdNuyYQG3io8Wz5rdVomUomlACg6oHG0U9oFcg4r+PAXu+aB ZIHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-51384-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51384-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCWGLyH7NwD4Yfmbo3g/9IlblKzXabcmhYrJfJOfX+CptSuEHpCB0mrQSeqH+xMKVi73XYg8T/r5CXCHpV+W8CLpzytu6yvvVbPkBVYbaw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s5-20020a05620a030500b00785586c51ffsi4884064qkm.229.2024.02.03.18.48.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 18:48:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51384-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-51384-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51384-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A5BB11C220A3 for ; Sun, 4 Feb 2024 02:48:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8C2E17E9; Sun, 4 Feb 2024 02:48:05 +0000 (UTC) Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D3926EDC; Sun, 4 Feb 2024 02:47:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707014884; cv=none; b=n+ZJ4ZEXytTxlD6p/JqA9Afi+7ebN6inj6MLwqPlBiaLQHhA+AlfVPkyMyJQwVeZz7tz1y9qrFbmmUl+v6fKfgIKJUluYRyroYa2X7fO0JjIXu0MM9DF/qO9v41QFGU8NP3zxN5nJTKUVQvSNlhb6LH488i5Q5/var4zBoXzOCM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707014884; c=relaxed/simple; bh=1IWmLL9FUuPlahEu2XMYvbRhFCCBfylbmKYXfJVyd7I=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=g/02UogPqWEMnTtCGSc8lqoJLtH/0p5pRfzDeaKCcifDeOaLwcGpxIbJI6URi+9lvBKFvdrVy9j6OhgDvPpCmbZQ+1W9kjx5cuQXWzFMlW4g7/5NL9kD+loYHghThhVW08DM38DdiJBaQvDWp+i+VuQT0rIbE6Yk5OU8093537k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: 7957bcb8e1564beea4d213f1304cbca6-20240204 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.35,REQID:62a27eed-7137-4a6c-bdc3-dc27dea17c6a,IP:10, URL:0,TC:0,Content:-5,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACT ION:release,TS:-10 X-CID-INFO: VERSION:1.1.35,REQID:62a27eed-7137-4a6c-bdc3-dc27dea17c6a,IP:10,UR L:0,TC:0,Content:-5,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:-10 X-CID-META: VersionHash:5d391d7,CLOUDID:5cf69683-8d4f-477b-89d2-1e3bdbef96d1,B ulkID:240204104752GUPFAA3S,BulkQuantity:0,Recheck:0,SF:44|64|66|24|17|19|1 02,TC:nil,Content:0,EDM:-3,IP:-2,URL:11|1,File:nil,Bulk:nil,QS:nil,BEC:nil ,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_FAS,TF_CID_SPAM_FSD,TF_CID_SPAM_FSI, TF_CID_SPAM_ULN X-UUID: 7957bcb8e1564beea4d213f1304cbca6-20240204 Received: from node2.com.cn [(39.156.73.10)] by mailgw (envelope-from ) (Generic MTA) with ESMTP id 1741473514; Sun, 04 Feb 2024 10:47:51 +0800 Received: from node2.com.cn (localhost [127.0.0.1]) by node2.com.cn (NSMail) with SMTP id 6C297B807587; Sun, 4 Feb 2024 10:47:51 +0800 (CST) X-ns-mid: postfix-65BEFAD7-357957128 Received: from [172.30.60.202] (unknown [172.30.60.202]) by node2.com.cn (NSMail) with ESMTPA id 0D99DB807587; Sun, 4 Feb 2024 02:47:48 +0000 (UTC) Message-ID: Date: Sun, 4 Feb 2024 10:47:48 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH] acpi: Modify ACPI_OBJECT_COMMON_HEADER To: "Rafael J. Wysocki" Cc: robert.moore@intel.com, rafael.j.wysocki@intel.com, linux-acpi@vger.kernel.org, evel@acpica.org, linux-kernel@vger.kernel.org, lenb@kernel.org References: <20231215073735.3891402-1-lijun01@kylinos.cn> Content-Language: en-US From: lijun In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable hi all: =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 then the acobject.h in acpica diff= erent from the kernel,=20 "ACPI_OBJECT_COMMON_HEADER" and "u8" not in the same line . in the acpica=C2=A0 this file typedef struct acpi_object_common { =C2=A0=C2=A0=C2=A0 ACPI_OBJECT_COMMON_HEADER } ACPI_OBJECT_COMMON; typedef struct acpi_object_integer { =C2=A0=C2=A0=C2=A0 ACPI_OBJECT_COMMON_HEADER =C2=A0=C2=A0=C2=A0 UINT8 Fill[3]; /* Prevent warning on some compilers *= / =C2=A0=C2=A0=C2=A0 UINT64 Value; } ACPI_OBJECT_INTEGER; and in kenel this file=20 /drivers/acpi/acpica/acobject.h,"ACPI_OBJECT_COMMON_HEADER" and "u8"=C2=A0= in=20 the same line ,cause=C2=A0 confusion. struct acpi_object_common { =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ACPI_OBJECT_COMMON_HEADER}; struct acpi_object_integer { =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ACPI_OBJECT_COMMON_HEADER u8 fill[3= ]; /* Prevent warning on some=20 compilers */ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 u64 value; }; others just so. On 2023/12/21 22:15, Rafael J. Wysocki wrote: > On Fri, Dec 15, 2023 at 8:38=E2=80=AFAM lijun wrot= e: >> modify 4 macros: >> ACPI_OBJECT_COMMON_HEADER, >> ACPI_COMMON_BUFFER_INFO, >> ACPI_COMMON_NOTIFY_INFO, >> ACPI_COMMON_FIELD_INFO >> they cause poor readability.so del the last ";" >> and when use them in a single line with the ";"in the end. >> >> Signed-off-by: lijun >> --- >> drivers/acpi/acpica/acobject.h | 95 +++++++++++++++++++++++---------= -- > ACPICA code comes from an external project. The proper way of > modifying it is to submit a pull request to the upstream ACPICA > project on GitHub. Once this pull request has been merged upstream, a > Linux patch containing a Link: tag to the corresponding upstream pull > request can be submitted. > > Thanks! > >> 1 file changed, 64 insertions(+), 31 deletions(-) >> >> diff --git a/drivers/acpi/acpica/acobject.h b/drivers/acpi/acpica/acob= ject.h >> index 1bdfeee5d7c5..0cd1769022aa 100644 >> --- a/drivers/acpi/acpica/acobject.h >> +++ b/drivers/acpi/acpica/acobject.h >> @@ -48,7 +48,7 @@ >> u8 descriptor_type; /* To dif= ferentiate various internal objs */\ >> u8 type; /* acpi_o= bject_type */\ >> u16 reference_count; /* For ob= ject deletion management */\ >> - u8 flags; >> + u8 flags >> /* >> * Note: There are 3 bytes available here before the >> * next natural alignment boundary (for both 32/64 cases) >> @@ -71,10 +71,12 @@ >> *******************************************************************= **********/ >> >> struct acpi_object_common { >> -ACPI_OBJECT_COMMON_HEADER}; >> + ACPI_OBJECT_COMMON_HEADER; >> +}; >> >> struct acpi_object_integer { >> - ACPI_OBJECT_COMMON_HEADER u8 fill[3]; /* Prevent warning on = some compilers */ >> + ACPI_OBJECT_COMMON_HEADER; >> + u8 fill[3]; /* Prevent warning on some compilers */ >> u64 value; >> }; >> >> @@ -86,23 +88,26 @@ struct acpi_object_integer { >> */ >> #define ACPI_COMMON_BUFFER_INFO(_type) \ >> _type *pointer; \ >> - u32 length; >> + u32 length >> >> /* Null terminated, ASCII characters only */ >> >> struct acpi_object_string { >> - ACPI_OBJECT_COMMON_HEADER ACPI_COMMON_BUFFER_INFO(char) /* Str= ing in AML stream or allocated string */ >> + ACPI_OBJECT_COMMON_HEADER; >> + ACPI_COMMON_BUFFER_INFO(char); /* String in AML stream or all= ocated string */ >> }; >> >> struct acpi_object_buffer { >> - ACPI_OBJECT_COMMON_HEADER ACPI_COMMON_BUFFER_INFO(u8) /* Buf= fer in AML stream or allocated buffer */ >> + ACPI_OBJECT_COMMON_HEADER; >> + ACPI_COMMON_BUFFER_INFO(u8);/* Buffer in AML stream or allocat= ed buffer */ >> u32 aml_length; >> u8 *aml_start; >> struct acpi_namespace_node *node; /* Link back to paren= t node */ >> }; >> >> struct acpi_object_package { >> - ACPI_OBJECT_COMMON_HEADER struct acpi_namespace_node *node; = /* Link back to parent node */ >> + ACPI_OBJECT_COMMON_HEADER; >> + struct acpi_namespace_node *node; /* Link back to parent= node */ >> union acpi_operand_object **elements; /* Array of pointers = to acpi_objects */ >> u8 *aml_start; >> u32 aml_length; >> @@ -116,11 +121,13 @@ struct acpi_object_package { >> *******************************************************************= **********/ >> >> struct acpi_object_event { >> - ACPI_OBJECT_COMMON_HEADER acpi_semaphore os_semaphore; /* Act= ual OS synchronization object */ >> + ACPI_OBJECT_COMMON_HEADER; >> + acpi_semaphore os_semaphore; /* Actual OS synchronization o= bject */ >> }; >> >> struct acpi_object_mutex { >> - ACPI_OBJECT_COMMON_HEADER u8 sync_level; /* 0-15, speci= fied in Mutex() call */ >> + ACPI_OBJECT_COMMON_HEADER; >> + u8 sync_level; /* 0-15, specified in Mutex() call */ >> u16 acquisition_depth; /* Allow multiple Acquires, same thre= ad */ >> acpi_mutex os_mutex; /* Actual OS synchronization object *= / >> acpi_thread_id thread_id; /* Current owner of the mutex= */ >> @@ -132,7 +139,8 @@ struct acpi_object_mutex { >> }; >> >> struct acpi_object_region { >> - ACPI_OBJECT_COMMON_HEADER u8 space_id; >> + ACPI_OBJECT_COMMON_HEADER; >> + u8 space_id; >> struct acpi_namespace_node *node; /* Containing namespa= ce node */ >> union acpi_operand_object *handler; /* Handler for region= access */ >> union acpi_operand_object *next; >> @@ -142,7 +150,8 @@ struct acpi_object_region { >> }; >> >> struct acpi_object_method { >> - ACPI_OBJECT_COMMON_HEADER u8 info_flags; >> + ACPI_OBJECT_COMMON_HEADER; >> + u8 info_flags; >> u8 param_count; >> u8 sync_level; >> union acpi_operand_object *mutex; >> @@ -178,33 +187,41 @@ struct acpi_object_method { >> */ >> #define ACPI_COMMON_NOTIFY_INFO \ >> union acpi_operand_object *notify_list[2]; /* Handle= rs for system/device notifies */\ >> - union acpi_operand_object *handler; /* Handler for= Address space */ >> + union acpi_operand_object *handler /* Handler for= Address space */ >> >> /* COMMON NOTIFY for POWER, PROCESSOR, DEVICE, and THERMAL */ >> >> struct acpi_object_notify_common { >> -ACPI_OBJECT_COMMON_HEADER ACPI_COMMON_NOTIFY_INFO}; >> + ACPI_OBJECT_COMMON_HEADER; >> + ACPI_COMMON_NOTIFY_INFO; >> +}; >> >> struct acpi_object_device { >> - ACPI_OBJECT_COMMON_HEADER >> - ACPI_COMMON_NOTIFY_INFO struct acpi_gpe_block_info *gpe_bl= ock; >> + ACPI_OBJECT_COMMON_HEADER; >> + ACPI_COMMON_NOTIFY_INFO; >> + struct acpi_gpe_block_info *gpe_block; >> }; >> >> struct acpi_object_power_resource { >> - ACPI_OBJECT_COMMON_HEADER ACPI_COMMON_NOTIFY_INFO u32 system_l= evel; >> + ACPI_OBJECT_COMMON_HEADER; >> + ACPI_COMMON_NOTIFY_INFO; >> + u32 system_level; >> u32 resource_order; >> }; >> >> struct acpi_object_processor { >> - ACPI_OBJECT_COMMON_HEADER >> + ACPI_OBJECT_COMMON_HEADER; >> /* The next two fields take advantage of the 3-byte space= before NOTIFY_INFO */ >> u8 proc_id; >> u8 length; >> - ACPI_COMMON_NOTIFY_INFO acpi_io_address address; >> + ACPI_COMMON_NOTIFY_INFO; >> + acpi_io_address address; >> }; >> >> struct acpi_object_thermal_zone { >> -ACPI_OBJECT_COMMON_HEADER ACPI_COMMON_NOTIFY_INFO}; >> + ACPI_OBJECT_COMMON_HEADER; >> + ACPI_COMMON_NOTIFY_INFO; >> +}; >> >> /*******************************************************************= *********** >> * >> @@ -226,17 +243,22 @@ ACPI_OBJECT_COMMON_HEADER ACPI_COMMON_NOTIFY_INF= O}; >> u32 base_byte_offset; /* Byte o= ffset within containing object */\ >> u32 value; /* Value = to store into the Bank or Index register */\ >> u8 start_field_bit_offset;/* Bit= offset within first field datum (0-63) */\ >> - u8 access_length; /* For serial = regions/fields */ >> + u8 access_length /* For serial = regions/fields */ >> >> >> /* COMMON FIELD (for BUFFER, REGION, BANK, and INDEX fields) */ >> >> struct acpi_object_field_common { >> - ACPI_OBJECT_COMMON_HEADER ACPI_COMMON_FIELD_INFO union acpi_op= erand_object *region_obj; /* Parent Operation Region object (REGION/BANK = fields only) */ >> + ACPI_OBJECT_COMMON_HEADER; >> + ACPI_COMMON_FIELD_INFO; >> + union acpi_operand_object *region_obj; >> + /* Parent Operation Region object (REGION/BANK fields only) */ >> }; >> >> struct acpi_object_region_field { >> - ACPI_OBJECT_COMMON_HEADER ACPI_COMMON_FIELD_INFO u16 resource_= length; >> + ACPI_OBJECT_COMMON_HEADER; >> + ACPI_COMMON_FIELD_INFO; >> + u16 resource_length; >> union acpi_operand_object *region_obj; /* Containing op_regi= on object */ >> u8 *resource_buffer; /* resource_template for serial regio= ns/fields */ >> u16 pin_number_index; /* Index relative to previous Connect= ion/Template */ >> @@ -244,12 +266,15 @@ struct acpi_object_region_field { >> }; >> >> struct acpi_object_bank_field { >> - ACPI_OBJECT_COMMON_HEADER ACPI_COMMON_FIELD_INFO union acpi_op= erand_object *region_obj; /* Containing op_region object */ >> + ACPI_OBJECT_COMMON_HEADER; >> + ACPI_COMMON_FIELD_INFO; >> + union acpi_operand_object *region_obj; /* Containing op_regio= n object */ >> union acpi_operand_object *bank_obj; /* bank_select Regist= er object */ >> }; >> >> struct acpi_object_index_field { >> - ACPI_OBJECT_COMMON_HEADER ACPI_COMMON_FIELD_INFO >> + ACPI_OBJECT_COMMON_HEADER; >> + ACPI_COMMON_FIELD_INFO; >> /* >> * No "RegionObj" pointer needed since the Index and Data= registers >> * are each field definitions unto themselves. >> @@ -261,7 +286,9 @@ struct acpi_object_index_field { >> /* The buffer_field is different in that it is part of a Buffer, not= an op_region */ >> >> struct acpi_object_buffer_field { >> - ACPI_OBJECT_COMMON_HEADER ACPI_COMMON_FIELD_INFO u8 is_create_= field; /* Special case for objects created by create_field() */ >> + ACPI_OBJECT_COMMON_HEADER; >> + ACPI_COMMON_FIELD_INFO; >> + u8 is_create_field; /* Special case for objects created by= create_field() */ >> union acpi_operand_object *buffer_obj; /* Containing Buffer = object */ >> }; >> >> @@ -272,7 +299,8 @@ struct acpi_object_buffer_field { >> *******************************************************************= **********/ >> >> struct acpi_object_notify_handler { >> - ACPI_OBJECT_COMMON_HEADER struct acpi_namespace_node *node; = /* Parent device */ >> + ACPI_OBJECT_COMMON_HEADER; >> + struct acpi_namespace_node *node; /* Parent device */ >> u32 handler_type; /* Type: Device/System/Both */ >> acpi_notify_handler handler; /* Handler address */ >> void *context; >> @@ -280,7 +308,8 @@ struct acpi_object_notify_handler { >> }; >> >> struct acpi_object_addr_handler { >> - ACPI_OBJECT_COMMON_HEADER u8 space_id; >> + ACPI_OBJECT_COMMON_HEADER; >> + u8 space_id; >> u8 handler_flags; >> acpi_adr_space_handler handler; >> struct acpi_namespace_node *node; /* Parent device */ >> @@ -307,7 +336,8 @@ struct acpi_object_addr_handler { >> * The Reference.Class differentiates these types. >> */ >> struct acpi_object_reference { >> - ACPI_OBJECT_COMMON_HEADER u8 class; /* Reference Class */ >> + ACPI_OBJECT_COMMON_HEADER; >> + u8 class; /* Reference Class */ >> u8 target_type; /* Used for Index Op */ >> u8 resolved; /* Reference has been resolved to a v= alue */ >> void *object; /* name_op=3D>HANDLE to obj, index_op= =3D>union acpi_operand_object */ >> @@ -340,7 +370,8 @@ typedef enum { >> * Currently: Region and field_unit types >> */ >> struct acpi_object_extra { >> - ACPI_OBJECT_COMMON_HEADER struct acpi_namespace_node *method_R= EG; /* _REG method for this region (if any) */ >> + ACPI_OBJECT_COMMON_HEADER; >> + struct acpi_namespace_node *method_REG; /* _REG method for thi= s region (if any) */ >> struct acpi_namespace_node *scope_node; >> void *region_context; /* Region-specific data */ >> u8 *aml_start; >> @@ -350,14 +381,16 @@ struct acpi_object_extra { >> /* Additional data that can be attached to namespace nodes */ >> >> struct acpi_object_data { >> - ACPI_OBJECT_COMMON_HEADER acpi_object_handler handler; >> + ACPI_OBJECT_COMMON_HEADER; >> + acpi_object_handler handler; >> void *pointer; >> }; >> >> /* Structure used when objects are cached for reuse */ >> >> struct acpi_object_cache_list { >> - ACPI_OBJECT_COMMON_HEADER union acpi_operand_object *next; = /* Link for object cache and internal lists */ >> + ACPI_OBJECT_COMMON_HEADER; >> + union acpi_operand_object *next; /* Link for object cac= he and internal lists */ >> }; >> >> /*******************************************************************= *********** >> -- >> 2.34.1 >> >>