Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp492077ybl; Fri, 30 Aug 2019 02:54:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqxj+lsdpvLloetwg1leLmGUIZjwMyHroVpe9TJrrbD0C2orMN8T9SwakmUsf1w1Arycd4jV X-Received: by 2002:a17:902:126:: with SMTP id 35mr6791775plb.76.1567158858386; Fri, 30 Aug 2019 02:54:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567158858; cv=none; d=google.com; s=arc-20160816; b=zOlP5qgZfUOEeAImzWmnvG+DGT9cdgT/Z3wgFXeY1N7KCMEXBcZfACXEm34Z0oWbOE MBi3D/p7eBoSdpq0Zue0OoVw8hlEFfvBUAHHT273oKbxZvKKn3FDiBNy+gwcBEmY13QY yJFXvxaTXcVQo10G6zOGrKkrCKOiODDoRqk9PIJ3/T2bg61Gyxlq4j2poeg9El2PzBhg Hld0/Isre3U/YXBjsewtNgUfKtY1Eo0YPEG+AZylW4f5ro/Mj1cv1jPkH38IpmBzYqtK LhSHLSG6a1TdV/tkwyeCJXD2zEl0pUZTM305ezB5eX/e1C546vCdNl0Ih48UjYA4thQ5 nlrw== 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 :reply-to:in-reply-to:references:mime-version:dkim-signature; bh=tc17SwiXpDz1kgEk0p61gpWwIWAbuTeHVLdYo1NejAk=; b=LT4LWtqRTV02wJalRaYNMDKyL+cVhl7zFy73UDqIe1r2g/iON9X6migkdaOFhoMSVf hZC3F7bCM81MWG464mV3VjSRKcJB2olRmmdHRRLCCjqTOmHOCxDVE9Qe1sWnf6ZfraB/ O35FQw/orCuyMY667xPUkKI7EN0ZG6tU4wKx6IL3YXcUe0XkZZs8RpLXAJuNNLK3Oh1X LCLZUXULAUUEHs1wzoehdpiCEeHoziCyhBZofRo63RmxBicdYNuU+57fJ3ZrGPZ2KA/w d5nyiAODEOVw2mVZuNmj2kq048eBXxT0XMGHJx82UMyjK6rfKyPxHRH/qlsHwVF6IntG vzQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DsCXS5Al; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ck1si4309990plb.409.2019.08.30.02.54.02; Fri, 30 Aug 2019 02:54:18 -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=@gmail.com header.s=20161025 header.b=DsCXS5Al; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727999AbfH3Jwj (ORCPT + 99 others); Fri, 30 Aug 2019 05:52:39 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:53348 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727754AbfH3Jwi (ORCPT ); Fri, 30 Aug 2019 05:52:38 -0400 Received: by mail-wm1-f65.google.com with SMTP id 10so6611582wmp.3; Fri, 30 Aug 2019 02:52:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=tc17SwiXpDz1kgEk0p61gpWwIWAbuTeHVLdYo1NejAk=; b=DsCXS5AlfL8N6Pd/BW1O50jCajoaMNCX6Gh/ZpcI750WV99gdv/GDDQQOuhc+g7kQj PrR2UciBC/udBCeDc7zmvV0pv/IQag9tJFcZjNccdyoDyzV5Vli8kp00xaGABHm+22CJ QGjM5QwY08jOwBpS1IXIFSuNTqnPk6gv4KTDzPM3MfNPZATg578eAznzEnMbiYPhnIRm Bt8derDP1APJB4thdBFtrh4Qg5+sjwi5qq6M5nqQPWTRl35KDxRRkkH1lmZCzPhRiFG5 hfF8Z3GoA4Kl6FR/fEmQPtAMX6hEUUaE5IqlzT4QBHyVfZWzz2wYNplNIvk7wtpXfEk3 67qg== 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:reply-to :from:date:message-id:subject:to:cc; bh=tc17SwiXpDz1kgEk0p61gpWwIWAbuTeHVLdYo1NejAk=; b=CxDaPOMN920h2wjotR27TudvViRynfs/5zCZBnMGtFaPMlTtlw+Xlwks8yb6iRjlIy mdJJ16nhIEqVLS8dWRzr/b9+k+HyDd3yuL/65UIqNSd+AyT55qFPUycmvnoalqWhammr lFqETx6v3GpVeR7KaCNkXDcyBUBer0Qjmot3twDPY2AJ1nkX7AQsmtyQNJXYbzpKjAsD oruKeMvjQrDtE1AkHLxYovrciKP6aM7hHPSXD+v/z/0fevcPcEED6vm/br0zNAn4wtxc LTb9N4E+DctGh35X7USPGTHwX8teOJVQealrxaLTjyXITtmT/ax9U6rzT6TfeA93CxwV wA2Q== X-Gm-Message-State: APjAAAXbmy4Lou1uIQRwE9FwoNVQlKe3wPAj/ZAgX/Tt65QHPriFz2qa Zk+XkR2Sqb6QZCcR2vCmK3wCQ576Z7knJC6RhxQ= X-Received: by 2002:a7b:c013:: with SMTP id c19mr9625630wmb.118.1567158756429; Fri, 30 Aug 2019 02:52:36 -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: Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Fri, 30 Aug 2019 11:52:24 +0200 Message-ID: Subject: Re: [PATCH 2/2] kbuild: allow Clang to find unused static inline functions for W=1 build To: Nick Desaulniers Cc: Nathan Chancellor , Masahiro Yamada , 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 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." Isn't that missing in your double? - Sedat - [1] https://lkml.org/lkml/2019/8/27/729