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>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1331882917-27960-1-git-send-email-vbyravarasu@nvidia.com>
Date:	Fri, 16 Mar 2012 12:58:37 +0530
From:	Venu Byravarasu <vbyravarasu@...dia.com>
To:	sameo@...ux.intel.com, linux-kernel@...r.kernel.org,
	jedu@...mlogic.co.uk, lrg@...mlogic.co.uk,
	broonie@...nsource.wolfsonmicro.com, gg@...mlogic.co.uk
Cc:	Venu Byravarasu <vbyravarasu@...dia.com>
Subject: [PATCH] mfd: Fix compilation error in TPS65910.h

From: Venu Byravarasu <vbyravarasu@...dia.com>

Fix compilation error due to including TPS65910.h

'struct gpio_chip' is declared in include/asm-generic/gpio.h
which is included by include/linux/gpio.h.
However without including gpio.h, TPS65910.h declares
a member of this type as part of 'struct tps65910' declaration.

This causes compilation error, if gpio.h is not included
before including tps65910.h, in source files.

Hence fixing it.

Signed-off-by: Venu Byravarasu <vbyravarasu@...dia.com>
---
 include/linux/mfd/tps65910.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/linux/mfd/tps65910.h b/include/linux/mfd/tps65910.h
index 82b4c88..f226065 100644
--- a/include/linux/mfd/tps65910.h
+++ b/include/linux/mfd/tps65910.h
@@ -17,6 +17,8 @@
 #ifndef __LINUX_MFD_TPS65910_H
 #define __LINUX_MFD_TPS65910_H
 
+#include <linux/gpio.h>
+
 /* TPS chip id list */
 #define TPS65910			0
 #define TPS65911			1
-- 
1.7.1.1

--
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