From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755817AbdERNdt (ORCPT ); Thu, 18 May 2017 09:33:49 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:32768 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755686AbdERNdo (ORCPT ); Thu, 18 May 2017 09:33:44 -0400 Date: Thu, 18 May 2017 15:33:43 +0200 From: Johan Hovold To: Arnd Bergmann Cc: Vaibhav Hiremath , Johan Hovold , Alex Elder , Greg Kroah-Hartman , devel@driverdev.osuosl.org, greybus-dev@lists.linaro.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: greybus: mark PM functions as __maybe_unused Message-ID: <20170518133343.GZ3657@localhost> References: <20170518132834.1744968-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170518132834.1744968-1-arnd@arndb.de> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 18, 2017 at 03:28:00PM +0200, Arnd Bergmann wrote: > Enabling the arche platform for compile testing showed a harmless > warning with CONFIG_PM=n: > > drivers/staging/greybus/arche-platform.c:632:12: error: 'arche_platform_resume' defined but not used [-Werror=unused-function] > drivers/staging/greybus/arche-platform.c:618:12: error: 'arche_platform_suspend' defined but not used [-Werror=unused-function] > > This marks the functions as __maybe_unused to shut up the warnings. > > Fixes: 2eccd4aa19fc ("staging: greybus: enable compile testing of arche driver") > Signed-off-by: Arnd Bergmann Acked-by: Johan Hovold Thanks for fixing this. Johan