Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp43313ybe; Wed, 4 Sep 2019 14:48:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZx1CrYipzE5ZN1UXCEBo64HtEw6Bsdq5+EKiurOvZ6SDMwlAEfcQsvqjVNhDIUO++J1xO X-Received: by 2002:a17:902:830c:: with SMTP id bd12mr43817024plb.237.1567633704887; Wed, 04 Sep 2019 14:48:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567633704; cv=none; d=google.com; s=arc-20160816; b=snMykZFpr4E7wDqIx7+gCFqwUkPdfoakyvJgwN0RGCit/c8PcPNdV9VC6ILVwQOsqx LdpjRbPKvfNGk5JR3rsut1J9Oq8Ghi73FcTbPQ+E8BlUpTBiAbkXbw+VgRShjiY3L9O6 tydUboixcoo2DXKZ7qsfIunUxMEusvzHDCbTb1X+l1dqwvqx1g61a8ToOeCDX+fy/+qI Vm+3XaomLCEiOUK9pIe+ul8nJRsEKygKLR+HfZ1f4Pm2RUPCF3JPpR0f0GJxvQEMFqtz ZHKj7EbLJJYVdqesnlUNoGrrNK/LwxO6dVw4zH/YdSsfLG7utyUnrPhdLSnKUrdMjqH6 ttvg== 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; bh=QM9AadYfJ62wO0eCEQsbjms/00BVZw1wT6ODRgunvt0=; b=eCdRYf8v1Gdr47uNQrWuxEC8Qozy6avckRdK2Ez/lmDnhoOBfhWqRlO7Ji9F/dvuxg LFT1obK7DDAkVVo3JcV8ZliiKqs8lDcbPops4ROulRkJU6+H1ZVILK2r7ah9H8f0bc1G aAdA6BEQ8ciVGnug5z7AwlDRGsgktgSIwf1Wd2yEvcQfkR5o7SsXK7/pojaZw1aGaSwc PSSqR4aijSw/cu6AhDaWz//ie6nYYX8VQz7YeM9ftT5nt1LTwUnco23NTSBbMSsiUXYc NNAeuxjKkGjdVvAqtqtqRw42MswsM7zFFOVo+xxrw36rPL6BlEGF5zkVIqbEhtrQ7gS2 JAAg== 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 cu10si247276pjb.16.2019.09.04.14.48.08; Wed, 04 Sep 2019 14:48:24 -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; 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 S1730334AbfIDVrD (ORCPT + 99 others); Wed, 4 Sep 2019 17:47:03 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:44462 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726495AbfIDVrD (ORCPT ); Wed, 4 Sep 2019 17:47:03 -0400 Received: by mail-qt1-f196.google.com with SMTP id u40so239722qth.11; Wed, 04 Sep 2019 14:47:02 -0700 (PDT) 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=QM9AadYfJ62wO0eCEQsbjms/00BVZw1wT6ODRgunvt0=; b=IJGVGogadgpjZhWI0stEMQoXwmG8ARyqYeRsdoxsjBZxBihmMiKGhwma8IZq5cQ4MY q/jIGzQiCDTVEnDPdD3qIk0ruPUQAc5NVEuVbyOaHkTog4736SuB+ixkKLlJZ1aLZMFu pVhkb0bqT+9D1mA7p5qTO0CPWVTqaGMZHD+Kkfrlg0t1HbV5AeWYWRTZ49JZ3FquvYew a3p7r9LbT8PqduHuSvUu40yNd/p+vBQP/ikEBCPSSlBAi30AukzIsSqmipa87y/XuCez ETv2fTpAWHdxORjhaf+ssdFZUI4eoTT3yflmF2WaijHHS9xJmLlTMUztsa5LhgkKFMpF 0xbw== X-Gm-Message-State: APjAAAW2KOj7j9CDuFWgUPK9XTczWvFDbFOxt+Jm+sHikC6TiN2Wl/8E bbLgKvv2km7s/mSNgKYqnfsEU7+W1uIyYBlRRjw= X-Received: by 2002:aed:2842:: with SMTP id r60mr281706qtd.142.1567633621974; Wed, 04 Sep 2019 14:47:01 -0700 (PDT) MIME-Version: 1.0 References: <20190831162555.31887-1-yamada.masahiro@socionext.com> In-Reply-To: <20190831162555.31887-1-yamada.masahiro@socionext.com> From: Arnd Bergmann Date: Wed, 4 Sep 2019 23:46:45 +0200 Message-ID: Subject: Re: [PATCH v3 1/2] kbuild: refactor scripts/Makefile.extrawarn To: Masahiro Yamada Cc: Linux Kbuild mailing list , Nick Desaulniers , Nathan Chancellor , Sedat Dilek , Michal Marek , clang-built-linux , "linux-kernel@vger.kernel.org" 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 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