Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Sep 2017 09:03:44 -0700
From:      Ryan Libby <rlibby@freebsd.org>
To:        src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org,  svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   Re: svn commit: r323208 - stable/11/sys/dev/hptmv
Message-ID:  <CAHgpiFw5oW8xMRaM1e7_Gu3HenFyM_5T3KkCk4_0Ghjx+ytiHw@mail.gmail.com>
In-Reply-To: <201709060657.v866vIro002970@repo.freebsd.org>
References:  <201709060657.v866vIro002970@repo.freebsd.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Tue, Sep 5, 2017 at 11:57 PM, Ryan Libby <rlibby@freebsd.org> wrote:
> Author: rlibby
> Date: Wed Sep  6 06:57:18 2017
> New Revision: 323208
> URL: https://svnweb.freebsd.org/changeset/base/323208
>
> Log:
>   MFC r320714:
>
>     hptmv: avoid gcc variably-modified warning
>

PR: 211540

> Modified:
>   stable/11/sys/dev/hptmv/vdevice.h
> Directory Properties:
>   stable/11/   (props changed)
>
> Modified: stable/11/sys/dev/hptmv/vdevice.h
> ==============================================================================
> --- stable/11/sys/dev/hptmv/vdevice.h   Wed Sep  6 06:51:52 2017        (r323207)
> +++ stable/11/sys/dev/hptmv/vdevice.h   Wed Sep  6 06:57:18 2017        (r323208)
> @@ -77,8 +77,8 @@ typedef  struct _VDevice
>
>  } VDevice;
>
> -#define ARRAY_VDEV_SIZE ((UINT)(ULONG_PTR)&((PVDevice)0)->u+sizeof(RaidArray))
> -#define DISK_VDEV_SIZE  ((UINT)(ULONG_PTR)&((PVDevice)0)->u+sizeof(Device))
> +#define ARRAY_VDEV_SIZE (offsetof(VDevice, u) + sizeof(RaidArray))
> +#define DISK_VDEV_SIZE  (offsetof(VDevice, u) + sizeof(Device))
>
>  #define Map2pVDevice(pDev) ((PVDevice)((UINT_PTR)pDev - (UINT)(UINT_PTR)&((PVDevice)0)->u.disk))
>
> _______________________________________________
> svn-src-all@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/svn-src-all
> To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAHgpiFw5oW8xMRaM1e7_Gu3HenFyM_5T3KkCk4_0Ghjx+ytiHw>