Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1227736ybl; Wed, 28 Aug 2019 11:27:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvNjn5ymEnQWpcXEsEOF6LOxSVUdwtDLeQ9YW3bkgCeIOxivHib7RS4qthn+0Z6DviGW6O X-Received: by 2002:a17:902:20ec:: with SMTP id v41mr5603978plg.117.1567016849083; Wed, 28 Aug 2019 11:27:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567016849; cv=none; d=google.com; s=arc-20160816; b=e2lqTSwLtEs8XhnQnd6VFsEDjBfUI3G6jbsZ7Pz5b7XLMMST6fTDqwZEHY8rRCvp3C RiFzuhloFA65lT6WoXS1UEk+TB4Qrvbx+J2REqVjcMUiXTiFU9UU8FMmRS1cAX+QHRPF RzkZofHFUpL5+bCZgi6wyDR319rHx62SqGzg0XLCTMPCI+jiCOKqsVsfd58PMccRlYsV UtcgHCFyoQEj2wdhgdBDPiM6yqMN9lPShMt9f51zwToMhXSoDFRljqTj4wTmCZnleHp/ J/InicN0upsQiEnUCyD+o8GRVuPNJ6eke+hfL4wX67K4sCFkIKDjHUbf10SU7njFQuDc XCYw== 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=/2ELFCvPtWq7P/iBoFB+bDhTH6F6gZMcRs7pKSMkPZ0=; b=Bpabol2pBqgYgr363WT5v18Txm0Sj09qeTuKfZcJFfOgou4Hxatoc2gbLdMsaXXyqC 6DqPbCU5g2HavG6dadGtgadZJoLxMZ7epze118enHNaDEYlTmjHjfGKxUsj9GFsepPPr Nw2Lha5XiUEcHOvVJlPOQ8Dj7KAPqrNsDaz/b/VJ66ZfFRZyrPPmUwGomE6pqjzZnEAr DJeVSUBAC6CJgzSBWBkCnms/qncHRubIn7dHPn/It/XBMUn+dG8BxE5gmlGAxzErU0vq k8Hp9iXGF9UriwOei1y2FvvwaFQowYeecJvwXq5GBQUeecF+J4zKZGNfwAkrwl7UtJVU d9hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=WrZfzjuQ; 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 d8si2531675pla.206.2019.08.28.11.27.12; Wed, 28 Aug 2019 11:27:29 -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=@google.com header.s=20161025 header.b=WrZfzjuQ; 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 S1726805AbfH1S0V (ORCPT + 99 others); Wed, 28 Aug 2019 14:26:21 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:42615 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726554AbfH1S0U (ORCPT ); Wed, 28 Aug 2019 14:26:20 -0400 Received: by mail-pf1-f195.google.com with SMTP id i30so316184pfk.9 for ; Wed, 28 Aug 2019 11:26:20 -0700 (PDT) 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=/2ELFCvPtWq7P/iBoFB+bDhTH6F6gZMcRs7pKSMkPZ0=; b=WrZfzjuQAiJeyCbI6jHnj8D+AK+KMLOLl1eaVP4JgWwVLtgFI6iVBl8OFgwkGfopj1 XnLpMTHDNIci/IJ9m8znBva0rSgnEQ7GVHyIefiaQPdmIznyZCKl8Xc8ZuztfjSfin7+ xgiv6fhHWTpOuuzx57DiiF9XV4j2Udj36RqMUZgYj4Lm5rADTEicVClvrvxfPlxvznzz OxAe0zMf8oUKsjq8B6KtuXljFFO+I5tN8krSxj2FyLoe9Gorb8N5n66A4SYP9/bInsEO 0oEdsvRDuXfsyd6MVyvqD5ALJ37EAU1g70cdYKZ0TPREQp/FzJ27PI0YpzXhOChNP0/L Zjvg== 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=/2ELFCvPtWq7P/iBoFB+bDhTH6F6gZMcRs7pKSMkPZ0=; b=h71skfktWG91/iZUcjRwye3AIP5xJcq7SVblTJIZhujjuFDsqdbte0cnZEthEdS4mK FcZetaAYauSuM3L1Md8UrU0oTshH5f2dOGrTok0Uy7/ontFwHo2FLAC+I6NntO4AUK6H Z2YeO2UcAq52S0uxid8xyIVTQSTr+9WFcv5RfKbLz3laiGLTczokv2KxJUWTQbbmauTc lld+DIuaidu8O/3xTU/6/7zvrrwNqobNoUKdBu32A7A7yENZorCK9+a5deyEYzReOIG2 P8qx9mLuBjibTPNrqjWyJZmPhtInz8IJrNnWEci5JwMeeBJTsK3mDDZhifaslewdS/US fFfg== X-Gm-Message-State: APjAAAVdrg/WjY25iTVoeg0KysVf8QTipTX0eRa6TQdhd5j9vGXAPvgD 5RKJemEx6TbPXB0foNUpEHVfTsCJpH6B00ztThgAaQ== X-Received: by 2002:aa7:8085:: with SMTP id v5mr6354559pff.165.1567016779610; Wed, 28 Aug 2019 11:26:19 -0700 (PDT) MIME-Version: 1.0 References: <20190828055425.24765-1-yamada.masahiro@socionext.com> In-Reply-To: From: Nick Desaulniers Date: Wed, 28 Aug 2019 11:26:08 -0700 Message-ID: Subject: Re: [PATCH 1/2] kbuild: refactor scripts/Makefile.extrawarn To: Sedat Dilek Cc: Masahiro Yamada , Linux Kbuild mailing list , Nathan Chancellor , Miguel Ojeda , Arnd Bergmann , Michal Marek , Clang-Built-Linux ML , LKML 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, Aug 28, 2019 at 12:20 AM Sedat Dilek wrote: > > On Wed, Aug 28, 2019 at 7:55 AM Masahiro Yamada > wrote: > > > > Instead of the warning-[123] magic, let's accumulate compiler options > > to KBUILD_CFLAGS directly as the top Makefile does. I think this makes > > easier to understand what is going on in this file. > > > > This commit slightly changes the behavior, I think all of which are OK. > > > > [1] Currently, cc-option calls are needlessly evaluated. For example, > > warning-3 += $(call cc-option, -Wpacked-bitfield-compat) > > needs evaluating only when W=3, but it is actually evaluated for > > W=1, W=2 as well. With this commit, only relevant cc-option calls > > will be evaluated. This is a slight optimization. > > > > [2] Currently, unsupported level like W=4 is checked by: > > $(error W=$(KBUILD_ENABLE_EXTRA_GCC_CHECKS) is unknown) > > This will no longer be checked, but I do not think it is a big > > deal. > > > > Hi Masahiro Yamada, > > thanks for your patch series. > > If KBUILD_ENABLE_EXTRA_GCC_CHECKS does extra(-warning)-checks for GCC and Clang, > please rename the Kconfig into... > > KBUILD_ENABLE_EXTRA_CC_CHECKS > > ...or something similiar (and maybe with some notes in its Kconfig help-text?). I too would like to see that changed. -- Thanks, ~Nick Desaulniers