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]
Date:	Thu, 21 Jun 2007 19:11:18 +0100
From:	Ben Dooks <ben@...ff.org>
To:	linux-kernel@...r.kernel.org, akpm@...ux-foundation.org
Subject: SM501: only compile suspend/resume if CONFIG_PM

The suspend and resume support only needs to be built if
CONFIG_PM is defined.

Signed-off-by: Ben Dooks <ben-linux@...ff.org>

Index: linux-2.6.21-quilt9/drivers/mfd/sm501.c
===================================================================
--- linux-2.6.21-quilt9.orig/drivers/mfd/sm501.c
+++ linux-2.6.21-quilt9/drivers/mfd/sm501.c
@@ -1000,6 +1000,7 @@ static int sm501_plat_probe(struct platf
 
 }
 
+#ifdef CONFIG_PM
 /* power management support */
 
 static int sm501_plat_suspend(struct platform_device *pdev, pm_message_t state)
@@ -1045,7 +1046,10 @@ static int sm501_plat_resume(struct plat
 
 	return 0;
 }
-
+#else
+#define sm501_plat_suspend NULL
+#define sm501_plat_resume NULL
+#endif
 
 /* Initialisation data for PCI devices */
 
-
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