Received: by 10.192.165.148 with SMTP id m20csp4143404imm; Mon, 30 Apr 2018 12:33:53 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoqogGu2pRZdXalcJd+I1Z7HHVrCh4j4s791vqKBO4CCKjoRSN7/losr15AXpV8gHUbVOQR X-Received: by 2002:a17:902:9890:: with SMTP id s16-v6mr13635386plp.132.1525116833365; Mon, 30 Apr 2018 12:33:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525116833; cv=none; d=google.com; s=arc-20160816; b=yY7Zu15JLxzTcyhxy27q6WlE43m/ZXhKrTv33Wi6mpa0mFkwTfaA7S6BusvcAULOg/ HyVyLag/np1ONREgGCbkKcLmUqI06WyWi+8ATYqKSYnkQ8+NR71njUuynDgT3heBpDtq w5VHNheQK0aQwfcLyC6BHHO7o80wrFXlngJTtIlZ9bhtLJUCzQKgUXI0DDmApMbzj1mY mVDqdDwVyDHwbPw0VSPT7VFWcWRE+Lzz4I1LJUKLhlRyzjk2xGOWGHk59OYH1B1X5n5q AT7okZkDj2J4CSsHIKxqVNVf4q4Wu2GuiepYFc2kJ044DpCxcnXfuXYfKnJR1W70vim5 fjKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=pTPiOOJd2J2LhNP9wdR88AJFlSG5qzs44Crg1/hDyF8=; b=QpiWM6Ou+2a2Sk6lwbbmS6z0gRVR5RmkUtK5xwzbQV4LTM4rIbFX8dRDQtSCmuSYvg w23limyI1A456o2dwMvkY3EglhVDhrvl9RMzFeQdpoWjWbTUJAmk9y4RN5pRKP1oBHP+ gtzZRg9FDGakV7JZ6ZENc5YSjU5Nq214RRYJTEIFpJCFRGkGh7vJet22ZG+wIBHkpPwO bidolfAhFf9zfNO2OfKg535QbCz0Y3PDDgiNfSMbX87GDxkfT5dDeb4DZNlNwrF2lXn4 qQxQqWV1RrI2TOmVuOD/a44S3VV3bYWdpqGOwnN2Q9hAMCpks7GoflwHOYFP41R/B+am oY7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XpWpFyjH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b89-v6si7916531plb.262.2018.04.30.12.33.39; Mon, 30 Apr 2018 12:33:53 -0700 (PDT) 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; dkim=pass header.i=@chromium.org header.s=google header.b=XpWpFyjH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756525AbeD3TbY (ORCPT + 99 others); Mon, 30 Apr 2018 15:31:24 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:38882 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755890AbeD3TbV (ORCPT ); Mon, 30 Apr 2018 15:31:21 -0400 Received: by mail-pg0-f66.google.com with SMTP id n9-v6so6944481pgq.5 for ; Mon, 30 Apr 2018 12:31:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=pTPiOOJd2J2LhNP9wdR88AJFlSG5qzs44Crg1/hDyF8=; b=XpWpFyjHcXFX0JFOGxdMNDuuaQ72wHzRJKSuBVSxDW16fomaa0HI8drD+JlCx3z69E 7akvkTdFgK81NJiOYX3Cd/Sd9grMDWRmRjoJLjTFm7hytVEv92GU06cu2g3Kv2P9OK3J 2GMoYsaAy8RoDmDLmSevxqidsr82d+MebKwaI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=pTPiOOJd2J2LhNP9wdR88AJFlSG5qzs44Crg1/hDyF8=; b=aTc7CRIk7oaeMV57KbC9c53wrjTVDojvm9chVbjAgntQv1tfFGwDdqI1oFIvJAJs1J 8Nb+Z0KuEb06/J755rARxAWGVarK1t5IaytPDbAXj68F9HVFcagJzolv8vR9xtQIieSH sonYLtt4PZB2bIPpvFohRzzi5dv0hgsfK8uG90nQ+JpzTG9wB4QwDu7snuHqjB4oz0pN vn9g/7yja6CkZzqJbJ31fktsN2GMY0ogKrI9GDpbrTbDBBILZybfF2VdPaVXLn0yE6Wt /vCsRFty2PHdS2gm+BY54MScnHKXVldPm479EPDEW5xF6A+U/wQ13dN1tRzNLPQeFzLK 4LSQ== X-Gm-Message-State: ALQs6tDGNHWZF8s79rdd+MggaapFixiKktakbB0DGSb1jEM+Wol+YkCn E4L6vj/VXVXxiIOahjnZ2gpEdg== X-Received: by 2002:a17:902:b40f:: with SMTP id x15-v6mr13015492plr.167.1525116681365; Mon, 30 Apr 2018 12:31:21 -0700 (PDT) Received: from localhost ([2620:0:1000:1501:8e2d:4727:1211:622]) by smtp.gmail.com with ESMTPSA id v187sm16583824pfv.21.2018.04.30.12.31.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 12:31:20 -0700 (PDT) Date: Mon, 30 Apr 2018 12:31:19 -0700 From: Matthias Kaehlcke To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Guenter Roeck Subject: Re: [PATCH v2] drm/i915: Disable some extra clang warnings Message-ID: <20180430193119.GB133494@google.com> References: <20180319191451.83910-1-mka@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180319191451.83910-1-mka@chromium.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 19, 2018 at 12:14:51PM -0700, Matthias Kaehlcke wrote: > Commit 39bf4de89ff7 ("drm/i915: Add -Wall -Wextra to our build, set > warnings to full") enabled extra warnings for i915 to spot possible > bugs in new code, and then disabled a subset of these warnings to keep > the current code building without warnings (with gcc). Enabling the > extra warnings also enabled some additional clang-only warnings, as a > result building i915 with clang currently is extremely noisy. For now > also disable the clang warnings sign-compare, sometimes-uninitialized, > unneeded-internal-declaration and initializer-overrides. If desired > they can be re-enabled after the code has been fixed. > > Fixes: 39bf4de89ff7 ("drm/i915: Add -Wall -Wextra to our build, set > warnings to full") > Signed-off-by: Matthias Kaehlcke > --- > Changes in v2: > - rebased on drm-tip > - added comment indicating that disabled warnings are clang warnings > > drivers/gpu/drm/i915/Makefile | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/gpu/drm/i915/Makefile b/drivers/gpu/drm/i915/Makefile > index 4eee91a3a236..9717c037b582 100644 > --- a/drivers/gpu/drm/i915/Makefile > +++ b/drivers/gpu/drm/i915/Makefile > @@ -18,6 +18,11 @@ subdir-ccflags-y += $(call cc-disable-warning, type-limits) > subdir-ccflags-y += $(call cc-disable-warning, missing-field-initializers) > subdir-ccflags-y += $(call cc-disable-warning, implicit-fallthrough) > 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, unneeded-internal-declaration) > +subdir-ccflags-y += $(call cc-disable-warning, initializer-overrides) > subdir-ccflags-$(CONFIG_DRM_I915_WERROR) += -Werror > > # Fine grained warnings disable Ping, it seems this one swept under the radar Thanks Matthias