Skip to content

Commit

Permalink
ACPI / processor replace __attribute__((packed)) by __packed
Browse files Browse the repository at this point in the history
This patch fixes checkpatch warnings:

"WARNING: __packed is preferred over __attribute__((packed))"

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Fabian Frederick authored and Rafael J. Wysocki committed Jun 17, 2014
1 parent 7171511 commit 92c4d2a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/acpi/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ struct acpi_power_register {
u8 bit_offset;
u8 access_size;
u64 address;
} __attribute__ ((packed));
} __packed;

struct acpi_processor_cx {
u8 valid;
Expand Down Expand Up @@ -83,7 +83,7 @@ struct acpi_psd_package {
u64 domain;
u64 coord_type;
u64 num_processors;
} __attribute__ ((packed));
} __packed;

struct acpi_pct_register {
u8 descriptor;
Expand All @@ -93,7 +93,7 @@ struct acpi_pct_register {
u8 bit_offset;
u8 reserved;
u64 address;
} __attribute__ ((packed));
} __packed;

struct acpi_processor_px {
u64 core_frequency; /* megahertz */
Expand Down Expand Up @@ -124,7 +124,7 @@ struct acpi_tsd_package {
u64 domain;
u64 coord_type;
u64 num_processors;
} __attribute__ ((packed));
} __packed;

struct acpi_ptc_register {
u8 descriptor;
Expand All @@ -134,7 +134,7 @@ struct acpi_ptc_register {
u8 bit_offset;
u8 reserved;
u64 address;
} __attribute__ ((packed));
} __packed;

struct acpi_processor_tx_tss {
u64 freqpercentage; /* */
Expand Down

0 comments on commit 92c4d2a

Please sign in to comment.