From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D52F6C3A5A2 for ; Tue, 3 Sep 2019 15:39:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AA6722077B for ; Tue, 3 Sep 2019 15:39:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nifty.com header.i=@nifty.com header.b="LI2L8c7D" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729838AbfICPjs (ORCPT ); Tue, 3 Sep 2019 11:39:48 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:34429 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729589AbfICPjs (ORCPT ); Tue, 3 Sep 2019 11:39:48 -0400 Received: from mail-vs1-f46.google.com (mail-vs1-f46.google.com [209.85.217.46]) (authenticated) by conssluserg-06.nifty.com with ESMTP id x83Fdi8F009932; Wed, 4 Sep 2019 00:39:44 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com x83Fdi8F009932 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1567525185; bh=mNQ/8Q4lNQ2CgeCETQDXp73cvMbK+QmBj7K2vN48yOY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=LI2L8c7Dydp4FNoa/m04U8sBZr24ewfpewGxysI5dRM0Q/wT8MsnW2ZV6qhzRwp+j gGuYWjhJjWihsnF/VRI9u6ZyXy+gUn/uoQ3IVNBzkkpd0m/clEPWDBxfI2uL0Jw8x8 rgcwtNtORkx/8AJin3veS316ZNwM8FVCyjbPznMj95UuAVpl0DkxW5FvCe30G5ZsPZ /OStfgi/vOzcBTSACf3ut+SODJ03M+WUz6ne4Ag+1tQxdOJJpXgDQMSE9P+MiEJVZP +DjGcPdQJukty30ys0FswxjiLpPoR9X/T6o3ryQrcTY7PGaNAVSZQYEfJfHn13mL/E pn9Qz22/3Ckhw== X-Nifty-SrcIP: [209.85.217.46] Received: by mail-vs1-f46.google.com with SMTP id i128so11593816vsc.7; Tue, 03 Sep 2019 08:39:44 -0700 (PDT) X-Gm-Message-State: APjAAAVrAC9b5V34qQuXt4+WP8GqUpEW0oPG4KPx0LaOpgh1hBpvmjnS hNuRCVs5wxmSKOgq2Jks+Mvsj3BuGweXloH6Px8= X-Google-Smtp-Source: APXvYqxClUo4hmFiaBOaF3Bg7pczDjRMUbD9av9h9lJvgIWGJYlSIcpebE6uSVbl53YuUMcivb3JuT6HOYFTfBHcWQI= X-Received: by 2002:a67:f418:: with SMTP id p24mr1417399vsn.215.1567525183683; Tue, 03 Sep 2019 08:39:43 -0700 (PDT) MIME-Version: 1.0 References: <20190828055425.24765-1-yamada.masahiro@socionext.com> <20190828055425.24765-2-yamada.masahiro@socionext.com> <20190828182017.GB127646@archlinux-threadripper> In-Reply-To: From: Masahiro Yamada Date: Wed, 4 Sep 2019 00:39:07 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] kbuild: allow Clang to find unused static inline functions for W=1 build To: Sedat Dilek Cc: Nick Desaulniers , Nathan Chancellor , Linux Kbuild mailing list , Miguel Ojeda , Arnd Bergmann , Kees Cook , Luc Van Oostenryck , Michal Marek , Sven Schnelle , Xiaozhou Liu , 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 Fri, Aug 30, 2019 at 6:52 PM Sedat Dilek wrote: > > Just as a sidenote: > > From [PATCH v2] kbuild: enable unused-function warnings for W= build with Clang: > > "Per the documentation [1], -Wno-unused-function will also disable > -Wunneeded-internal-declaration, which can help find bugs like > commit 8289c4b6f2e5 ("platform/x86: mlx-platform: Properly use > mlxplat_mlxcpld_msn201x_items"). (pointed out by Nathan Chancellor) > I added -Wunneeded-internal-declaration to address it. > > If you contribute to code clean-up, please run "make CC=clang W=1" > and check -Wunused-function warnings. You will find lots of unused > functions." This information is unrelated to this version, so I dropped it. > Isn't that missing in your double? > > - Sedat - > > [1] https://lkml.org/lkml/2019/8/27/729 -- Best Regards Masahiro Yamada