Hi Laurent, I love your patch! Perhaps something to improve: [auto build test WARNING on linuxtv-media/master] [also build test WARNING on v4.17-rc2 next-20180426] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Laurent-Pinchart/media-vb2-Print-the-queue-pointer-in-debug-messages/20180428-184113 base: git://linuxtv.org/media_tree.git master config: i386-randconfig-x014-201816 (attached as .config) compiler: gcc-7 (Debian 7.3.0-16) 7.3.0 reproduce: # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): In file included from include/linux/printk.h:7:0, from include/linux/kernel.h:14, from drivers/media//common/videobuf2/videobuf2-core.c:20: drivers/media//common/videobuf2/videobuf2-core.c: In function '__vb2_buf_mem_alloc': >> include/linux/kern_levels.h:5:18: warning: format '%p' expects argument of type 'void *', but argument 4 has type 'unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ >> drivers/media//common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ >> drivers/media//common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ >> drivers/media//common/videobuf2/videobuf2-core.c:75:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ >> drivers/media//common/videobuf2/videobuf2-core.c:210:14: note: in expansion of macro 'call_ptr_memop' mem_priv = call_ptr_memop(vb, alloc, ^~~~~~~~~~~~~~ >> include/linux/kern_levels.h:5:18: warning: format '%d' expects argument of type 'int', but argument 5 has type 'char *' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ >> drivers/media//common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ >> drivers/media//common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ >> drivers/media//common/videobuf2/videobuf2-core.c:75:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ >> drivers/media//common/videobuf2/videobuf2-core.c:210:14: note: in expansion of macro 'call_ptr_memop' mem_priv = call_ptr_memop(vb, alloc, ^~~~~~~~~~~~~~ include/linux/kern_levels.h:5:18: warning: format '%s' expects a matching 'char *' argument [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ >> drivers/media//common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ >> drivers/media//common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ >> drivers/media//common/videobuf2/videobuf2-core.c:75:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ >> drivers/media//common/videobuf2/videobuf2-core.c:210:14: note: in expansion of macro 'call_ptr_memop' mem_priv = call_ptr_memop(vb, alloc, ^~~~~~~~~~~~~~ >> include/linux/kern_levels.h:5:18: warning: format '%p' expects argument of type 'void *', but argument 4 has type 'unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ >> drivers/media//common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ >> drivers/media//common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media//common/videobuf2/videobuf2-core.c:86:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ >> drivers/media//common/videobuf2/videobuf2-core.c:227:3: note: in expansion of macro 'call_void_memop' call_void_memop(vb, put, vb->planes[plane - 1].mem_priv); ^~~~~~~~~~~~~~~ >> include/linux/kern_levels.h:5:18: warning: format '%d' expects argument of type 'int', but argument 5 has type 'char *' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ >> drivers/media//common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ -- In file included from include/linux/printk.h:7:0, from include/linux/kernel.h:14, from drivers/media/common/videobuf2/videobuf2-core.c:20: drivers/media/common/videobuf2/videobuf2-core.c: In function '__vb2_buf_mem_alloc': >> include/linux/kern_levels.h:5:18: warning: format '%p' expects argument of type 'void *', but argument 4 has type 'unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:75:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:210:14: note: in expansion of macro 'call_ptr_memop' mem_priv = call_ptr_memop(vb, alloc, ^~~~~~~~~~~~~~ >> include/linux/kern_levels.h:5:18: warning: format '%d' expects argument of type 'int', but argument 5 has type 'char *' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:75:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:210:14: note: in expansion of macro 'call_ptr_memop' mem_priv = call_ptr_memop(vb, alloc, ^~~~~~~~~~~~~~ include/linux/kern_levels.h:5:18: warning: format '%s' expects a matching 'char *' argument [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:75:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:210:14: note: in expansion of macro 'call_ptr_memop' mem_priv = call_ptr_memop(vb, alloc, ^~~~~~~~~~~~~~ >> include/linux/kern_levels.h:5:18: warning: format '%p' expects argument of type 'void *', but argument 4 has type 'unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:86:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:227:3: note: in expansion of macro 'call_void_memop' call_void_memop(vb, put, vb->planes[plane - 1].mem_priv); ^~~~~~~~~~~~~~~ >> include/linux/kern_levels.h:5:18: warning: format '%d' expects argument of type 'int', but argument 5 has type 'char *' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:86:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:227:3: note: in expansion of macro 'call_void_memop' call_void_memop(vb, put, vb->planes[plane - 1].mem_priv); ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:5:18: warning: format '%s' expects a matching 'char *' argument [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:86:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:227:3: note: in expansion of macro 'call_void_memop' call_void_memop(vb, put, vb->planes[plane - 1].mem_priv); ^~~~~~~~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c: In function '__vb2_buf_mem_free': >> include/linux/kern_levels.h:5:18: warning: format '%p' expects argument of type 'void *', but argument 4 has type 'unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:86:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:242:3: note: in expansion of macro 'call_void_memop' call_void_memop(vb, put, vb->planes[plane].mem_priv); ^~~~~~~~~~~~~~~ >> include/linux/kern_levels.h:5:18: warning: format '%d' expects argument of type 'int', but argument 5 has type 'char *' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:86:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:242:3: note: in expansion of macro 'call_void_memop' call_void_memop(vb, put, vb->planes[plane].mem_priv); ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:5:18: warning: format '%s' expects a matching 'char *' argument [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:86:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:242:3: note: in expansion of macro 'call_void_memop' call_void_memop(vb, put, vb->planes[plane].mem_priv); ^~~~~~~~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c: In function '__vb2_buf_userptr_put': >> include/linux/kern_levels.h:5:18: warning: format '%p' expects argument of type 'void *', but argument 4 has type 'unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:86:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:259:4: note: in expansion of macro 'call_void_memop' call_void_memop(vb, put_userptr, vb->planes[plane].mem_priv); ^~~~~~~~~~~~~~~ >> include/linux/kern_levels.h:5:18: warning: format '%d' expects argument of type 'int', but argument 5 has type 'char *' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:86:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:259:4: note: in expansion of macro 'call_void_memop' call_void_memop(vb, put_userptr, vb->planes[plane].mem_priv); ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:5:18: warning: format '%s' expects a matching 'char *' argument [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:86:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:259:4: note: in expansion of macro 'call_void_memop' call_void_memop(vb, put_userptr, vb->planes[plane].mem_priv); ^~~~~~~~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c: In function '__vb2_plane_dmabuf_put': >> include/linux/kern_levels.h:5:18: warning: format '%p' expects argument of type 'void *', but argument 4 has type 'unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:86:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:274:3: note: in expansion of macro 'call_void_memop' call_void_memop(vb, unmap_dmabuf, p->mem_priv); ^~~~~~~~~~~~~~~ >> include/linux/kern_levels.h:5:18: warning: format '%d' expects argument of type 'int', but argument 5 has type 'char *' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:86:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:274:3: note: in expansion of macro 'call_void_memop' call_void_memop(vb, unmap_dmabuf, p->mem_priv); ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:5:18: warning: format '%s' expects a matching 'char *' argument [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:86:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:274:3: note: in expansion of macro 'call_void_memop' call_void_memop(vb, unmap_dmabuf, p->mem_priv); ^~~~~~~~~~~~~~~ >> include/linux/kern_levels.h:5:18: warning: format '%p' expects argument of type 'void *', but argument 4 has type 'unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:86:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:276:2: note: in expansion of macro 'call_void_memop' call_void_memop(vb, detach_dmabuf, p->mem_priv); ^~~~~~~~~~~~~~~ >> include/linux/kern_levels.h:5:18: warning: format '%d' expects argument of type 'int', but argument 5 has type 'char *' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:86:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:276:2: note: in expansion of macro 'call_void_memop' call_void_memop(vb, detach_dmabuf, p->mem_priv); ^~~~~~~~~~~~~~~ include/linux/kern_levels.h:5:18: warning: format '%s' expects a matching 'char *' argument [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:86:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:276:2: note: in expansion of macro 'call_void_memop' call_void_memop(vb, detach_dmabuf, p->mem_priv); ^~~~~~~~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c: In function '__vb2_queue_alloc': >> include/linux/kern_levels.h:5:18: warning: format '%p' expects argument of type 'void *', but argument 4 has type 'unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:116:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_vb_qop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:124:2: note: in expansion of macro 'log_vb_qop' log_vb_qop(vb, op); \ ^~~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:378:10: note: in expansion of macro 'call_vb_qop' ret = call_vb_qop(vb, buf_init, vb); ^~~~~~~~~~~ >> include/linux/kern_levels.h:5:18: warning: format '%d' expects argument of type 'int', but argument 5 has type 'char *' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:116:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_vb_qop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:124:2: note: in expansion of macro 'log_vb_qop' log_vb_qop(vb, op); \ ^~~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:378:10: note: in expansion of macro 'call_vb_qop' ret = call_vb_qop(vb, buf_init, vb); ^~~~~~~~~~~ include/linux/kern_levels.h:5:18: warning: format '%s' expects a matching 'char *' argument [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:116:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_vb_qop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:124:2: note: in expansion of macro 'log_vb_qop' log_vb_qop(vb, op); \ ^~~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:378:10: note: in expansion of macro 'call_vb_qop' ret = call_vb_qop(vb, buf_init, vb); ^~~~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c: In function '__vb2_queue_free': >> include/linux/kern_levels.h:5:18: warning: format '%p' expects argument of type 'void *', but argument 4 has type 'unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:116:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_vb_qop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:134:2: note: in expansion of macro 'log_vb_qop' log_vb_qop(vb, op); \ ^~~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:453:4: note: in expansion of macro 'call_void_vb_qop' call_void_vb_qop(vb, buf_cleanup, vb); ^~~~~~~~~~~~~~~~ >> include/linux/kern_levels.h:5:18: warning: format '%d' expects argument of type 'int', but argument 5 has type 'char *' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:116:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_vb_qop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:134:2: note: in expansion of macro 'log_vb_qop' log_vb_qop(vb, op); \ ^~~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:453:4: note: in expansion of macro 'call_void_vb_qop' call_void_vb_qop(vb, buf_cleanup, vb); ^~~~~~~~~~~~~~~~ include/linux/kern_levels.h:5:18: warning: format '%s' expects a matching 'char *' argument [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:116:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_vb_qop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:134:2: note: in expansion of macro 'log_vb_qop' log_vb_qop(vb, op); \ ^~~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:453:4: note: in expansion of macro 'call_void_vb_qop' call_void_vb_qop(vb, buf_cleanup, vb); ^~~~~~~~~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c: In function 'vb2_buffer_in_use': >> include/linux/kern_levels.h:5:18: warning: format '%p' expects argument of type 'void *', but argument 4 has type 'unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:63:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:547:19: note: in expansion of macro 'call_memop' if (mem_priv && call_memop(vb, num_users, mem_priv) > 1) ^~~~~~~~~~ >> include/linux/kern_levels.h:5:18: warning: format '%d' expects argument of type 'int', but argument 5 has type 'char *' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:63:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:547:19: note: in expansion of macro 'call_memop' if (mem_priv && call_memop(vb, num_users, mem_priv) > 1) ^~~~~~~~~~ include/linux/kern_levels.h:5:18: warning: format '%s' expects a matching 'char *' argument [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:63:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:547:19: note: in expansion of macro 'call_memop' if (mem_priv && call_memop(vb, num_users, mem_priv) > 1) ^~~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c: In function 'vb2_plane_vaddr': >> include/linux/kern_levels.h:5:18: warning: format '%p' expects argument of type 'void *', but argument 4 has type 'unsigned int' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:75:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:881:9: note: in expansion of macro 'call_ptr_memop' return call_ptr_memop(vb, vaddr, vb->planes[plane_no].mem_priv); ^~~~~~~~~~~~~~ >> include/linux/kern_levels.h:5:18: warning: format '%d' expects argument of type 'int', but argument 5 has type 'char *' [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:75:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:881:9: note: in expansion of macro 'call_ptr_memop' return call_ptr_memop(vb, vaddr, vb->planes[plane_no].mem_priv); ^~~~~~~~~~~~~~ include/linux/kern_levels.h:5:18: warning: format '%s' expects a matching 'char *' argument [-Wformat=] #define KERN_SOH "\001" /* ASCII Start Of Header */ ^ include/linux/kern_levels.h:14:19: note: in expansion of macro 'KERN_SOH' #define KERN_INFO KERN_SOH "6" /* informational */ ^~~~~~~~ include/linux/printk.h:311:9: note: in expansion of macro 'KERN_INFO' printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:40:4: note: in expansion of macro 'pr_info' pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:54:2: note: in expansion of macro 'dprintk' dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ ^~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:75:2: note: in expansion of macro 'log_memop' log_memop(vb, op); \ ^~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c:881:9: note: in expansion of macro 'call_ptr_memop' return call_ptr_memop(vb, vaddr, vb->planes[plane_no].mem_priv); ^~~~~~~~~~~~~~ drivers/media/common/videobuf2/videobuf2-core.c: In function 'vb2_plane_cookie': vim +/pr_info +40 drivers/media//common/videobuf2/videobuf2-core.c 36 37 #define dprintk(q, level, fmt, arg...) \ 38 do { \ 39 if (debug >= level) \ > 40 pr_info("(q=%p) %s: " fmt, q, __func__, ## arg);\ 41 } while (0) 42 43 #ifdef CONFIG_VIDEO_ADV_DEBUG 44 45 /* 46 * If advanced debugging is on, then count how often each op is called 47 * successfully, which can either be per-buffer or per-queue. 48 * 49 * This makes it easy to check that the 'init' and 'cleanup' 50 * (and variations thereof) stay balanced. 51 */ 52 53 #define log_memop(vb, op) \ > 54 dprintk((vb)->vb2_queue, 2, "call_memop(%p, %d, %s)%s\n", \ 55 (vb)->index, #op, \ 56 (vb)->vb2_queue->mem_ops->op ? "" : " (nop)") 57 58 #define call_memop(vb, op, args...) \ 59 ({ \ 60 struct vb2_queue *_q = (vb)->vb2_queue; \ 61 int err; \ 62 \ 63 log_memop(vb, op); \ 64 err = _q->mem_ops->op ? _q->mem_ops->op(args) : 0; \ 65 if (!err) \ 66 (vb)->cnt_mem_ ## op++; \ 67 err; \ 68 }) 69 70 #define call_ptr_memop(vb, op, args...) \ 71 ({ \ 72 struct vb2_queue *_q = (vb)->vb2_queue; \ 73 void *ptr; \ 74 \ > 75 log_memop(vb, op); \ 76 ptr = _q->mem_ops->op ? _q->mem_ops->op(args) : NULL; \ 77 if (!IS_ERR_OR_NULL(ptr)) \ 78 (vb)->cnt_mem_ ## op++; \ 79 ptr; \ 80 }) 81 82 #define call_void_memop(vb, op, args...) \ 83 ({ \ 84 struct vb2_queue *_q = (vb)->vb2_queue; \ 85 \ 86 log_memop(vb, op); \ 87 if (_q->mem_ops->op) \ 88 _q->mem_ops->op(args); \ 89 (vb)->cnt_mem_ ## op++; \ 90 }) 91 92 #define log_qop(q, op) \ 93 dprintk(q, 2, "call_qop(%p, %s)%s\n", q, #op, \ 94 (q)->ops->op ? "" : " (nop)") 95 96 #define call_qop(q, op, args...) \ 97 ({ \ 98 int err; \ 99 \ 100 log_qop(q, op); \ 101 err = (q)->ops->op ? (q)->ops->op(args) : 0; \ 102 if (!err) \ 103 (q)->cnt_ ## op++; \ 104 err; \ 105 }) 106 107 #define call_void_qop(q, op, args...) \ 108 ({ \ 109 log_qop(q, op); \ 110 if ((q)->ops->op) \ 111 (q)->ops->op(args); \ 112 (q)->cnt_ ## op++; \ 113 }) 114 115 #define log_vb_qop(vb, op, args...) \ 116 dprintk((vb)->vb2_queue, 2, "call_vb_qop(%p, %d, %s)%s\n", \ 117 (vb)->index, #op, \ 118 (vb)->vb2_queue->ops->op ? "" : " (nop)") 119 120 #define call_vb_qop(vb, op, args...) \ 121 ({ \ 122 int err; \ 123 \ > 124 log_vb_qop(vb, op); \ 125 err = (vb)->vb2_queue->ops->op ? \ 126 (vb)->vb2_queue->ops->op(args) : 0; \ 127 if (!err) \ 128 (vb)->cnt_ ## op++; \ 129 err; \ 130 }) 131 132 #define call_void_vb_qop(vb, op, args...) \ 133 ({ \ 134 log_vb_qop(vb, op); \ 135 if ((vb)->vb2_queue->ops->op) \ 136 (vb)->vb2_queue->ops->op(args); \ 137 (vb)->cnt_ ## op++; \ 138 }) 139 140 #else 141 142 #define call_memop(vb, op, args...) \ 143 ((vb)->vb2_queue->mem_ops->op ? \ 144 (vb)->vb2_queue->mem_ops->op(args) : 0) 145 146 #define call_ptr_memop(vb, op, args...) \ 147 ((vb)->vb2_queue->mem_ops->op ? \ 148 (vb)->vb2_queue->mem_ops->op(args) : NULL) 149 150 #define call_void_memop(vb, op, args...) \ 151 do { \ 152 if ((vb)->vb2_queue->mem_ops->op) \ 153 (vb)->vb2_queue->mem_ops->op(args); \ 154 } while (0) 155 156 #define call_qop(q, op, args...) \ 157 ((q)->ops->op ? (q)->ops->op(args) : 0) 158 159 #define call_void_qop(q, op, args...) \ 160 do { \ 161 if ((q)->ops->op) \ 162 (q)->ops->op(args); \ 163 } while (0) 164 165 #define call_vb_qop(vb, op, args...) \ 166 ((vb)->vb2_queue->ops->op ? (vb)->vb2_queue->ops->op(args) : 0) 167 168 #define call_void_vb_qop(vb, op, args...) \ 169 do { \ 170 if ((vb)->vb2_queue->ops->op) \ 171 (vb)->vb2_queue->ops->op(args); \ 172 } while (0) 173 174 #endif 175 176 #define call_bufop(q, op, args...) \ 177 ({ \ 178 int ret = 0; \ 179 if (q && q->buf_ops && q->buf_ops->op) \ 180 ret = q->buf_ops->op(args); \ 181 ret; \ 182 }) 183 184 #define call_void_bufop(q, op, args...) \ 185 ({ \ 186 if (q && q->buf_ops && q->buf_ops->op) \ 187 q->buf_ops->op(args); \ 188 }) 189 190 static void __vb2_queue_cancel(struct vb2_queue *q); 191 static void __enqueue_in_driver(struct vb2_buffer *vb); 192 193 /* 194 * __vb2_buf_mem_alloc() - allocate video memory for the given buffer 195 */ 196 static int __vb2_buf_mem_alloc(struct vb2_buffer *vb) 197 { 198 struct vb2_queue *q = vb->vb2_queue; 199 void *mem_priv; 200 int plane; 201 int ret = -ENOMEM; 202 203 /* 204 * Allocate memory for all planes in this buffer 205 * NOTE: mmapped areas should be page aligned 206 */ 207 for (plane = 0; plane < vb->num_planes; ++plane) { 208 unsigned long size = PAGE_ALIGN(vb->planes[plane].length); 209 > 210 mem_priv = call_ptr_memop(vb, alloc, 211 q->alloc_devs[plane] ? : q->dev, 212 q->dma_attrs, size, q->dma_dir, q->gfp_flags); 213 if (IS_ERR_OR_NULL(mem_priv)) { 214 if (mem_priv) 215 ret = PTR_ERR(mem_priv); 216 goto free; 217 } 218 219 /* Associate allocator private data with this plane */ 220 vb->planes[plane].mem_priv = mem_priv; 221 } 222 223 return 0; 224 free: 225 /* Free already allocated memory if one of the allocations failed */ 226 for (; plane > 0; --plane) { > 227 call_void_memop(vb, put, vb->planes[plane - 1].mem_priv); 228 vb->planes[plane - 1].mem_priv = NULL; 229 } 230 231 return ret; 232 } 233 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip