Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6669381pxb; Wed, 17 Feb 2021 10:10:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPluVOMEkFQT2XpbYxuat6reBMzMDMT02ptSl7ji2MUacAZPezIVSU16P3OOVtlAK/DNPq X-Received: by 2002:a17:906:7d4f:: with SMTP id l15mr194430ejp.95.1613585436435; Wed, 17 Feb 2021 10:10:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613585436; cv=none; d=google.com; s=arc-20160816; b=LYQfhdjH3tKhyAgEgHfGsrYINTYEJV5lKXcBU2lj/S5AwjxoJCL+wATS1jSw1luIiT AYjE8Hp7csuXhDSje+5GeEhA7YexjTQJlhje633bsORt79XL0C/1QtMAtYRWNqeLTntL la8Q7rIs/qEUEbTsAmu5qC23p6tknskXXtYqZOWpD0TQDDPv0MgbHeXjdfoTTzu/VdMh +sZvPb0P+JJTaeBaEZsLsOO4gvY6YxC6j67bp74RNGUbDb0y42Q1E59JyRxj7XSEDIso PWlPC5gURDPFFMRY9wMtKIHRZRQbOXQozLSbllvMG2GH94eyNeFQJf6Z0kRgJaTBHqqv ykog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version; bh=Lb9vQoLpgBBtH8GCjAYsjtjH6b/uPEBYktF8bHSzla8=; b=DE9IhcWIve9z3XURmBrsFSg6nvnZ0WAkaZwGFav9yKM5qwqDB8AqcOPx0Snl78F54U rjXKaF+YC9DmOP9dftzZQk4pCLuxBNI+3mcESzdo8AKOS/uqWTLq9Es2W9P9S8tdh8P/ 0a0E8busFLKkNifC0pwEJlGD2BlriV//jGQagtIosrMLLk0cdFdlHAWpnG9SionzK6gd C5hrnub/7X5ZzZOtz1ItkkUf0zAQFGwaIv0YXbNlDwJgPpUC64ciOWHySjUXKPL1yDYM NAMcDAC9/pEZjS1Lz9Tmwh+FwhLSjhI28CoAi3VkMm6cjdJqkYRag9TisPeY4Y8v6trq 7Wjw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m3si1823843edq.484.2021.02.17.10.10.11; Wed, 17 Feb 2021 10:10:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233240AbhBQOOx convert rfc822-to-8bit (ORCPT + 99 others); Wed, 17 Feb 2021 09:14:53 -0500 Received: from mail.fireflyinternet.com ([109.228.58.192]:56928 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232371AbhBQOOw (ORCPT ); Wed, 17 Feb 2021 09:14:52 -0500 X-Greylist: delayed 1027 seconds by postgrey-1.27 at vger.kernel.org; Wed, 17 Feb 2021 09:14:51 EST X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.69.177; Received: from localhost (unverified [78.156.69.177]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP (TLS) id 23891380-1500050 for multiple; Wed, 17 Feb 2021 13:56:50 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT In-Reply-To: <20210216212953.24458-1-nathan@kernel.org> References: <20210216212953.24458-1-nathan@kernel.org> Subject: Re: [PATCH] drm/i915: Enable -Wuninitialized From: Chris Wilson Cc: Arnd Bergmann , intel-gfx@lists.freedesktop.org, Nick Desaulniers , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Nathan Chancellor , clang-built-linux@googlegroups.com To: Jani Nikula , Joonas Lahtinen , Nathan Chancellor , Rodrigo Vivi Date: Wed, 17 Feb 2021 13:56:49 +0000 Message-ID: <161357020959.15107.941362709800379680@build.alporthouse.com> User-Agent: alot/0.9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Nathan Chancellor (2021-02-16 21:29:54) > -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 make CC=clang-11 now compiles cleanly for me as well, Reviewed-by: Chris Wilson -Chris