Skip to content

Commit

Permalink
net: altera_tse: fix packed and aligned attribute
Browse files Browse the repository at this point in the history
Fix packed and aligned attribute warnings.

WARNING: __packed is preferred over __attribute__((packed))
u-boot#14: FILE: drivers/net/altera_tse.h:14:
+#define __packed_1_    __attribute__ ((packed, aligned(1)))

WARNING: __aligned(size) is preferred over
__attribute__((aligned(size)))
u-boot#14: FILE: drivers/net/altera_tse.h:14:
+#define __packed_1_    __attribute__ ((packed, aligned(1)))

Signed-off-by: Thomas Chou <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
Reviewed-by: Chin Liang See <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
  • Loading branch information
hippo5329 committed Nov 6, 2015
1 parent 2cd0a52 commit 13146ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/altera_tse.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#ifndef _ALTERA_TSE_H_
#define _ALTERA_TSE_H_

#define __packed_1_ __attribute__ ((packed, aligned(1)))
#define __packed_1_ __packed __aligned(1)

/* SGDMA Stuff */
#define ALT_SGDMA_STATUS_BUSY_MSK (0x00000010)
Expand Down

0 comments on commit 13146ec

Please sign in to comment.