Received: by 10.223.148.5 with SMTP id 5csp6410629wrq; Wed, 17 Jan 2018 13:20:16 -0800 (PST) X-Google-Smtp-Source: ACJfBourg9MzD5Rn8p+ZMpGSrf6/k9bqP47ZRKBsEKIQi5fWQNkMwui82X76E/WdxJrdCHPR8fix X-Received: by 10.98.163.131 with SMTP id q3mr29852478pfl.87.1516224015883; Wed, 17 Jan 2018 13:20:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516224015; cv=none; d=google.com; s=arc-20160816; b=pZ0ibKeReMcu5K1/8ZkjG6GkFO6vxi/ZhzxBqmRXe0BMJoemoZ9Sqau9nIPJXTW/bl ueXQLwFMzsD+FBU5Ka8Gk9YCZYOq2RaGvCYzT6RylqRFOcWaAvkRDhrjPEk3zOpA/PcM 5OC2u1xWgV6fzC/v9fhXE59HOSD6XwrZCksxial28sbgoqVPTfMJWWc+NyNvxwvtxEjz 7sgty0BrGZaqiIwAJU35VwLDbJN4yOeBczM6J2QBPDSk6OECVoYdUwT9u0wcYcayMEFH vuNrzMe9OaTvFnhrcSnYdPJn8D2AryVIKS4WrhnNoz9XCH6BVpmuaGkg/ZzgEreBex9S B1Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=VOcqNxAazd1vfZARV12LAKVQQb6avr3EdHNveEGbTDA=; b=g5j6ltIgya+ZU+Mztyz/WWwmfxGdGz6GbjgeZGngIa4wdhU0lYKLOWdgX4fNfVrM7K irQeIMNnz0tyBdDCptxDnVuaEmXnVnKwGCUd8ConZokCcQI7DIuQ0nNl/V0BgCcMjCbm mkKF0j0yk7W5FjSYedxR4xS9TobxzI8rg6xBu/Es8GGaBQqfxxu8CK1+aTbwCE9sacz0 4tg1RMp6YkY8Zr2jhYKPP4HTVm0JFU4TnN6Jyfotf/jP6TEI1XvZtcrLKrO/MPzqc8QF Al+gDkSJ/mNToy59pOLQAgubHTqqxynebibVpRrmM3KGsHadvBPuNr74IfJzo820FMQK 16LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=UKBnanf1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bj8si5214949plb.80.2018.01.17.13.20.00; Wed, 17 Jan 2018 13:20:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=UKBnanf1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753701AbeAQVTQ (ORCPT + 99 others); Wed, 17 Jan 2018 16:19:16 -0500 Received: from mail-it0-f67.google.com ([209.85.214.67]:34736 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752100AbeAQVTN (ORCPT ); Wed, 17 Jan 2018 16:19:13 -0500 Received: by mail-it0-f67.google.com with SMTP id m11so15998209iti.1 for ; Wed, 17 Jan 2018 13:19:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=VOcqNxAazd1vfZARV12LAKVQQb6avr3EdHNveEGbTDA=; b=UKBnanf1d66jdH+Bhx4mkt0tEp3d5Jn1NbkXLShuh5AgRA+MaupODqRF6vq27W1DLL 9llqRBjfftbllZgbDIXakBdapvlGy5A3clroGL026c2spviWo3mOn8UjwqJY7cmOeMH/ y6BOfK5ze2W0iULl4pNnSBiNNPRar/ZZOh3Uw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=VOcqNxAazd1vfZARV12LAKVQQb6avr3EdHNveEGbTDA=; b=HXW/x1MMZVjjw1+fFMbeADWVBtlTKD9BL9z+Bm/WgBOWkNQXXQL97sKFXs7XIrl+XD s9QljBxYLVnoxB0HGckQVdhmwRL43hBMqceWjJgBXGSgL183vaygQ25KpWaAQ4q7h62G zDaZeDQZ+6VLLhWdGrJy7kEqAH/4mZL2Tv5U3SXPwaR0L0EVOOcnqZ1bSN8O15Ik35Pt q8X6sTQ+J/op1FHdlHNTPPMmHkEkGPEH2hdswKzwvDMB09sBXgnaqtyhsY5zwZNNxYyy xVQ8nwieEYvGy8LHTwy/O6nRwPKVELMS91HFDXxr1if5FAm6RuUbGblYRKWzbJTy2z5+ 85YQ== X-Gm-Message-State: AKwxytc4iptMZ2N5zTG72SwZvh1QD4kBdDy0mLtXcDc1hEYZR4fXP60E XuDEUEQnINxOFetJO3xwkw/cX1tzGuj2UmPihqwZMw== X-Received: by 10.36.58.11 with SMTP id m11mr22577777itm.89.1516223953040; Wed, 17 Jan 2018 13:19:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.141.199 with HTTP; Wed, 17 Jan 2018 13:19:12 -0800 (PST) X-Originating-IP: [2a02:168:56e6:0:e4bc:76a0:8042:669e] In-Reply-To: References: <20180116145720.2348043-1-arnd@arndb.de> <20180117082712.GF2759@phenom.ffwll.local> From: Daniel Vetter Date: Wed, 17 Jan 2018 22:19:12 +0100 X-Google-Sender-Auth: wdMAzxZ1V5uNfJz19_5e-GfcquY Message-ID: Subject: Re: [PATCH] [RESEND] drm/gma500: initialize gma_clock_t structures To: Arnd Bergmann Cc: Patrik Jakobsson , David Airlie , dri-devel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 17, 2018 at 8:44 PM, Arnd Bergmann wrote: > On Wed, Jan 17, 2018 at 3:55 PM, Daniel Vetter wrote: >> On Wed, Jan 17, 2018 at 3:36 PM, Arnd Bergmann wrote: >>> On Wed, Jan 17, 2018 at 9:27 AM, Daniel Vetter wrote: >>>> On Tue, Jan 16, 2018 at 03:57:10PM +0100, Arnd Bergmann wrote: >>>>> The two functions pass a partially initialized structure back to the >>>>> caller after a memset() on the destination. >>>>> >>>>> This is not entirely well-defined, most compilers are sensible enough >>>>> to either keep the zero-initialization for the uninitialized members, >>>>> but gcc-4.4 does not, and it warns about this: >>>>> >>>>> drivers/gpu/drm/gma500/oaktrail_crtc.c: In function 'mrst_sdvo_find_best_pll': >>>>> drivers/gpu/drm/gma500/oaktrail_crtc.c:175: warning: 'clock.vco' may be used uninitialized in this function >>>>> drivers/gpu/drm/gma500/oaktrail_crtc.c:175: warning: 'clock.dot' may be used uninitialized in this function >>>>> drivers/gpu/drm/gma500/oaktrail_crtc.c:175: warning: 'clock.p2' may be used uninitialized in this function >>>>> drivers/gpu/drm/gma500/oaktrail_crtc.c:175: warning: 'clock.m2' may be used uninitialized in this function >>>>> drivers/gpu/drm/gma500/oaktrail_crtc.c:175: warning: 'clock.m1' may be used uninitialized in this function >>>>> drivers/gpu/drm/gma500/oaktrail_crtc.c: In function 'mrst_lvds_find_best_pll': >>>>> drivers/gpu/drm/gma500/oaktrail_crtc.c:208: warning: 'clock.p' may be used uninitialized in this function >>>>> drivers/gpu/drm/gma500/oaktrail_crtc.c:208: warning: 'clock.vco' may be used uninitialized in this function >>>>> drivers/gpu/drm/gma500/oaktrail_crtc.c:208: warning: 'clock.p2' may be used uninitialized in this function >>>>> drivers/gpu/drm/gma500/oaktrail_crtc.c:208: warning: 'clock.m2' may be used uninitialized in this function >>>>> drivers/gpu/drm/gma500/oaktrail_crtc.c:208: warning: 'clock.m1' may be used uninitialized in this function >>>>> drivers/gpu/drm/gma500/oaktrail_crtc.c:208: warning: 'clock.n' may be used uninitialized in this function >>>>> >>>>> This adds an initialization at declaration time to avoid the warning >>>>> and make it well-defined on all compiler versions. >>>>> >>>>> Signed-off-by: Arnd Bergmann >>>> >>>> Applied to drm-misc-next-fixes for 4.16, thx for your patch. >>> >>> Thanks! >>> >>>> Aside: Still don't want commit rights? :-) >>> >>> I think I'm fine without. While I do tend to have a backlog on DRM >>> patches that I'd >>> like to get merged, they are generally of the kind that I should not >>> apply myself >>> without the maintainer being involved in some form, and then they can commit >>> it themselves. >> >> Commit rights isn't for pushing unreviewed stuff (our scripts will >> remind you of that if you try). But you could just volunteer someone >> to review the entire pile and then push it, instead of nagging every >> single slacking maintainer individually. > > I understand, but I could also just nag someone to review and apply > the patches, right? Or do the committer and reviewer also need to > be separate people? Among author, committer and ackers/reviewers we just insist on 2 different people. So nagging works too, if you don't find that frustrating. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch