Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hysdn: remove the packed attribute from PofTimStamp_tag

Remove the packed attribute from PofTimStamp_tag in the hysdn driver as the
thing being packed is just an array of chars and so is unpackable.

This deals with a compiler warning:

In file included from drivers/isdn/hysdn/hysdn_boot.c:19:
drivers/isdn/hysdn/hysdn_pof.h:63: warning: 'packed' attribute ignored for field of type 'unsigned char[40]'

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

David Howells and committed by
David S. Miller
a7403e80 02137f2e

+1 -1
+1 -1
drivers/isdn/hysdn/hysdn_pof.h
··· 60 60 61 61 typedef struct PofTimeStamp_tag { 62 62 /*00 */ unsigned long UnixTime __attribute__((packed)); 63 - /*04 */ unsigned char DateTimeText[0x28] __attribute__((packed)); 63 + /*04 */ unsigned char DateTimeText[0x28]; 64 64 /* =40 */ 65 65 /*2C */ 66 66 } tPofTimeStamp;