]> git.karo-electronics.de Git - linux-beck.git/commitdiff
greybus: audio_manager: add missing header
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 3 Feb 2016 11:53:40 +0000 (12:53 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 3 Feb 2016 18:38:54 +0000 (10:38 -0800)
There's a definition missing in audio_manager causing the kernel build
to fail:

  CC [M]  ./greybus/audio_manager.o
./greybus/audio_manager.c:22:8: warning: type defaults to 'int' in declaration of 'DEFINE_IDA' [-Wimplicit-int]
error, forbidden warning: audio_manager.c:22
./kernel/scripts/Makefile.build:308: recipe for target './greybus/audio_manager.o' failed

Including linux/idr.h fixes the issue.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/audio_manager.c

index 05af441be1624ff34098b5e097be2b2382e52f70..bc5be4907c81db09236c0df0e70f5cc0ce0c9bea 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/rwlock.h>
+#include <linux/idr.h>
 
 #include "audio_manager.h"
 #include "audio_manager_private.h"