From: Arnd Bergmann <arnd@arndb.de> To: linux-pm@vger.kernel.org Cc: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, Kevin Hilman <khilman@linaro.org>, Philipp Zabel <p.zabel@pengutronix.de>, Ulf Hansson <ulf.hansson@linaro.org>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] PM / Domains: add missing include to linux/pm.h Date: Mon, 29 Sep 2014 14:18:53 +0200 [thread overview] Message-ID: <3760683.0Y3oBQm6U1@wuerfel> (raw) The newly added attach/detach API introduces a use of -ENODEV in linux/pm.h, which can cause build errors: In file included from arch/arm/mach-shmobile/cpuidle.c:11:0: include/linux/pm.h: In function 'dev_pm_domain_attach': include/linux/pm.h:631:10: error: 'ENODEV' undeclared (first use in this function) This is easily solved by adding an include of linux/errno.h Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: 46420dd73b80 ("PM / Domains: Add APIs to attach/detach a PM domain for a device") --- This is from last thursday, please just ignore if someone else has the same fix. diff --git a/include/linux/pm.h b/include/linux/pm.h index c4cbf485a5d6..56d1a7df4321 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h @@ -21,6 +21,7 @@ #ifndef _LINUX_PM_H #define _LINUX_PM_H +#include <linux/errno.h> #include <linux/list.h> #include <linux/workqueue.h> #include <linux/spinlock.h>
WARNING: multiple messages have this Message-ID (diff)
From: arnd@arndb.de (Arnd Bergmann) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] PM / Domains: add missing include to linux/pm.h Date: Mon, 29 Sep 2014 14:18:53 +0200 [thread overview] Message-ID: <3760683.0Y3oBQm6U1@wuerfel> (raw) The newly added attach/detach API introduces a use of -ENODEV in linux/pm.h, which can cause build errors: In file included from arch/arm/mach-shmobile/cpuidle.c:11:0: include/linux/pm.h: In function 'dev_pm_domain_attach': include/linux/pm.h:631:10: error: 'ENODEV' undeclared (first use in this function) This is easily solved by adding an include of linux/errno.h Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: 46420dd73b80 ("PM / Domains: Add APIs to attach/detach a PM domain for a device") --- This is from last thursday, please just ignore if someone else has the same fix. diff --git a/include/linux/pm.h b/include/linux/pm.h index c4cbf485a5d6..56d1a7df4321 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h @@ -21,6 +21,7 @@ #ifndef _LINUX_PM_H #define _LINUX_PM_H +#include <linux/errno.h> #include <linux/list.h> #include <linux/workqueue.h> #include <linux/spinlock.h>
next reply other threads:[~2014-09-29 12:19 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-09-29 12:18 Arnd Bergmann [this message] 2014-09-29 12:18 ` [PATCH] PM / Domains: add missing include to linux/pm.h Arnd Bergmann
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=3760683.0Y3oBQm6U1@wuerfel \ --to=arnd@arndb.de \ --cc=dmitry.torokhov@gmail.com \ --cc=khilman@linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-pm@vger.kernel.org \ --cc=p.zabel@pengutronix.de \ --cc=rafael.j.wysocki@intel.com \ --cc=ulf.hansson@linaro.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.