Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3122569pxb; Tue, 24 Aug 2021 15:59:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqExZ+XDb0JOz37yLsYNbX9uEVDSRhV5vjlz0eY6zTlgI623G08uv3j/tSEbYPmNYbKW4b X-Received: by 2002:a17:906:5384:: with SMTP id g4mr43619480ejo.27.1629845978562; Tue, 24 Aug 2021 15:59:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629845978; cv=none; d=google.com; s=arc-20160816; b=WwztAYLCSeHbHLcauYZ13k5NxnzGvdyPt0ql3B5QwcLs6K500/84ovvXWx+exBQryK nNy1SamtmUnOYB8ISQkxjuoaunRpTxPokHE39PKMXu6lpRpa6qobbHBs+xeVouZWnK2A R9BwWFeUgDMCmqig6rK6/lfCrQUwh30W3oaAfptDaGuMtacLsYBRXIy02YUh2wyZxv9T 3BpvP359BJUfKSeVbOxY6jQ7gGug9pcgaUy3USIhL8KMpC4/SGCQdwif9BBGd4MLMvFy zyKuldegfoWuyek6YqSH0tpRPYDERB/3NPzmLYfBQ4Y6vaUkLS03SNOinrXOxVqlHQzY 57AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=W/G4+lDZo7u7pQ7sr8BKP41YRcHUmpbZESsXcody5Vg=; b=Parnh/IIGdwODQMI0E4m/sCeM9yA85D2JdkU+fvqMsHKeND6epu5AeGNYJS0SQjYEq JG1PUEQFZWJgWVCV4OmA2paDSrQe7OQfnndy1hiy6fg4xF1lN6PGkyW0holAT4oyIjxM jlQH3xN+AVB/we9vCtnl6QNfOSVMMAIcwvyFzgZv0p2CFST9sCEakAEge4x1Cc7bEQCV RBtvM7u0kZsNr2UxwzBnT6saAUeUEZoG9cVuiByOOzMEZA8bMQjBoBRALgonNl7m4aze vqGZerp1K7B85X7uNlmiOH/iLVenbnB8QTCNDbchC4xn08cyw13PgkuVF5Hay9/uAkVj 4+ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PDnYE3Rq; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f17si844761edj.177.2021.08.24.15.59.15; Tue, 24 Aug 2021 15:59:38 -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=@kernel.org header.s=k20201202 header.b=PDnYE3Rq; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231842AbhHXWzk (ORCPT + 99 others); Tue, 24 Aug 2021 18:55:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:49244 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233400AbhHXWzh (ORCPT ); Tue, 24 Aug 2021 18:55:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A8F6561368; Tue, 24 Aug 2021 22:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629845693; bh=YMZVjnEuueEqT8Dgrliww3EzUw/B4Yz4C4XgwxetSfc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PDnYE3RqPH5egYvodseyZB8vFBQDMDOjywCoB5KoRCILSZSZ5POdOEn/fDVM42MUs 4SEyaEptsec2BPHiPBErABUdEP/YF4VUp6J0UvbSclxtziZLhNU/2OSEmDAVYdncYs NQuuczLWmv1UqhykGn1AjvrJsr1WDnDVtSnAmA0+io9g3wvIyvnx7T+4zHcwiNJO/G 8SMmCL/wBqg4DARfRiLiuEcA7pnE/5MTZHAaSnyVTNtvYBlSFuT4HL8+bvjrcQje/7 3yC9S9eb6GY0B+VQ8TXWNtYy4aqNBi8csKOx+1IrDYD7xCBkJcMiWIVZpA5YlHoobU LWeuzEDn3OM5g== From: Nathan Chancellor To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi Cc: Jason Ekstrand , =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= , Matthew Auld , "Michael J. Ruhl" , Nick Desaulniers , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, llvm@lists.linux.dev, Nathan Chancellor Subject: [PATCH 3/3] drm/i915: Enable -Wsometimes-uninitialized Date: Tue, 24 Aug 2021 15:54:27 -0700 Message-Id: <20210824225427.2065517-4-nathan@kernel.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210824225427.2065517-1-nathan@kernel.org> References: <20210824225427.2065517-1-nathan@kernel.org> MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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