tbsdtv / linux_media

TBS linux open source drivers
https://github.com/tbsdtv/linux_media/wiki
Other
174 stars 80 forks source link

Unable to compile - Ubuntu 18.04 kernel 4.18.0-25 #171

Open allanleesysu opened 5 years ago

allanleesysu commented 5 years ago

After executing make -j4, got the error message below:

In file included from ./include/linux/kernel.h:14:0, from ./include/asm-generic/bug.h:18, from ./arch/x86/include/asm/bug.h:83, from ./include/linux/bug.h:5, from ./include/linux/mmdebug.h:5, from /tbsdriver/media_build/v4l/config-compat.h:12, from /tbsdriver/media_build/v4l/compat.h:10, from :0: /tbsdriver/media_build/v4l/tda18271-fe.c: In function 'tda18271_calc_rf_filter_curve': ./include/linux/printk.h:312:15: error: expected ')' before 'pr_fmt' printk(level pr_fmt(format), ##VA_ARGS__) ^ ./include/linux/printk.h:336:2: note: in expansion of macro 'pr_printk_hash' pr_printk_hash(KERN_INFO, fmt, ##VA_ARGS__) ^~~~~~ /tbsdriver/media_build/v4l/tda18271-priv.h:146:31: note: in expansion of macro 'pr_info'

define tda_info(fmt, arg...) pr_info(fmt, ##arg)

                           ^~~~~~~

/tbsdriver/media_build/v4l/tda18271-fe.c:637:2: note: in expansion of macro 'tda_info' tda_info("performing RF tracking filter calibration\n"); ^~~~ /tbsdriver/media_build/v4l/tda18271-fe.c: In function 'tda18271c2_rf_cal_init': ./include/linux/printk.h:312:15: error: expected ')' before 'pr_fmt' printk(level pr_fmt(format), ##VA_ARGS__) ^ ./include/linux/printk.h:336:2: note: in expansion of macro 'pr_printk_hash' pr_printk_hash(KERN_INFO, fmt, ##VA_ARGS__) ^~~~~~ /tbsdriver/media_build/v4l/tda18271-priv.h:146:31: note: in expansion of macro 'pr_info'

define tda_info(fmt, arg...) pr_info(fmt, ##arg)

                           ^~~~~~~

/tbsdriver/media_build/v4l/tda18271-fe.c:683:2: note: in expansion of macro 'tda_info' tda_info("RF tracking filter calibration complete\n"); ^~~~ ./include/linux/printk.h:312:15: error: expected ')' before 'pr_fmt' printk(level pr_fmt(format), ##VA_ARGS__) ^ ./include/linux/printk.h:336:2: note: in expansion of macro 'pr_printk_hash' pr_printk_hash(KERN_INFO, fmt, ##VA_ARGS__) ^~~~~~ /tbsdriver/media_build/v4l/tda18271-priv.h:146:31: note: in expansion of macro 'pr_info'

define tda_info(fmt, arg...) pr_info(fmt, ##arg)

                           ^~~~~~~

/tbsdriver/media_build/v4l/tda18271-fe.c:688:2: note: in expansion of macro 'tda_info' tda_info("RF tracking filter calibration failed!\n"); ^~~~ /tbsdriver/media_build/v4l/tda18271-fe.c: In function 'tda18271_get_id': ./include/linux/printk.h:312:15: error: expected ')' before 'pr_fmt' printk(level pr_fmt(format), ##VA_ARGS__) ^ ./include/linux/printk.h:336:2: note: in expansion of macro 'pr_printk_hash' pr_printk_hash(KERN_INFO, fmt, ##VA_ARGS__) ^~~~~~ /tbsdriver/media_build/v4l/tda18271-priv.h:146:31: note: in expansion of macro 'pr_info'

define tda_info(fmt, arg...) pr_info(fmt, ##arg)

                           ^~~~~~~

/tbsdriver/media_build/v4l/tda18271-fe.c:1158:3: note: in expansion of macro 'tda_info' tda_info("Error reading device ID @ %d-%04x, bailing out.\n", ^~~~ ./include/linux/printk.h:312:15: error: expected ')' before 'pr_fmt' printk(level pr_fmt(format), ##VA_ARGS__) ^ ./include/linux/printk.h:336:2: note: in expansion of macro 'pr_printk_hash' pr_printk_hash(KERN_INFO, fmt, ##VA_ARGS__) ^~~~~~ /tbsdriver/media_build/v4l/tda18271-priv.h:146:31: note: in expansion of macro 'pr_info'

define tda_info(fmt, arg...) pr_info(fmt, ##arg)

                           ^~~~~~~

/tbsdriver/media_build/v4l/tda18271-fe.c:1174:3: note: in expansion of macro 'tda_info' tda_info("Unknown device (%i) detected @ %d-%04x, device not supported.\n", ^~~~ ./include/linux/printk.h:312:15: error: expected ')' before 'pr_fmt' printk(level pr_fmt(format), ##VA_ARGS__) ^ ./include/linux/printk.h:336:2: note: in expansion of macro 'pr_printk_hash' pr_printk_hash(KERN_INFO, fmt, ##VA_ARGS__) ^~~~~~ /tbsdriver/media_build/v4l/tda18271-priv.h:146:31: note: in expansion of macro 'pr_info'

define tda_info(fmt, arg...) pr_info(fmt, ##arg)

                           ^~~~~~~

/tbsdriver/media_build/v4l/tda18271-fe.c:1180:2: note: in expansion of macro 'tda_info' tda_info("%s detected @ %d-%04x\n", name, ^~~~

PavithraKrishnaA commented 4 years ago

@allanleesysu : May i know if there is any workaround for this ?I also get the same issue with clang 10