From patchwork Fri Aug 29 15:21:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kirsher, Jeffrey T" X-Patchwork-Id: 4811471 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E7D2EC033A for ; Fri, 29 Aug 2014 15:41:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 334C5200F4 for ; Fri, 29 Aug 2014 15:41:28 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 86FEE200F2 for ; Fri, 29 Aug 2014 15:41:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BDAEB6E2E0; Fri, 29 Aug 2014 08:41:22 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id E2C336E2A2 for ; Fri, 29 Aug 2014 08:21:32 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 29 Aug 2014 08:21:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,424,1406617200"; d="scan'208";a="591743199" Received: from salacea-mobl1.amr.corp.intel.com (HELO jtkirshe-mobl.amr.corp.intel.com) ([10.255.68.251]) by fmsmga002.fm.intel.com with ESMTP; 29 Aug 2014 08:21:31 -0700 From: Jeff Kirsher To: airlied@linux.ie Subject: [PATCH 1/2] drm: Resolve many missing-field-initializers warnings Date: Fri, 29 Aug 2014 08:21:25 -0700 Message-Id: <1409325686-13994-1-git-send-email-jeffrey.t.kirsher@intel.com> X-Mailer: git-send-email 1.9.3 X-Mailman-Approved-At: Fri, 29 Aug 2014 08:41:21 -0700 Cc: Mark Rustad , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Jeff Kirsher X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Mark Rustad Resolve many missing-field-initializers warnings that appear in W=2 builds by changing nested object initialization syntax. Signed-off-by: Mark Rustad Signed-off-by: Jeff Kirsher --- include/drm/drm_modes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drm/drm_modes.h b/include/drm/drm_modes.h index 91d0582..0a118f3 100644 --- a/include/drm/drm_modes.h +++ b/include/drm/drm_modes.h @@ -86,7 +86,7 @@ enum drm_mode_status { .htotal = (ht), .hskew = (hsk), .vdisplay = (vd), \ .vsync_start = (vss), .vsync_end = (vse), .vtotal = (vt), \ .vscan = (vs), .flags = (f), \ - .base.type = DRM_MODE_OBJECT_MODE + .base = { .type = DRM_MODE_OBJECT_MODE } #define CRTC_INTERLACE_HALVE_V (1 << 0) /* halve V values for interlacing */ #define CRTC_STEREO_DOUBLE (1 << 1) /* adjust timings for stereo modes */