Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1721034imu; Sat, 26 Jan 2019 09:10:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN7+TUB7a1MlVKBdpbFGc1Xu08y7ZjkgI/nMo1o2JtKN/s/Nki7+3wwFwClW1WkG3UDuCmiq X-Received: by 2002:a17:902:5588:: with SMTP id g8mr15695348pli.22.1548522628752; Sat, 26 Jan 2019 09:10:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548522628; cv=none; d=google.com; s=arc-20160816; b=rN4JKZX0sGRUAXAxr71hl5dQ5IwddAm2RGQKMnw+jccKPPu1NS4VbW4xow/ObiSKin /YygFiYBBDs17+ji4KGXg5gPPUfliMA/+A3KfEWLpEYaa3xbrsutM7quorttE8vsXxig rpATdzJ6CsJKqLEM1jnjruBgTzBFGdpqyf6p04g160LUg4uOyhKOLipKKalnU/6m31Iv +qThVzXCZ9B7hx0zYPDQCHQbLpb5ztNBIRlX4G7TWvas+vDa5iyurSsnlMz+9x6cw390 jGPExoSIidls2E25KjYroFiUjJjaJeYRYBz2KAZTISH0P96HLnhTtlxcHDMZcvc8Iesp D6EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version; bh=Hju2b7Z8mSmJp6IgiqY3qhyrU8rnyGL3EX9xUGdX2lA=; b=rid/A0mgBS9pddu2J/4yZNqcKGm78u6EXA20Bhbs8gqxHYMehdhF4fiZ9/jz6HDNgf EVjmvLXzsCk5jXSLYUaeZWJ/sUdAsR0loJmML4e0oIMzxiYdRUjwWFcGPI6xra6lCz2I ne3BtoZhpEvXottAeAz4lxdnmItZZ3Pdj7gMouI0i9EEvk3eoPf4+Pzp+moxVJsZdNAz kn8NN9PgdR0U1iCuJnqrlmP9YN7lBsQvHHAraUiRabN9tlDH1p5yLLpZFDHV9QZJflYI LQ0CzhMMuPGMEDQ6R5BXIG8zuZ7HISTYBP2ecoUFdEkkJWLLaYPwF3MZTB7weng4nFkp Y8NA== ARC-Authentication-Results: i=1; mx.google.com; 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 y11si28746748plg.236.2019.01.26.09.10.13; Sat, 26 Jan 2019 09:10:28 -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; 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 S1726291AbfAZRJW convert rfc822-to-8bit (ORCPT + 99 others); Sat, 26 Jan 2019 12:09:22 -0500 Received: from mail.fireflyinternet.com ([109.228.58.192]:61579 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726070AbfAZRJV (ORCPT ); Sat, 26 Jan 2019 12:09:21 -0500 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from localhost (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP (TLS) id 15361170-1500050 for multiple; Sat, 26 Jan 2019 17:09:16 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Nathan Chancellor , Nick Desaulniers From: Chris Wilson In-Reply-To: <20190126075749.GA30117@archlinux-ryzen> Cc: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, LKML , Matthias Kaehlcke References: <20190126071122.24557-1-natechancellor@gmail.com> <20190126075749.GA30117@archlinux-ryzen> Message-ID: <154852255129.15238.871669857659377262@skylake-alporthouse-com> User-Agent: alot/0.6 Subject: Re: [PATCH v2] drm/i915: Disable -Wuninitialized Date: Sat, 26 Jan 2019 17:09:11 +0000 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Nathan Chancellor (2019-01-26 07:57:49) > On Fri, Jan 25, 2019 at 11:34:19PM -0800, Nick Desaulniers wrote: > > On Fri, Jan 25, 2019 at 11:13 PM Nathan Chancellor > > wrote: > > > > > > This warning is disabled by default in scripts/Makefile.extrawarn when > > > W= is not provided but this Makefile adds -Wall after this warning is > > > disabled so it shows up in the build when it shouldn't: > > > > > > In file included from drivers/gpu/drm/i915/intel_breadcrumbs.c:895: > > > drivers/gpu/drm/i915/selftests/intel_breadcrumbs.c:350:34: error: > > > variable 'wq' is uninitialized when used within its own initialization > > > [-Werror,-Wuninitialized] > > > DECLARE_WAIT_QUEUE_HEAD_ONSTACK(wq); > > > ^~ > > > ./include/linux/wait.h:74:63: note: expanded from macro > > > 'DECLARE_WAIT_QUEUE_HEAD_ONSTACK' > > > struct wait_queue_head name = __WAIT_QUEUE_HEAD_INIT_ONSTACK(name) > > > ~~~~ ^~~~ > > > ./include/linux/wait.h:72:33: note: expanded from macro > > > '__WAIT_QUEUE_HEAD_INIT_ONSTACK' > > > ({ init_waitqueue_head(&name); name; }) > > > ^~~~ > > > 1 error generated. > > > > > > Explicitly disable the warning like commit 46e2068081e9 ("drm/i915: > > > Disable some extra clang warnings"). > > > > > > Link: https://github.com/ClangBuiltLinux/linux/issues/220 > > > Signed-off-by: Nathan Chancellor > > > > Reviewed-by: Nick Desaulniers > > > > probably could give Chris Wilson the suggested by tag. > > https://lore.kernel.org/lkml/154513398652.1108.7150969916024071452@skylake-alporthouse-com/ > > > > Ugh you're right, completely slipped my mind. > > Suggested-by: Chris Wilson Ignorance is bliss. Applied to dinq, thanks! -Chris