Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp768729pxb; Tue, 14 Sep 2021 08:20:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+fa9gh1+gU76Ne9ZhrkLphIN4nLkq0pWXRj8blvyeHyJld82QuHyMLOhqoFFGTViR4DH9 X-Received: by 2002:a2e:bb85:: with SMTP id y5mr16235406lje.207.1631632825132; Tue, 14 Sep 2021 08:20:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631632825; cv=none; d=google.com; s=arc-20160816; b=qPmULcU2Cvx4vfRPD6wga5WygHtZ6fH3lsdnCMhjbr013ZAwalbrN8nkpehmAGrkzI 8pyeuZlyfeYZibYJHZbD6ELj7TZrMa52sNkgPyxdlMIqmpff0j/n4Yit6wOE3T1btOWX Q3vQGE429NUz5E5N6vh7JnchwYVKZWfnX+3hUcPjH1X4n6t3RiHAGaVr0kjqCp6DJAXT 7Vzh8T4manRFHzDibLI+yVqTXXeUN0MzMR0B/uvCnGlHkpGQzxUMAg3KKIGWnHsD8ROP o8GBqrGQNry5sYi8jMCN/hyGGA7h2nRipBLLHIp1qRTxCwYLYRsna3jW9OxFtxDInaeQ LhDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ASAhUY+G41HZqeopdHM7aTSiw9njl3EyKHtj3rFVhDs=; b=ZSDb0OfDrkz2ewzjiTU0G01peSK4JrrCQqcF7URJQqr9oxl5VbKNwgMZVI6LnWeV/h X6V7EHoRzOsIAWsqBhnzNxoEBOFkNo29dP4Vfjy1v5n0/nW12HUA4eMyPrDHp+o4Ceqh E6rlzqVDWqrmqOl/Oxyir5kCpDPVoR7fN+vvfVATsvubXmxh16t86YkI4Sp1SplZd1pE wJlfs6mhZbNK4qhifjBOnf6LIDaNNPwQ97Vc1FiPN8b8Iw6gSOtDc6kavV5EiAfPJY3O XP7LJ3mkA6iyt6q4ghDMcfIPNb5/onvak7wu3haBW2bIFhE7wQjzChKEVI9ZK5WZuA5V MNrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ak1UeKaR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v192si13230800lfa.479.2021.09.14.08.19.53; Tue, 14 Sep 2021 08:20:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=ak1UeKaR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234286AbhINPTJ (ORCPT + 99 others); Tue, 14 Sep 2021 11:19:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233584AbhINPTH (ORCPT ); Tue, 14 Sep 2021 11:19:07 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2D17C061574 for ; Tue, 14 Sep 2021 08:17:49 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id r3so24604424ljc.4 for ; Tue, 14 Sep 2021 08:17:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ASAhUY+G41HZqeopdHM7aTSiw9njl3EyKHtj3rFVhDs=; b=ak1UeKaRxOfiClhnXWFlc5Tj5KPMuwNRFkYKCr7CwkblbA9Paw3cSpCmNNjhx8WlAR mQVYneNQpWpRsZWGMZ81ZIH34dZdZtDMUoN3cV1bET1XUla44MYMFwHm0OhiEQ8yDSmx qIaoPgDcted70DTDgGFCvmz8jNdMD5pdByWJCotfqt94eCEE9xwH05GjiwEKYbRedWR4 30qkyVGox3STWReT2o7u8OHwQAuOXe+zFCSrKHiFssbja0kfMIeSsjW2Sr2fq8/kTIQF +/vCVb4lldH/n0uweX+WPK3fJki6M57mqQNhADYjgGtODprzhcTxJXAhbuz6QZRBBdd7 OpfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ASAhUY+G41HZqeopdHM7aTSiw9njl3EyKHtj3rFVhDs=; b=LXeYhqnbRQEIlE7B1sF5hqpGJfngrX6v1DhFU4pmmNMVwdxKfeqDKb6wOrvAUyEZMp mTWnTzYwR4H8GcZcWULpO3sUy6t3b7Z55EESyPHLoSk6CEJFF3xL4Mx3OEM4mLa55jH8 uUzHVNLoqt2SBbyZNH85mam3YKMY8ADLsxk/iWUr5uprbkw2k4dyCm3pN8PnTklKcdlD C0kMwFlCAnBQa3lPR2J0jPUIpFm4/Ju96PU2RXwGXKdbpcMKj2S9jZlmuV7c8KxJeFve UGSrMK67s0QHfZLOILAgNN6RqJDfkYa6AxgQ/fSQJjUF8OEsvUwRy+MYD5qf1Xe6nusN HDKg== X-Gm-Message-State: AOAM532e0e50do3eAdFTlY64ith7TwAhsWCtd8LsaqYhyxGNp3GkwFIg kdyN4u6VaLzt38fM8+ZE9sToGfNKWo1EFj5h3lSJiQ== X-Received: by 2002:a2e:99da:: with SMTP id l26mr15293313ljj.339.1631632667834; Tue, 14 Sep 2021 08:17:47 -0700 (PDT) MIME-Version: 1.0 References: <20210824225427.2065517-1-nathan@kernel.org> <20210824225427.2065517-4-nathan@kernel.org> In-Reply-To: <20210824225427.2065517-4-nathan@kernel.org> From: Nick Desaulniers Date: Tue, 14 Sep 2021 08:17:36 -0700 Message-ID: Subject: Re: [PATCH 3/3] drm/i915: Enable -Wsometimes-uninitialized To: Nathan Chancellor Cc: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Jason Ekstrand , =?UTF-8?Q?Thomas_Hellstr=C3=B6m?= , Matthew Auld , "Michael J. Ruhl" , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 24, 2021 at 3:54 PM Nathan Chancellor wrote: > > This warning helps catch uninitialized variables. It should have been > enabled at the same time as commit b2423184ac33 ("drm/i915: Enable > -Wuninitialized") but I did not realize they were disabled separately. > Enable it now that i915 is clean so that it stays that way. > > Signed-off-by: Nathan Chancellor Thanks for the series! Reviewed-by: Nick Desaulniers > --- > drivers/gpu/drm/i915/Makefile | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/Makefile b/drivers/gpu/drm/i915/Makefile > index 642a5b5a1b81..335ba9f43d8f 100644 > --- a/drivers/gpu/drm/i915/Makefile > +++ b/drivers/gpu/drm/i915/Makefile > @@ -19,7 +19,6 @@ subdir-ccflags-y += $(call cc-disable-warning, missing-field-initializers) > subdir-ccflags-y += $(call cc-disable-warning, unused-but-set-variable) > # clang warnings > subdir-ccflags-y += $(call cc-disable-warning, sign-compare) > -subdir-ccflags-y += $(call cc-disable-warning, sometimes-uninitialized) > subdir-ccflags-y += $(call cc-disable-warning, initializer-overrides) > subdir-ccflags-y += $(call cc-disable-warning, frame-address) > subdir-ccflags-$(CONFIG_DRM_I915_WERROR) += -Werror > -- > 2.33.0 > -- Thanks, ~Nick Desaulniers