From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751766AbdFHI7p (ORCPT ); Thu, 8 Jun 2017 04:59:45 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:35088 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750725AbdFHI7o (ORCPT ); Thu, 8 Jun 2017 04:59:44 -0400 MIME-Version: 1.0 In-Reply-To: References: <20170530181306.GV141096@google.com> <20170531235519.GX141096@google.com> <20170606212354.GZ141096@google.com> From: Arnd Bergmann Date: Thu, 8 Jun 2017 10:59:43 +0200 X-Google-Sender-Auth: cR_1GIbTojVjOElXIlGGJn1C6p0 Message-ID: Subject: Re: [RFC] clang: 'unused-function' warning on static inline functions To: Linus Torvalds 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 , Tom Herbert Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 7, 2017 at 9:43 PM, Arnd Bergmann wrote: > On Tue, Jun 6, 2017 at 11:28 PM, Linus Torvalds > wrote: > I even found one function that should be called but is not: > __ila_hash_secret_init(). This one might be a serious bug, > or it might be harmless. > > [Adding Tom Herbert to Cc here, Tom, please have a look > at net/ipv6/ila/ila_xlat.c for the missing initialization of hashrnd] I submitted a patch for this one now, and another one for a function in kernel/cpu.c that was obviously meant to be removed not too long ago. I checked that all other instances of the warning I found in the kernel are indeed harmless and don't need a patch when there is no warning. Arnd