lkml.org 
[lkml]   [2019]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 07/17] soundwire: include mod_devicetable.h to avoid compiling warnings
    Date
    From: Bard liao <yung-chuan.liao@linux.intel.com>

    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>
    ---
    include/linux/soundwire/sdw.h | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/include/linux/soundwire/sdw.h b/include/linux/soundwire/sdw.h
    index a49028e9d666..31d1e8acf25b 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;

    --
    2.20.1
    \
     
     \ /
      Last update: 2019-08-06 02:56    [W:4.262 / U:0.556 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site