Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp894300ima; Wed, 6 Feb 2019 10:03:18 -0800 (PST) X-Google-Smtp-Source: AHgI3IbDxl3s81VwEVmDrgB9c9BP4eW1ZHcf8EX6f22AF/JaRL8sRtbwybXFUr9uzJWuIfvz2IFf X-Received: by 2002:a17:902:ec06:: with SMTP id cy6mr11672879plb.11.1549476198868; Wed, 06 Feb 2019 10:03:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549476198; cv=none; d=google.com; s=arc-20160816; b=YFmc3vctCoxzDiv0stWRCrh8VvLJfbzQ+78MP9j2MoxP/b86BJDYi98wFamSymcp2Z ALUI+9/FvHD7slVtc48p9Xuh4XttImUcymvHnVlOSYF4BdbOUfdEWzkNCUbUqFHlaxNu fzyoHs1sND83sgKOsHN1JoPA6xg6Qg0jpO3slsU2knSOilnYTOy6aqSgpxj8q32EuW1e XPKV90SytcuDlJzBUK9A8o93HB63aZ4OVZvolhVspN8HpusRTWpbcLKRSBhWCbwDolnU 371sLmrEtUYTTSmNQLIdhqJ9S4081oIUOuDUWCJBa0G9kHPzGxaKxZC67atRtfohekFO XKJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=gqWiayW2le+Xx8pthLXfFQCE21oXa8z+EtXjfEzXj0Y=; b=NzaqROT5OZS1my1qVAiOEDS8HomJADnZDxh+W88P2lWLAr843kVEh9xo/zDyDvChO7 2E6RS7MyNM/Bg8T7U3/ffWH9P+0gRgEZB4RvUyU76mx85+99FfUakWzvuc6C+7ogMvSn 8VdNEk0eD0w9xqAMwlqA2iV8jCqKQa/Cl8vweROYHXK88m8Youi1mZ73knP9bvjZZYnW /gdUolpn33aW0BRIpH+VAWBjifnRhrSKNkiV2GkXGF8n2JCWkp5wTUf9puMkoDU9g705 qjDz6E8mnUEAMc7+6IaWR/NWAxcFW7wgTxPsKJgWioOyw0SOpq+VH2FMxO2tbWS0lSCU o5+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VqtxMOSV; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1si6668705pfi.286.2019.02.06.10.02.55; Wed, 06 Feb 2019 10:03:18 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=VqtxMOSV; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730153AbfBFRhL (ORCPT + 99 others); Wed, 6 Feb 2019 12:37:11 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:46931 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730067AbfBFRhI (ORCPT ); Wed, 6 Feb 2019 12:37:08 -0500 Received: by mail-pf1-f195.google.com with SMTP id c73so3380332pfe.13 for ; Wed, 06 Feb 2019 09:37:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gqWiayW2le+Xx8pthLXfFQCE21oXa8z+EtXjfEzXj0Y=; b=VqtxMOSVQyVcKHoPULoH933xS9sV7zT5p0AkH7jPWIr0qFHL6DRLIJu0tOJzEfvizs 1xJaGvxIHNEAyMMKADuqM73FPkRec4vausZWkwp0dSJokwaQ0b64f0hjJTsQFCOOIW+K omBgesh2mPW7CpRqCI7i3H9Skvte1xV5/zmAla0xIW0bwtMcFGYmzMB2GYas9Ri9KdXC 85drCSc8Rl0L5xbvI2zCQgJxikSadhloePHMURwJHKM6PMTErdxOP1siucGaM47H4prO dT5nDVtxDMxExPjjoIbvWITcJpw0+KGVXDiU2UhY5oRqLaGOXotkfu2Zv0NSA1sXM3Ax 2AWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gqWiayW2le+Xx8pthLXfFQCE21oXa8z+EtXjfEzXj0Y=; b=GR3FARIzBK7wXjHh8upD4sbL8+RTp/SEpib21MfqYzc0dz10jew2IpHmO+niJGFaLk HtRwah354Enst3v3ulBXgkZ9G4WvT03RcLU+aWDGnwHizUcA6o7pioI1Xx+TiLptgcG7 cN2QKxnzGOaUvSpaNRrm3mH9Sa4Lav9T5A4pd02JZ98P+4tG/WNXjDf19Fnnua3Y2bow kM4v3hQRotZRXWt0EJHLGmmUxf+dMPwuaP7lPB7UFjmLBB0H9m7PGrp1DiL3r7EmEA/5 TVPctLx12bb4TqTT5j6yzUWFP8vk8iOKXdEvCABGUPlZeXml0xc7r14jsK3JDSqIxwV0 46jg== X-Gm-Message-State: AHQUAuYYvaVOP3Ebv0R6NBmb7TC7mlQwgj6bWnI9L8xg4YKsHZIoQunF djsGDGc/akoChRvbsvxaQ+xy2/SiBlNwDddXOvsX0g== X-Received: by 2002:a63:bf0b:: with SMTP id v11mr10849848pgf.302.1549474627011; Wed, 06 Feb 2019 09:37:07 -0800 (PST) MIME-Version: 1.0 References: <20190201210853.244043-1-jflat@chromium.org> <20190206164528.GA8925@archlinux-ryzen> In-Reply-To: From: Nick Desaulniers Date: Wed, 6 Feb 2019 09:36:55 -0800 Message-ID: Subject: Re: [PATCH] kbuild, LLVMLinux: Don't suppress format warnings To: Jon Flatley Cc: Nathan Chancellor , Masahiro Yamada , Linux Kbuild mailing list , Linux Kernel Mailing List , Michal Marek Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 6, 2019 at 9:32 AM Jon Flatley wrote: > > On Wed, Feb 6, 2019 at 8:45 AM Nathan Chancellor > wrote: > > > > On Tue, Feb 05, 2019 at 05:26:05PM +0900, Masahiro Yamada wrote: > > > On Sat, Feb 2, 2019 at 6:10 AM wrote: > > > > > > > > From: Jon Flatley > > > > > > > > gcc produces format warnings that clang suppresses. To keep behavior > > > > consistent between gcc and clang, don't suppress format warnings in > > > > clang. > > > > > > > > Signed-off-by: Jon Flatley > > > > --- > > > > > > Applied to linux-kbuild. > > > Thanks. > > > > > > > > > > Hi Jon and Masahiro, > > > > Just as a heads up, this introduces a ton of warnings (duh). Isn't the > > typical plan behind turning on warnings that were disabled to build with > > 'W=', fix them all, then turn them on so as not to pollute the build? > > > > Log file: https://gist.github.com/443db156e56cd3c0f6b21d9d77728d80 Oh boy, that's a lot. Too many to fix quickly IMO. > > > > Note a big chunk of them come from one scnprintf call in > > include/linux/usb/wusb.h but still, there are many other warnings that > > make quite a bit of noise. Some seem relatively easy to fix, which I > > suppose I will try to tackle soon. > > > > Thanks, > > Nathan > > > > Hi Nathan, > > This was definitely not my intention. > I noticed the added warnings this morning and was considering calling > for a revert on this patch. > > The intent was to match the behavior of gcc, as it has -Wformat enabled. > It was rather naive of me to assume the behavior of -Wformat would be > the same in both gcc and clang. > Indeed, it seems gcc is more permissive about what format > substitutions it allows. > > For example passing int to the "%hu" format specifier is fine in gcc > under -Wformat but produces a warning in clang. > Maybe this was the motivation for adding -Wno-format to clang in the > first place. Sorry, I'm late to this thread. What is it reverting; who authored the original patch? Was it mka@chromium.org? > This difference is puzzling to me, and I wonder if it's by design. Probably; internally let's sync up with the Clang devs to understand this difference more. > > Considering the whole point of this patch was to sync up this behavior > between gcc and clang I am OK with reverting this. Is this patch in -next, or has it already hit mainline? I think it's better to revert, then start upstreaming fixes, then re-land it once we're warning free. -- Thanks, ~Nick Desaulniers