Reverted the __packed and __aligned change.

We should not add compiler extensions, it is not our job. We are not a
selfcontained project as kernel is so we should not introduce things
like this.

If we need to add some abstraction for this in the future to support
compilers doing these things differently then we will do that the same
way we dealt with the depricated attribute.
This commit is contained in:
Piotr Esden-Tempski
2013-06-13 10:29:21 -07:00
parent 8da7fbd71e
commit cabbd21329
7 changed files with 17 additions and 20 deletions

View File

@@ -69,7 +69,7 @@ struct _usbd_device {
DATA_IN, LAST_DATA_IN, STATUS_IN,
DATA_OUT, LAST_DATA_OUT, STATUS_OUT,
} state;
struct usb_setup_data req __aligned(4);
struct usb_setup_data req __attribute__((aligned(4)));
uint8_t *ctrl_buf;
uint16_t ctrl_len;
void (*complete)(usbd_device *usbd_dev,