Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6010750pxb; Tue, 16 Feb 2021 13:32:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyu7HvvTPJNAdaAXz1tPWPOHsxaD2Whb9jj9PRn892sXHo87ltb/xkEv7c4o2HWC6T6RgNp X-Received: by 2002:a17:907:75c6:: with SMTP id jl6mr21749505ejc.243.1613511127278; Tue, 16 Feb 2021 13:32:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613511127; cv=none; d=google.com; s=arc-20160816; b=qq7MWt2NiJHkjq/JjBJ9zPpov0aUukSdzJf0gY2VvRbemRRZy4MrAx6zoSeZ5MXXj8 BpPw0hOJe65yGRTZSflrErPEJ+UB2VV33akvpUOzQfS9VlCD1aRAf5l2Jk0f7ukFxhzA vJw0h+xLuGLvCVF7Y90gma7UwgBiBK3dNERwwBcePZkgM/pqKsYGlL1AsvPOxx6hjasL mXgkDVcp74JolTu97n1ruQDB6JTUucRESJwh5parZFFiGPxGZjOprxIReQBbCTFVIOdV oHbLmqHVUxvEayOC+KrpMJDyk1PVI9H4sYj5lgWC8iJgmA+ye/gRnMRwz1qWOcphQgN/ zRSA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=cSq2izbMni/XKti+HwO566EHqEegU5pYPkQsy8CyutI=; b=VkyAs4O5YkmbP1eNVR7UedgGacJlSeueJ077wn0FIu1PaQWWhKiRiSqMzAm9ea5gPv eHjyEAq625Y2SDUxeaxe2I264EX144zoEE8BYky5CL+OvIslsYgqBaXMohph40BrLDvF MUb6MR86nrzqYUG72Hz+Ie0m9tXpEaSzDPRVEDyx34nknI+smWfLpfiwhDVyxM+ysIgO mCN0/fzNJrWYiytmw/0TqzSuYM5iqiM1DeWL1stddhO5jxvS1kvMOW8bbFOo5K1et8zt aSey+HE4csf1yASdj3TU774mqXxASZ9VPpvdvQ54CumTJsbF6zazGUyREmkMayCS/O1E JYXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Ru/chHN9"; 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 a1si5798859eds.208.2021.02.16.13.31.42; Tue, 16 Feb 2021 13:32:07 -0800 (PST) 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="Ru/chHN9"; 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 S230282AbhBPVbN (ORCPT + 99 others); Tue, 16 Feb 2021 16:31:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:42860 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230265AbhBPVbL (ORCPT ); Tue, 16 Feb 2021 16:31:11 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id F211264D99; Tue, 16 Feb 2021 21:30:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613511031; bh=uwBWkNHGck9kFBqA0+H8/eT9Jc5XAGfEFx3Kba3gL4k=; h=From:To:Cc:Subject:Date:From; b=Ru/chHN9ndSQZRU6kcPNpf0W0XEdZm3ESkkB7+Rme8xma3/EdjnB48g/YGdMRuH26 j41sevdpq56S6D1FcUiqUe587rJeGLNYIRpBkq4hqxMWjaE9Nl1B+l8gqbJf5Dbv0Y X5Cf2Gi7bJ+i1AgZ8b3eEwH9ubV/XjpHQMoCQLmsGilr1moNIaV1RqMOQ9aL356hxi 0pjTYRxkZjXDSEi9ko3Lp3vor5250L1ucr7rx9ykXonMGZ3PI+0x62A99qUdTQ2rmA ypMWNh9Rtv/fIIaqI0hdt3a5ykleMBdQDvnHOFA1H0amz8tCtnF0fJldfMnmomP8oI qIzSMOFmaTXVw== From: Nathan Chancellor To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi Cc: Nick Desaulniers , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Nathan Chancellor , Arnd Bergmann Subject: [PATCH] drm/i915: Enable -Wuninitialized Date: Tue, 16 Feb 2021 14:29:54 -0700 Message-Id: <20210216212953.24458-1-nathan@kernel.org> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org -Wunintialized was disabled in commit c5627461490e ("drm/i915: Disable -Wuninitialized") because there were two warnings that were false positives. The first was due to DECLARE_WAIT_QUEUE_HEAD_ONSTACK, which was fixed in LLVM 9.0.0. The second was in busywait_stop, which was fixed in LLVM 10.0.0 (issue 415). The kernel's minimum version for LLVM is 10.0.1 so this warning can be safely enabled, where it has already caught a couple bugs. Link: https://github.com/ClangBuiltLinux/linux/issues/220 Link: https://github.com/ClangBuiltLinux/linux/issues/415 Link: https://github.com/ClangBuiltLinux/linux/issues/499 Link: https://github.com/llvm/llvm-project/commit/2e040398f8d691cc378c1abb098824ff49f3f28f Link: https://github.com/llvm/llvm-project/commit/c667cdc850c2aa821ffeedbc08c24bc985c59edd Fixes: c5627461490e ("drm/i915: Disable -Wuninitialized") References: 2ea4a7ba9bf6 ("drm/i915/gt: Avoid uninitialized use of rpcurupei in frequency_show") References: 2034c2129bc4 ("drm/i915/display: Ensure that ret is always initialized in icl_combo_phy_verify_state") Reported-by: Arnd Bergmann 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 6d9e81ea67f4..60b60204004f 100644 --- a/drivers/gpu/drm/i915/Makefile +++ b/drivers/gpu/drm/i915/Makefile @@ -21,7 +21,6 @@ subdir-ccflags-y += $(call cc-disable-warning, unused-but-set-variable) 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, uninitialized) subdir-ccflags-y += $(call cc-disable-warning, frame-address) subdir-ccflags-$(CONFIG_DRM_I915_WERROR) += -Werror base-commit: f40ddce88593482919761f74910f42f4b84c004b -- 2.30.1