Commit f4bf6b34 authored by Giedrius Statkevičius's avatar Giedrius Statkevičius Committed by Greg Kroah-Hartman

staging: ft1000: convert pack pragma to __packed

Convert a Microsoft compiler specific directive "#pragma pack(1)" to a
GCC equivalent __packed. Also, by doing this we save
ourselves from trouble if any other struct definitions are added after
the #pragma because it will be applied to all of the definitions
following it.
Signed-off-by: default avatarGiedrius Statkevičius <giedrius.statkevicius@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d4216b30
...@@ -95,7 +95,6 @@ struct dsp_file_hdr { ...@@ -95,7 +95,6 @@ struct dsp_file_hdr {
long nDspImages; /* Number of DSP images in file. */ long nDspImages; /* Number of DSP images in file. */
}; };
#pragma pack(1)
struct dsp_image_info { struct dsp_image_info {
long coff_date; /* Date/time when DSP Coff image was built. */ long coff_date; /* Date/time when DSP Coff image was built. */
long begin_offset; /* Offset in file where image begins. */ long begin_offset; /* Offset in file where image begins. */
...@@ -105,7 +104,7 @@ struct dsp_image_info { ...@@ -105,7 +104,7 @@ struct dsp_image_info {
long version; /* Embedded version # of DSP code. */ long version; /* Embedded version # of DSP code. */
unsigned short checksum; /* DSP File checksum */ unsigned short checksum; /* DSP File checksum */
unsigned short pad1; unsigned short pad1;
}; } __packed;
/* checks if the doorbell register is cleared */ /* checks if the doorbell register is cleared */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment