From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754830AbdBGORn (ORCPT ); Tue, 7 Feb 2017 09:17:43 -0500 Received: from mx2.suse.de ([195.135.220.15]:46484 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754467AbdBGORl (ORCPT ); Tue, 7 Feb 2017 09:17:41 -0500 Date: Tue, 07 Feb 2017 15:17:34 +0100 Message-ID: From: Takashi Iwai To: "Arnd Bergmann" Cc: "Jaroslav Kysela" , , "Jerome Anand" , "Pierre-Louis Bossart" , Subject: Re: [PATCH] ALSA: x86: mark hdmi suspend/resume functions as __maybe_unused In-Reply-To: <20170207133918.1085873-1-arnd@arndb.de> References: <20170207133918.1085873-1-arnd@arndb.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.1 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 07 Feb 2017 14:38:51 +0100, Arnd Bergmann wrote: > > The two functions are unused when CONFIG_PM_SLEEP is disabled: > > sound/x86/intel_hdmi_audio.c:1633:12: error: 'hdmi_lpe_audio_resume' defined but not used [-Werror=unused-function] > sound/x86/intel_hdmi_audio.c:1622:12: error: 'hdmi_lpe_audio_suspend' defined but not used [-Werror=unused-function] > > Marking them as __maybe_unused avoids the warning without introducing an > ugly #ifdef. > > Fixes: 182cdf23dbf6 ("ALSA: x86: Implement runtime PM") > Signed-off-by: Arnd Bergmann Applied, thanks! Takashi