drivers/sfi: sfi_acpi.c needs sysfs.h
authorRandy Dunlap <rdunlap@xenotime.net>
Sat, 30 Jul 2011 01:09:12 +0000 (18:09 -0700)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 31 Oct 2011 23:31:57 +0000 (19:31 -0400)
sfi_acpi.c needs to include linux/sysfs.h for data types.

drivers/sfi/sfi_core.h:66: error: field 'attr' has incomplete type
drivers/sfi/sfi_acpi.c:179: warning: 'struct kobject' declared inside parameter list
drivers/sfi/sfi_acpi.c:179: warning: its scope is only this definition or declaration, which is probably not what you want
drivers/sfi/sfi_acpi.c:182: warning: type defaults to 'int' in declaration of '__mptr'
drivers/sfi/sfi_acpi.c:182: warning: initialization from incompatible pointer type

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/sfi/sfi_core.h

index b7cf220d44ec575f31160926433eefc50653dd87..1d5cfe854cf7d536640c8a1b7e52aff5801ab121 100644 (file)
@@ -55,6 +55,9 @@
   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 */
+
+#include <linux/sysfs.h>
+
 struct sfi_table_key{
        char    *sig;
        char    *oem_id;