aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBard liao <[email protected]>2019-08-05 19:55:12 -0500
committerVinod Koul <[email protected]>2019-08-21 14:36:01 +0530
commitce3304d8da8fa8e20001ed6128c7d04f703be305 (patch)
tree2fe317d22a26de2e48232f42ab59a2a4ae6bb87f
parent05be59ac41b2b4487170d495f20a411698290607 (diff)
soundwire: include mod_devicetable.h to avoid compiling warnings
When integrating SoundWire, kbuild throws this warning with randconfig: >> include/linux/soundwire/sdw.h:571:17: warning: 'struct sdw_device_id' declared inside parameter list will not be visible outside of this definition or declaration const struct sdw_device_id *id); ^~~~~~~~~~~~~ Fix by adding the relevant include Reported-by: kbuild test robot <[email protected]> Signed-off-by: Bard liao <[email protected]> Signed-off-by: Pierre-Louis Bossart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
-rw-r--r--include/linux/soundwire/sdw.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/soundwire/sdw.h b/include/linux/soundwire/sdw.h
index bea46bd8b6ce..28b5ab0d868c 100644
--- a/include/linux/soundwire/sdw.h
+++ b/include/linux/soundwire/sdw.h
@@ -4,6 +4,8 @@
#ifndef __SOUNDWIRE_H
#define __SOUNDWIRE_H
+#include <linux/mod_devicetable.h>
+
struct sdw_bus;
struct sdw_slave;