@@ -560,25 +560,28 @@ struct acpi_field_info {
560
560
u8 descriptor_type; /* To differentiate various internal objs */ \
561
561
u8 flags ; \
562
562
u16 value ; \
563
- u16 state ;
563
+ u16 state
564
564
565
565
/* There are 2 bytes available here until the next natural alignment boundary */
566
566
567
567
struct acpi_common_state {
568
- ACPI_STATE_COMMON };
568
+ ACPI_STATE_COMMON ;
569
+ };
569
570
570
571
/*
571
572
* Update state - used to traverse complex objects such as packages
572
573
*/
573
574
struct acpi_update_state {
574
- ACPI_STATE_COMMON union acpi_operand_object * object ;
575
+ ACPI_STATE_COMMON ;
576
+ union acpi_operand_object * object ;
575
577
};
576
578
577
579
/*
578
580
* Pkg state - used to traverse nested package structures
579
581
*/
580
582
struct acpi_pkg_state {
581
- ACPI_STATE_COMMON u32 index ;
583
+ ACPI_STATE_COMMON ;
584
+ u32 index ;
582
585
union acpi_operand_object * source_object ;
583
586
union acpi_operand_object * dest_object ;
584
587
struct acpi_walk_state * walk_state ;
@@ -591,7 +594,8 @@ struct acpi_pkg_state {
591
594
* Allows nesting of these constructs
592
595
*/
593
596
struct acpi_control_state {
594
- ACPI_STATE_COMMON u16 opcode ;
597
+ ACPI_STATE_COMMON ;
598
+ u16 opcode ;
595
599
union acpi_parse_object * predicate_op ;
596
600
u8 * aml_predicate_start ; /* Start of if/while predicate */
597
601
u8 * package_end ; /* End of if/while block */
@@ -602,11 +606,13 @@ struct acpi_control_state {
602
606
* Scope state - current scope during namespace lookups
603
607
*/
604
608
struct acpi_scope_state {
605
- ACPI_STATE_COMMON struct acpi_namespace_node * node ;
609
+ ACPI_STATE_COMMON ;
610
+ struct acpi_namespace_node * node ;
606
611
};
607
612
608
613
struct acpi_pscope_state {
609
- ACPI_STATE_COMMON u32 arg_count ; /* Number of fixed arguments */
614
+ ACPI_STATE_COMMON ;
615
+ u32 arg_count ; /* Number of fixed arguments */
610
616
union acpi_parse_object * op ; /* Current op being parsed */
611
617
u8 * arg_end ; /* Current argument end */
612
618
u8 * pkg_end ; /* Current package end */
@@ -618,7 +624,8 @@ struct acpi_pscope_state {
618
624
* states are created when there are nested control methods executing.
619
625
*/
620
626
struct acpi_thread_state {
621
- ACPI_STATE_COMMON u8 current_sync_level ; /* Mutex Sync (nested acquire) level */
627
+ ACPI_STATE_COMMON ;
628
+ u8 current_sync_level ; /* Mutex Sync (nested acquire) level */
622
629
struct acpi_walk_state * walk_state_list ; /* Head of list of walk_states for this thread */
623
630
union acpi_operand_object * acquired_mutex_list ; /* List of all currently acquired mutexes */
624
631
acpi_thread_id thread_id ; /* Running thread ID */
@@ -629,8 +636,8 @@ struct acpi_thread_state {
629
636
* AML arguments
630
637
*/
631
638
struct acpi_result_values {
632
- ACPI_STATE_COMMON
633
- union acpi_operand_object * obj_desc [ACPI_RESULTS_FRAME_OBJ_NUM ];
639
+ ACPI_STATE_COMMON ;
640
+ union acpi_operand_object * obj_desc [ACPI_RESULTS_FRAME_OBJ_NUM ];
634
641
};
635
642
636
643
typedef
@@ -652,7 +659,8 @@ struct acpi_global_notify_handler {
652
659
* handler/dispatcher.
653
660
*/
654
661
struct acpi_notify_info {
655
- ACPI_STATE_COMMON u8 handler_list_id ;
662
+ ACPI_STATE_COMMON ;
663
+ u8 handler_list_id ;
656
664
struct acpi_namespace_node * node ;
657
665
union acpi_operand_object * handler_list_head ;
658
666
struct acpi_global_notify_handler * global ;
0 commit comments