Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp89020ybe; Wed, 4 Sep 2019 15:42:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMXsuwDFNyPkrkx7rTLeVL9wmPR30sR/oCeFA7PimevZqZOXrueb/B7XT7ZH0IsaWF4UJc X-Received: by 2002:a62:cf82:: with SMTP id b124mr44199pfg.159.1567636923864; Wed, 04 Sep 2019 15:42:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567636923; cv=none; d=google.com; s=arc-20160816; b=Ajm3BMZ75r3poKGEaXxP03viTw6xnOd6UtSsKzu4tKPXLEJ1qtonRruNsGAytpEHIz owjSGGn5FgVE0uBGvWHZD6ZgIfgygHCUhVmdjWC9MgAK6C1/3DuFadqeOnj9xlBCR4ln OOAGRd17gUqNbGPajK5QMpLLL+T4kD55BSbrI8tvDg2oENaFDDqxlh5poku582D1RRba a0dZ8uNk6ZZPNmRfwWuHtJu/HuIySbJDBoL5af6+Mm8BdC0aSVc//9NaBzy1vzuC9E8Q lWqgCMLKxVlU9TVByNUQjX3Li4fbJ7El7OhPys5UL0rCxRBLZ4GRNfgAnIm001Z/fJsE E54w== 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; bh=n42hMk5GEGKVgiWQ4Tr6YXAISJ/x8t5++qX9vnL5Xm0=; b=Oap8t4mS3CCybLdOfYw5b4rAcGvY12T629uBh5+mVph34NhxKfSmd2PihdPWsA+/5V KRlY2H3gMTQ7T4OjeFufy+0eZ2IwOW3kyLXe/kavCLWpHy3ytfZauXEZzDpagWYz7jBw ziOdtYPajVA46eUTvhITTFb65+mWjHUxUXRpN0q08eLuhSsrJ7YyjVc2faKR3A5Ql4gb yv7nZ2LLteYsjt9r9fQQjPGQTjBgpUQODVo/ya9yo1pJFdWh2ZicgvnvkrcZL11+jFTs RYnPzfA9oJlVGVlaXcx2tcS4AicKBoEuXSxpad2j1k7oJ+VQI+6RWw9NoVDK4JV9NImY k9ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=epQ6Hx9q; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a20si209543pls.406.2019.09.04.15.41.47; Wed, 04 Sep 2019 15:42:03 -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=@gmail.com header.s=20161025 header.b=epQ6Hx9q; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730222AbfIDWkz (ORCPT + 99 others); Wed, 4 Sep 2019 18:40:55 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45909 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725965AbfIDWky (ORCPT ); Wed, 4 Sep 2019 18:40:54 -0400 Received: by mail-wr1-f65.google.com with SMTP id l16so421830wrv.12; Wed, 04 Sep 2019 15:40:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=n42hMk5GEGKVgiWQ4Tr6YXAISJ/x8t5++qX9vnL5Xm0=; b=epQ6Hx9qyetHKAg1lFLlHRAHKCST6sypO0YqNN6ARKvZ8uzC9e2C86JE1ezB5FthCH dsqUbKNE24k3u1oqyZNl7OunM+DnbCe1/R1dVlEelJWnL+tZ0Fc4Zc47oDIxp/DdAm32 QopjtCpnRzMwYgzMRE0aT7XUqw+HIC/iGB1nui4LfAwBRFnDagcjAJwEMhMfhkVkp4Dm 8EnXByoTZelFlAXHGv9n/itJrU2kUybMaV8uOdEnaOMdRZUGhzvVhtXmrwA3xmrfTlx4 yNPN0YWzxtDbugDJqVWiGEBSMeRHc+gpUt/PbGxQdEbSEY0mH2HmTzP0J1KBdnD453jg hhZw== 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=n42hMk5GEGKVgiWQ4Tr6YXAISJ/x8t5++qX9vnL5Xm0=; b=jnxDwZzUC40P1+yRSFEcp8FSfD/WIYtQptzw1kRqlTXTMOlkfokG7vC0GnSVxovzsF dWeJmFsx/agKWof7vQwpeokY8fIsKHPRO36+S1Dz/DFW8LLmJ5wjM36svVU8UnRbH0+E eicuC47Mg36ViXQXCTm++gTeA5++c38y3/KondeLl20M1URJ69YRCj3gpCMAJJSU73f3 9urZYU46/s46tove7kztsWnp2z1qSgbZDcFj5qLSZInCy28vJaPAmTCzPYdxHVHm16J7 gpZtuAFt2JnKBwofE/f6lu3sST2l4XKsniwamEzcXDahF07MN4QA35pzI5N8SePaWp32 keLQ== X-Gm-Message-State: APjAAAVyhV7Au+ZU2fDfWamPRPy4gxBr1TCsOFbZpHVR196YL3zoF/v9 AjfCEXGjG60oPtkYnSNixl0= X-Received: by 2002:adf:e607:: with SMTP id p7mr42979wrm.230.1567636852627; Wed, 04 Sep 2019 15:40:52 -0700 (PDT) Received: from archlinux-threadripper ([2a01:4f8:222:2f1b::2]) by smtp.gmail.com with ESMTPSA id y3sm158912wrw.83.2019.09.04.15.40.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 15:40:52 -0700 (PDT) Date: Wed, 4 Sep 2019 15:40:50 -0700 From: Nathan Chancellor To: Arnd Bergmann Cc: Masahiro Yamada , Linux Kbuild mailing list , Nick Desaulniers , Sedat Dilek , Michal Marek , clang-built-linux , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 1/2] kbuild: refactor scripts/Makefile.extrawarn Message-ID: <20190904224050.GA82176@archlinux-threadripper> References: <20190831162555.31887-1-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 04, 2019 at 11:46:45PM +0200, Arnd Bergmann wrote: > On Sat, Aug 31, 2019 at 6:26 PM Masahiro Yamada > wrote: > > > +# Some diagnostics enabled by default are noisy. > > +# Suppress them by using -Wno... except for W=1. > > + > > ifdef CONFIG_CC_IS_CLANG > > KBUILD_CFLAGS += -Wno-initializer-overrides > > KBUILD_CFLAGS += -Wno-format > > KBUILD_CFLAGS += -Wno-sign-compare > > KBUILD_CFLAGS += -Wno-format-zero-length > > endif > > FWIW, I just found out I missed a bug that clang failed to warn about > because of the -Wno-format. Apparently gcc warns only about type > mismatches that result in incompatible calling conventions (e.g. > int vs int64_t) but not smaller types (int, short) that get converted to an > int anyway. Passing -Wno-format turns both off. > > Arnd Hi Arnd, This has been fixed in clang 10.0.0 but this areas has not been updated as nobody has sent a patch yet: https://github.com/ClangBuiltLinux/linux/issues/378#issuecomment-524411147 Cheers, Nathan