Date: Wed, 25 Mar 2009 00:57:09 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r190398 - head/sys/dev/hptiop Message-ID: <200903250057.n2P0v9P8061298@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Wed Mar 25 00:57:09 2009 New Revision: 190398 URL: http://svn.freebsd.org/changeset/base/190398 Log: Use __attribute__((packed)) for the structure so that hptiop management utility would work. Submitted by: Shaowei WANG <wsw1wsw2 gmail com> MFC after: 2 weeks Modified: head/sys/dev/hptiop/hptiop.h Modified: head/sys/dev/hptiop/hptiop.h ============================================================================== --- head/sys/dev/hptiop/hptiop.h Tue Mar 24 23:31:41 2009 (r190397) +++ head/sys/dev/hptiop/hptiop.h Wed Mar 25 00:57:09 2009 (r190398) @@ -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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903250057.n2P0v9P8061298>