Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2151532ybe; Tue, 3 Sep 2019 08:40:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxc3RQ1dKYl3XFXJRSlT1IfKRTUeW8JEaJh00emY8l3H+55iQDYMNfh2w0jRDGfS2eAlb8B X-Received: by 2002:a63:5754:: with SMTP id h20mr29914917pgm.195.1567525258710; Tue, 03 Sep 2019 08:40:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567525258; cv=none; d=google.com; s=arc-20160816; b=GOjkBleGlDAd8GObjEM7aikC+V/ZjfTyOMPM+P/RRn2Ee4zpCEEFuFWKC2wINs3sGK 75znO2gQZR4qiYSOLZ3wfJXtKJGfPtfRJUe244ekKdRKPH0WSLL8WCNJx2ChJ6hL2c3h uK0dwmvvUp3WC7Zcr1YBpXbwKa3ZZ1jye1WxvfqJgVkUtSbXUNOt7Nd/Jd6k93mcoBEt Dasze6hWGX6a/ZoyPvZh3V4sSurO57bOsiOc++QQU0AY/TsuB7ZecLj/EEvTvQPG6gXR i0qCDp3rnuJmgK+xuDDyCpqYDmZGTvCMNAkfuIJ3Y0iHa/lW/K3zYxJ2MslbSqn+Gj5Z bRlw== 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:dkim-filter; bh=mNQ/8Q4lNQ2CgeCETQDXp73cvMbK+QmBj7K2vN48yOY=; b=n9y2+zlNVJv6ffv9qZxd2P+R1gOu4MWog/sAjRLycvdYKsK2rxGRMZ/q8ZPaugWits hD+j2PAMAuDeidnBqzzzNAsA20dogfe3N2cejrvqqaTHWQLsYYlnw8ECWTaYu/LPZDE9 KJdGjkibbPKepX66J/t3JHWm7pU2DtaLQE24grPQDV42BP+ahk/kEWlrrrhPzPix9kWD sFdVjQTxaa6VtvuU9D/Px5FIEWU8Jx9vfrbbj3vHqPufAbDdJnutSRuaJn6YwJOQSDpf ai9w79m1um/ljHEAjOw8RradRzUESdhtB8lNr3Aqtpn1wl8PhcZAEkT9dgWoSKbWnsFj cT+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=LI2L8c7D; 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 h10si14928334plr.195.2019.09.03.08.40.42; Tue, 03 Sep 2019 08:40:58 -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=@nifty.com header.s=dec2015msa header.b=LI2L8c7D; 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 S1729817AbfICPjs (ORCPT + 99 others); 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-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