lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <3760683.0Y3oBQm6U1@wuerfel>
Date:	Mon, 29 Sep 2014 14:18:53 +0200
From:	Arnd Bergmann <arnd@...db.de>
To:	linux-pm@...r.kernel.org
Cc:	"Rafael J. Wysocki" <rafael.j.wysocki@...el.com>,
	Dmitry Torokhov <dmitry.torokhov@...il.com>,
	Kevin Hilman <khilman@...aro.org>,
	Philipp Zabel <p.zabel@...gutronix.de>,
	Ulf Hansson <ulf.hansson@...aro.org>,
	linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: [PATCH] PM / Domains: add missing include to linux/pm.h

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@...db.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>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ