Date: Fri, 8 Oct 2010 15:06:25 -0400 From: John Baldwin <jhb@freebsd.org> To: Garrett Cooper <yanegomi@gmail.com> Cc: freebsd-hackers@freebsd.org, sbruno@freebsd.org, scottl@freebsd.org Subject: Re: Fix mfiutil compile with -DDEBUG Message-ID: <201010081506.26087.jhb@freebsd.org> In-Reply-To: <AANLkTikiaTONmZbLdWW5Np7h1EwxFBeyjsWTxZd43CUt@mail.gmail.com> References: <AANLkTikiaTONmZbLdWW5Np7h1EwxFBeyjsWTxZd43CUt@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday, October 03, 2010 10:33:17 pm Garrett Cooper wrote:
> make -DDEBUG is broken in mfiutil:
>
> $ make -DDEBUG
> cc -O2 -pipe -fno-strict-aliasing -pipe -O2 -march=nocona
> -fno-builtin-strftime -DDEBUG -Wall -Wcast-align -Woverflow
> -Wsign-compare -Wunused -std=gnu99 -fstack-protector -Wsystem-headers
> -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter
> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
> -Wno-uninitialized -Wno-pointer-sign -c
> /usr/src/usr.sbin/mfiutil/mfi_config.c
> /usr/src/usr.sbin/mfiutil/mfi_config.c: In function 'dump_config':
> /usr/src/usr.sbin/mfiutil/mfi_config.c:1027: error: 'union mfi_pd_ref'
> has no member named 'device_id'
> /usr/src/usr.sbin/mfiutil/mfi_config.c:1083: error: 'union mfi_pd_ref'
> has no member named 'device_id'
> *** Error code 1
>
> Stop in /usr/src/usr.sbin/mfiutil.
> $
>
> device_id is a field in the v field in the mfi_pd_ref union
> (/sys/dev/mfi/mfireg.h):
>
> union mfi_pd_ref {
> struct {
> uint16_t device_id;
> uint16_t seq_num;
> } v;
> uint32_t ref;
> } __packed;
Yes, there were different versions of these definitions in mfireg.h at one
point. Your patch is fine.
--
John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010081506.26087.jhb>
