[staging:staging-testing 203/209] drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.h:138:3: warning: the address of '__func__' will always evaluate as 'true'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing
head:   628b2b91d50c74e2475a11a0db5978d9a36d2026
commit: ab3287407598cb395309b6ec82333037d761130c [203/209] staging: vc04_services: bcm2835-camera: Simplify NULL comparisons
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout ab3287407598cb395309b6ec82333037d761130c
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All warnings (new ones prefixed by >>):

   In file included from include/media/v4l2-subdev.h:24:0,
                    from include/media/v4l2-device.h:25,
                    from drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c:22:
   drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c: In function 'vidioc_try_fmt_vid_overlay':
>> drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.h:138:3: warning: the address of '__func__' will always evaluate as 'true' [-Waddress]
      !desc ? "" : desc, \
      ^
   include/media/v4l2-common.h:69:44: note: in definition of macro 'v4l2_printk'
     printk(level "%s: " fmt, (dev)->name , ## arg)
                                               ^~~
>> drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.h:135:2: note: in expansion of macro 'v4l2_dbg'
     v4l2_dbg(level, debug, dev, \
     ^~~~~~~~
>> drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c:749:2: note: in expansion of macro 'v4l2_dump_win_format'
     v4l2_dump_win_format(1,
     ^~~~~~~~~~~~~~~~~~~~
   drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c: In function 'vidioc_g_fmt_vid_cap':
   drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.h:128:3: warning: the address of '__func__' will always evaluate as 'true' [-Waddress]
      !desc ? "" : desc, \
      ^
   include/media/v4l2-common.h:69:44: note: in definition of macro 'v4l2_printk'
     printk(level "%s: " fmt, (dev)->name , ## arg)
                                               ^~~
   drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.h:126:2: note: in expansion of macro 'v4l2_dbg'
     v4l2_dbg(level, debug, dev, \
     ^~~~~~~~
>> drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c:944:2: note: in expansion of macro 'v4l2_dump_pix_format'
     v4l2_dump_pix_format(1, bcm2835_v4l2_debug, &dev->v4l2_dev, &f->fmt.pix,
     ^~~~~~~~~~~~~~~~~~~~
   drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c: In function 'vidioc_try_fmt_vid_cap':
   drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.h:128:3: warning: the address of '__func__' will always evaluate as 'true' [-Waddress]
      !desc ? "" : desc, \
      ^
   include/media/v4l2-common.h:69:44: note: in definition of macro 'v4l2_printk'
     printk(level "%s: " fmt, (dev)->name , ## arg)
                                               ^~~
   drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.h:126:2: note: in expansion of macro 'v4l2_dbg'
     v4l2_dbg(level, debug, dev, \
     ^~~~~~~~
   drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c:997:2: note: in expansion of macro 'v4l2_dump_pix_format'
     v4l2_dump_pix_format(1, bcm2835_v4l2_debug, &dev->v4l2_dev, &f->fmt.pix,
     ^~~~~~~~~~~~~~~~~~~~

vim +138 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.h

   129			(pix_fmt)->width, (pix_fmt)->height, (pix_fmt)->field,	\
   130			(pix_fmt)->pixelformat, (pix_fmt)->bytesperline,	\
   131			(pix_fmt)->sizeimage, (pix_fmt)->colorspace, (pix_fmt)->priv); \
   132	}
   133	#define v4l2_dump_win_format(level, debug, dev, win_fmt, desc)	\
   134	{	\
 > 135		v4l2_dbg(level, debug, dev,	\
   136	"%s: w %u h %u l %u t %u  field %u chromakey %06X clip %p " \
   137	"clipcount %u bitmap %p\n", \
 > 138			!desc ? "" : desc,	\
   139			(win_fmt)->w.width, (win_fmt)->w.height, \
   140			(win_fmt)->w.left, (win_fmt)->w.top, \
   141			(win_fmt)->field,	\

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux