Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751548AbdFFQci (ORCPT ); Tue, 6 Jun 2017 12:32:38 -0400 Received: from mail-it0-f52.google.com ([209.85.214.52]:37643 "EHLO mail-it0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751200AbdFFQcg (ORCPT ); Tue, 6 Jun 2017 12:32:36 -0400 MIME-Version: 1.0 In-Reply-To: References: <20170530181306.GV141096@google.com> <20170531235519.GX141096@google.com> From: Linus Torvalds Date: Tue, 6 Jun 2017 09:32:35 -0700 X-Google-Sender-Auth: AvKNVaIb7ssQEYf_-JspT2-iHzg Message-ID: Subject: Re: [RFC] clang: 'unused-function' warning on static inline functions To: Arnd Bergmann Cc: Matthias Kaehlcke , Linux Kernel Mailing List , Andrew Morton , Greg Kroah-Hartman , Ingo Molnar , Thomas Gleixner , Christoph Hellwig , Jens Axboe , Steven Rostedt , David Rientjes , Douglas Anderson , Guenter Roeck , Mark Brown , David Miller Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 650 Lines: 17 On Tue, Jun 6, 2017 at 4:16 AM, Arnd Bergmann wrote: > > Those should all be fairly easy to address, I'd vote for leaving the > warning enabled > in clang, and possibly asking the gcc maintainers to add a similar feature for > warning about it. Hell no. That warning is pointless shit. The function is inlined. If it's not used, why the f*ck should you get a warning? Just to add more pointless #ifdef'fery around a function that is perhaps only used under certain circumstances? No. That warning is garbage, and we will ignore it, and we sure as hell will not ask gcc to add more garbage warnings. Linus