]> asedeno.scripts.mit.edu Git - linux.git/commit
soundwire: include mod_devicetable.h to avoid compiling warnings
authorBard liao <yung-chuan.liao@linux.intel.com>
Tue, 6 Aug 2019 00:55:12 +0000 (19:55 -0500)
committerVinod Koul <vkoul@kernel.org>
Wed, 21 Aug 2019 09:06:01 +0000 (14:36 +0530)
commitce3304d8da8fa8e20001ed6128c7d04f703be305
tree2fe317d22a26de2e48232f42ab59a2a4ae6bb87f
parent05be59ac41b2b4487170d495f20a411698290607
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 <lkp@intel.com>
Signed-off-by: Bard liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20190806005522.22642-8-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
include/linux/soundwire/sdw.h