From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752379AbbIOLCt (ORCPT ); Tue, 15 Sep 2015 07:02:49 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:41437 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750750AbbIOLCr (ORCPT ); Tue, 15 Sep 2015 07:02:47 -0400 Date: Tue, 15 Sep 2015 13:02:45 +0200 From: Pavel Machek To: Viresh Kumar Cc: Rafael Wysocki , linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Thomas Gleixner , alexandra.yates@linux.intel.com, Len Brown , open list Subject: Re: [PATCH] PM / sleep: Fix broken builds without CONFIG_PM_SLEEP_DEBUG Message-ID: <20150915110244.GA25425@amd> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 2015-09-15 13:42:21, Viresh Kumar wrote: > The variable 'wakeup_irq' is defined within #ifdef CONFIG_PM_SLEEP_DEBUG > and used outside of it. And that breaks kernel build: > > /home/viresh/linux/drivers/base/power/wakeup.c:871: undefined reference to `wakeup_irq' > /home/viresh/drivers/base/power/wakeup.c:871: undefined reference to `wakeup_irq' > > Fix it by defining the variable outside of the ifdef. > > Fixes: d1e59c235322 ("PM / sleep: Report interrupt that caused system wakeup") > Signed-off-by: Viresh Kumar Acked-by: Pavel Machek -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html