From e88ad97fcdfa8869177e6601efd0f42086780942 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Wed, 25 Mar 2009 00:57:09 +0000 Subject: [PATCH] Use __attribute__((packed)) for the structure so that hptiop management utility would work. Submitted by: Shaowei WANG MFC after: 2 weeks --- sys/dev/hptiop/hptiop.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/hptiop/hptiop.h b/sys/dev/hptiop/hptiop.h index 0f74592d61d..a77c76ba26d 100644 --- a/sys/dev/hptiop/hptiop.h +++ b/sys/dev/hptiop/hptiop.h @@ -260,7 +260,7 @@ struct hpt_iop_ioctl_param { unsigned long lpOutBuffer; /* output data buffer */ u_int32_t nOutBufferSize; /* size of output data buffer */ unsigned long lpBytesReturned; /* count of HPT_U8s returned */ -}; +} __attribute__((packed)); #define HPT_IOCTL_FLAG_OPEN 1 #define HPT_CTL_CODE_BSD_TO_IOP(x) ((x)-0xff00)