[linuxtv-media:master 1801/1806] drivers/media/i2c/s5c73m3/s5c73m3-spi.c:40:40: error: expected ')' before ';' token

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://linuxtv.org/media_tree.git master
head:   769b640929046f1207b928d194a855d759ad0a06
commit: f934a94bb566a629b7e0be52d087a686145d1f14 [1801/1806] [media] s5c73m3: Export OF module alias information
config: x86_64-randconfig-s4-11182347 (attached as .config)
reproduce:
        git checkout f934a94bb566a629b7e0be52d087a686145d1f14
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All error/warnings (new ones prefixed by >>):

   In file included from drivers/media/i2c/s5c73m3/s5c73m3-spi.c:22:0:
>> drivers/media/i2c/s5c73m3/s5c73m3-spi.c:40:40: error: expected ')' before ';' token
    MODULE_DEVICE_TABLE(of, s5c73m3_spi_ids;);
                                           ^
   include/linux/module.h:223:21: note: in definition of macro 'MODULE_DEVICE_TABLE'
    extern const typeof(name) __mod_##type##__##name##_device_table  \
                        ^
>> drivers/media/i2c/s5c73m3/s5c73m3-spi.c:40:40: error: pasting ";" and "_device_table" does not give a valid preprocessing token
    MODULE_DEVICE_TABLE(of, s5c73m3_spi_ids;);
                                           ^
   include/linux/module.h:223:45: note: in definition of macro 'MODULE_DEVICE_TABLE'
    extern const typeof(name) __mod_##type##__##name##_device_table  \
                                                ^
>> include/linux/module.h:223:51: warning: data definition has no type or storage class
    extern const typeof(name) __mod_##type##__##name##_device_table  \
                                                      ^
>> drivers/media/i2c/s5c73m3/s5c73m3-spi.c:40:1: note: in expansion of macro 'MODULE_DEVICE_TABLE'
    MODULE_DEVICE_TABLE(of, s5c73m3_spi_ids;);
    ^
>> include/linux/module.h:223:51: error: type defaults to 'int' in declaration of '_device_table' [-Werror=implicit-int]
    extern const typeof(name) __mod_##type##__##name##_device_table  \
                                                      ^
>> drivers/media/i2c/s5c73m3/s5c73m3-spi.c:40:1: note: in expansion of macro 'MODULE_DEVICE_TABLE'
    MODULE_DEVICE_TABLE(of, s5c73m3_spi_ids;);
    ^
>> include/linux/module.h:223:51: error: '_device_table' defined both normally and as 'alias' attribute
    extern const typeof(name) __mod_##type##__##name##_device_table  \
                                                      ^
>> drivers/media/i2c/s5c73m3/s5c73m3-spi.c:40:1: note: in expansion of macro 'MODULE_DEVICE_TABLE'
    MODULE_DEVICE_TABLE(of, s5c73m3_spi_ids;);
    ^
   cc1: some warnings being treated as errors

vim +40 drivers/media/i2c/s5c73m3/s5c73m3-spi.c

    16	 */
    17	
    18	#include <linux/sizes.h>
    19	#include <linux/delay.h>
    20	#include <linux/init.h>
    21	#include <linux/media.h>
  > 22	#include <linux/module.h>
    23	#include <linux/slab.h>
    24	#include <linux/spi/spi.h>
    25	
    26	#include "s5c73m3.h"
    27	
    28	#define S5C73M3_SPI_DRV_NAME "S5C73M3-SPI"
    29	
    30	static const struct of_device_id s5c73m3_spi_ids[] = {
    31		{ .compatible = "samsung,s5c73m3" },
    32		{ }
    33	};
    34	MODULE_DEVICE_TABLE(of, s5c73m3_spi_ids);
    35	
    36	enum spi_direction {
    37		SPI_DIR_RX,
    38		SPI_DIR_TX
    39	};
  > 40	MODULE_DEVICE_TABLE(of, s5c73m3_spi_ids;);
    41	
    42	static int spi_xmit(struct spi_device *spi_dev, void *addr, const int len,
    43								enum spi_direction dir)

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux