Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1511025ybl; Wed, 28 Aug 2019 16:11:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6r/qyzpByk8h1LXWrOTzSEzPiyfnxiayaVoST/Kvp/2G7tp10ReEM2gI4Huk9L4KSYnAB X-Received: by 2002:a62:144b:: with SMTP id 72mr7662959pfu.42.1567033908626; Wed, 28 Aug 2019 16:11:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567033908; cv=none; d=google.com; s=arc-20160816; b=PpvkfLPaflDJZJm6zKf2nPS86WYMzUeCPvI8tlQ5hNpRKUMA6sWvIPVc+iODaarI5n cQ9U+IGId+8fU9fZ8gVq8j8yXAp9dmGBE/OKN525P8cdcEk/9FKr6ZSnv6VCM8/nn8oO rrPqjZ387hmUj9ZGb0KSEyYA3U0U29LcTZ09KfFG6PLoQ9p2rP5jPgXzE6FTk/7Ppckk ++YB8GP/vv/TXPIGWwMKR0GmIkIqtajvivQfwB/Pl0FlLnmIyofwqHUopLrOGjQbLjOH KQVaa58IHJJbJcd6XCwa2aoQ/WuddTXUuUu6si8aBEcAGKNpNWukEZ25iC7jdsR/jvFP SN/w== 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=maM1ojqJifdUsFgge/qaHK4HvmJyTKAP1bwPNUVbauM=; b=zbN9xX72qxO+VZe7JRGyg145gKlga4fLAiLiskZSXOuQ+YskVhxvndxwoO5h4JI32G xVnS0mq2f1t8Rq7XQOjwSkOsfIe25TiX2rrtemSvPta2VAbn6bTNjCqRsStHehRSSjWu 328z/37l7BKHROsiilDkQzqvYIpN5wyplSpwPC0K6egcLjWtYLwYtaZswGdYRj136IJ3 XspkrFxejWEl2VZuQduGYT1HpvTQTBILgwpFNeeFpXGoaeEoNmhBdxYQmWvZkGzedF11 gkfjlZ0fHPDWtR3mOlfv6scm3/M3tPkAFR6eTPrHHGV/2gHSdhcnwKQUtla3+DcStJJP PTEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=CoqP6ZBW; 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 t31si296279plb.309.2019.08.28.16.11.32; Wed, 28 Aug 2019 16:11:48 -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=CoqP6ZBW; 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 S1727073AbfH1XK2 (ORCPT + 99 others); Wed, 28 Aug 2019 19:10:28 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:45145 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbfH1XK1 (ORCPT ); Wed, 28 Aug 2019 19:10:27 -0400 Received: by mail-pg1-f195.google.com with SMTP id o13so489691pgp.12 for ; Wed, 28 Aug 2019 16:10:27 -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=maM1ojqJifdUsFgge/qaHK4HvmJyTKAP1bwPNUVbauM=; b=CoqP6ZBWZexG4zx4P3Z0hyz5luNndnAM9uwV0BKqUA7PZ1es/9ehQ7pkOC9Go+IshW CigSOg+kriQ5Od71j4CaX4//YV5Trlou/0hEy2fiGNxK/QKo4DlXklacQ9Wc9IKHmQLo iA4i9I2koJCvIKWDBl2pTSEoab7WXzlePtTi0yZgaDYzB7TOPcqVfgAGkHk+qUlYJeB+ tIndUZw5HTHZma1oGCrm/PTQJ/b/Oc/5My+no7ip+eyrFw2nfYU5oZ4HpIad6l91XmU0 zl68nkzBTHHSAG03NR0a/jxI3amFj5IuUlAIHsq968yH+jkypJcMExGZ9j4Z7P1AfaJR oXbA== 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=maM1ojqJifdUsFgge/qaHK4HvmJyTKAP1bwPNUVbauM=; b=EL13EeVfi5/vZsnI2c76dleFocHvf2AxNK/H1WISlILdIWohykHMYLb4MA25IIT257 q2/oRqha4krJWrNZJGyn84gOmwDgdDS60XcROXPZTvqTKbMDfpioPU47OG5C3w+riI3U /R8jYInSINGsQ7bZy+CZxFfW3lpwsMdXzT6JjDD3/W0VQ7q4zrX+I1HsIZbKtgyOswky uZ53JOavckvo+3Cu+z7Dnt+qRl5vKOIvZLRoFzqDnteMdJB4hWIAryQmvTqFuuaB8Npw 0WdH2+neqTAiaGYvrxazAzpKIDOWrB8bgulwyku/Ecqrj9yNLBlOOKG+n4SyeptjPNFv CW+g== X-Gm-Message-State: APjAAAVvX/x7ZDzkjAkFvJ8qCeX7hgfrmUkAJ5CVl47LFIjFLDyo3E1X lB8PbENUJ6b0KkuO1+C36sEJz8miqZNQ92sRIkVb/A== X-Received: by 2002:aa7:984a:: with SMTP id n10mr7703356pfq.3.1567033826824; Wed, 28 Aug 2019 16:10:26 -0700 (PDT) MIME-Version: 1.0 References: <20190827103621.1073-1-yamada.masahiro@socionext.com> <20190827192811.GA24626@archlinux-threadripper> <20190827213447.GA26954@archlinux-threadripper> In-Reply-To: From: Nick Desaulniers Date: Wed, 28 Aug 2019 16:10:15 -0700 Message-ID: Subject: Re: [PATCH v2] kbuild: enable unused-function warnings for W= build with Clang To: Masahiro Yamada Cc: Nathan Chancellor , Linux Kbuild mailing list , Arnd Bergmann , Michal Marek , clang-built-linux , 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 Tue, Aug 27, 2019 at 7:58 PM Masahiro Yamada wrote: > On Wed, Aug 28, 2019 at 6:56 AM Nick Desaulniers > wrote: > > Masahiro, does your patch correctly make -Wunused-function work for > > clang at W=1? It looks like -Wunused gets added to warning-1, but > > then -Wno-unused-function gets added to KBUILD_CFLAGS after `warning` > > does. Will that work correctly? I'd imagine that at W=1, > > KBUILD_CFLAGS for clang will look like: > > ... -Wunused -Wno-unused-function ... > > which is probably not what we want? > > Hmm? > > -Wunused is added only when W=1. > > -Wno-unused-function is added only when W= was not passed. > > They do not happen at the same time. Acked-by: Nick Desaulniers -- Thanks, ~Nick Desaulniers