From patchwork Thu May 2 18:03:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 2513371 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 54731DF215 for ; Thu, 2 May 2013 18:04:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932304Ab3EBSEB (ORCPT ); Thu, 2 May 2013 14:04:01 -0400 Received: from moutng.kundenserver.de ([212.227.126.187]:50586 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932213Ab3EBSEA (ORCPT ); Thu, 2 May 2013 14:04:00 -0400 Received: from klappe2.localnet (HSI-KBW-095-208-002-043.hsi5.kabel-badenwuerttemberg.de [95.208.2.43]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0M2GKi-1UHOwH0NUa-00sL8a; Thu, 02 May 2013 20:03:29 +0200 From: Arnd Bergmann To: Eduardo Valentin Subject: Re: Latest build results - errors/warnings - lots of them Date: Thu, 2 May 2013 20:03:26 +0200 User-Agent: KMail/1.12.2 (Linux/3.8.0-18-generic; KDE/4.3.2; x86_64; ; ) Cc: Tony Lindgren , "Russell King - ARM Linux" , Neil Brown , Nicolas Pitre , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Durgadoss R , "Zhang, Rui" References: <20130430081739.GP14496@n2100.arm.linux.org.uk> <20130502153834.GR28721@atomide.com> <51829D65.7040109@ti.com> In-Reply-To: <51829D65.7040109@ti.com> MIME-Version: 1.0 Message-Id: <201305022003.27037.arnd@arndb.de> X-Provags-ID: V02:K0:0XiHRAvON8EQZ7KpX2nihSJHG1HXKRNMko9IgCCdzxO XM+7cY65Y78X6IUQQIAeul3zopld7Inf7jZqTq0j6RvWp8Srcy jGmSTFh3/sIQsynSA2bd0UzM9/iD4RWwDincAdekEPx+Oy5bMF +NFftrX0DUcQ9UsPUREYmEzRjJuqGUhTk0C9Kma1vSfWoXC6tM ag51sSW7w4/kt7lrPU4S6ei6YtM3cAvyxVc6La4bxlWzcfBE1c p7vpNzpZ1sywECs9FCqCHdpaODrqlbOdyOXCgpIx0GVvW44ryE 2B8EuAnw8Ua3BGmtDeThrjFr16Zx71sqxc8aCgnX4i6b6YhG+5 ik9GTRNf0Q0rPUdz4I70= Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org On Thursday 02 May 2013, Eduardo Valentin wrote: > index e3c0ae9..e3f3cba 100644 > --- a/include/linux/thermal.h > +++ b/include/linux/thermal.h > @@ -250,12 +250,6 @@ void thermal_unregister_governor(struct > thermal_governor *); > #ifdef CONFIG_NET > extern int thermal_generate_netlink_event(struct thermal_zone_device *tz, > enum events event); > -#else > -static int thermal_generate_netlink_event(struct thermal_zone_device *tz, > - enum events event) > -{ > - return 0; > -} > #endif Actually it seems this bug is already fixed in linux-next: commit f8b587055a793c7719f0d4f41b7b4aeeef43aa2d Author: Ezequiel Garcia Date: Wed Mar 20 21:38:07 2013 +0000 thermal: Fix compiler warning The following warning is obtained when CONFIG_NET is not defined: In file included from drivers/thermal/mvebu_thermal.c:27:0: include/linux/thermal.h:254:12: warning: 'thermal_generate_netlink_event' defined but not used [-Wunused-function] This patch fixes the warning by properly inlining thermal_generate_netlink_event(). Signed-off-by: Ezequiel Garcia Signed-off-by: Zhang Rui Your patch also seems correct, but it would conflict with Ezequiel's. The problem was apparently that you removed the 'inline' keyword in 8ab3e6a08a "thermal: Use thermal zone device id in netlink messages", I assume by accident, since defining a non-inline function in a header file is obviously wrong. Arnd --- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/linux/thermal.h b/include/linux/thermal.h index f0bd7f9..fd7b8f3 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -251,7 +251,7 @@ void thermal_unregister_governor(struct thermal_governor *); extern int thermal_generate_netlink_event(struct thermal_zone_device *tz, enum events event); #else -static int thermal_generate_netlink_event(struct thermal_zone_device *tz, +static inline int thermal_generate_netlink_event(struct thermal_zone_device *tz, enum events event) { return 0;