[PATCH 4/7] Staging: bcm: Fix warning: __packed vs. __attribute__((packed)) in Adapter.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch fixes the following warning reported
by checkpatch.pl: "WARNING: __packed is preferred
over __attribute__((packed))".

Signed-off-by: Kevin McKinney <klmckinney1@xxxxxxxxx>
---
 drivers/staging/bcm/Adapter.h |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/bcm/Adapter.h b/drivers/staging/bcm/Adapter.h
index 42291ee..b5ff5b3 100644
--- a/drivers/staging/bcm/Adapter.h
+++ b/drivers/staging/bcm/Adapter.h
@@ -12,26 +12,26 @@ struct _LEADER {
 	USHORT	PLength;
 	UCHAR	Status;
 	UCHAR	Unused[3];
-} __attribute__((packed));
+} __packed;
 typedef struct _LEADER LEADER, *PLEADER;
 
 struct _PACKETTOSEND {
 	LEADER	Leader;
 	UCHAR	ucPayload;
-} __attribute__((packed));
+} __packed;
 typedef struct _PACKETTOSEND PACKETTOSEND, *PPACKETTOSEND;
 
 struct _CONTROL_PACKET {
 	PVOID	ControlBuff;
 	UINT	ControlBuffLen;
 	struct _CONTROL_PACKET *next;
-} __attribute__((packed));
+} __packed;
 typedef struct _CONTROL_PACKET CONTROL_PACKET, *PCONTROL_PACKET;
 
 struct link_request {
 	LEADER	Leader;
 	UCHAR	szData[4];
-} __attribute__((packed));
+} __packed;
 typedef struct link_request LINK_REQUEST, *PLINK_REQUEST;
 
 /* classification extension is added */
@@ -534,14 +534,14 @@ struct _ETH_HEADER_STRUC {
 	UCHAR	au8DestinationAddress[6];
 	UCHAR	au8SourceAddress[6];
 	USHORT	u16Etype;
-} __attribute__((packed));
+} __packed;
 typedef struct _ETH_HEADER_STRUC ETH_HEADER_STRUC, *PETH_HEADER_STRUC;
 
 typedef struct FirmwareInfo {
 	void	__user *pvMappedFirmwareAddress;
 	ULONG	u32FirmwareLength;
 	ULONG	u32StartingAddress;
-} __attribute__((packed)) FIRMWARE_INFO, *PFIRMWARE_INFO;
+} __packed FIRMWARE_INFO, *PFIRMWARE_INFO;
 
 /* holds the value of net_device structure.. */
 extern struct net_device *gblpnetdev;
-- 
1.7.9.5

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux