From owner-svn-src-stable@freebsd.org Wed Sep 6 16:09:23 2017 Return-Path: Delivered-To: svn-src-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B455FE09F29; Wed, 6 Sep 2017 16:09:23 +0000 (UTC) (envelope-from rlibby@gmail.com) Received: from mail-pg0-f46.google.com (mail-pg0-f46.google.com [74.125.83.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0D07B83452; Wed, 6 Sep 2017 16:09:22 +0000 (UTC) (envelope-from rlibby@gmail.com) Received: by mail-pg0-f46.google.com with SMTP id d8so15988623pgt.4; Wed, 06 Sep 2017 09:09:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=XoIv+A7eDimQBD/WXSaYE5EHm0mzKm9YZEafdWYhl5s=; b=oWQ6oAklMjsmbp78jFQ8PfwXGNRyjiy2m5o+pEh0gJeX20FClt/3TQSsdAk5XKW6F0 wiGRxKkXvI2j4xdW1cHG81Z+CDFem5UpgnviMh5olDG+vkL4uBYXYdaDgjP4sbJOtNVP gJr+cCk0wuTZEuTpupKWOuyRoIRF9X5uP6odknp6/xpSuyS310JZnaVsZ1aY1Wdi0gDY r7Grz/oYQWSjnWnSMMPMCRWVnFLH4pjn8zBOmdnnnAd2qfCTHloJeXBsfA892hlUJ2ui qktro2Asov/5GOWRD971bol62qoe6P/Pad65lIOECavurSI7kXLKDrwGXGgTo9XY06wX 4nUg== X-Gm-Message-State: AHPjjUh2/yRzVFIFvt76Z46+372S50p5WmXoGsuk3ZrA3TQfETOzV06l 92lUiw/EYqCJm6nHjwThUg== X-Received: by 10.98.74.156 with SMTP id c28mr7737804pfj.266.1504713825927; Wed, 06 Sep 2017 09:03:45 -0700 (PDT) Received: from mail-pf0-f178.google.com (mail-pf0-f178.google.com. [209.85.192.178]) by smtp.gmail.com with ESMTPSA id k186sm250393pga.46.2017.09.06.09.03.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Sep 2017 09:03:45 -0700 (PDT) Received: by mail-pf0-f178.google.com with SMTP id g13so13471039pfm.2; Wed, 06 Sep 2017 09:03:45 -0700 (PDT) X-Google-Smtp-Source: ADKCNb5JRkOTfFP0TMMPCREAg5zIdth/+CKcxqT4O3/ViSEniWuFvgnPd9KODyKbU93QSJvj5L3rcduUKNF0RpbofSo= X-Received: by 10.99.6.210 with SMTP id 201mr8424662pgg.416.1504713824826; Wed, 06 Sep 2017 09:03:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.207.193 with HTTP; Wed, 6 Sep 2017 09:03:44 -0700 (PDT) In-Reply-To: <201709060657.v866vIro002970@repo.freebsd.org> References: <201709060657.v866vIro002970@repo.freebsd.org> From: Ryan Libby Date: Wed, 6 Sep 2017 09:03:44 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r323208 - stable/11/sys/dev/hptmv To: src-committers , svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Sep 2017 16:09:23 -0000 On Tue, Sep 5, 2017 at 11:57 PM, Ryan Libby 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"