[wsa:i2c/for-next 11/14] drivers//i2c/i2c-stub.c:18:0: warning: "DEBUG" redefined

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next
head:   f9831bfec7414d8f54f064b6b21de0685f107a47
commit: 6c42778780c40c7db0ee2bb56436cae86e4c1ba4 [11/14] i2c: stub: use pr_fmt
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 6c42778780c40c7db0ee2bb56436cae86e4c1ba4
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

All warnings (new ones prefixed by >>):

>> drivers//i2c/i2c-stub.c:18:0: warning: "DEBUG" redefined
    #define DEBUG
    ^
   <command-line>:0:0: note: this is the location of the previous definition

vim +/DEBUG +18 drivers//i2c/i2c-stub.c

     2	    i2c-stub.c - I2C/SMBus chip emulator
     3	
     4	    Copyright (c) 2004 Mark M. Hoffman <mhoffman@xxxxxxxxxxxxx>
     5	    Copyright (C) 2007-2014 Jean Delvare <jdelvare@xxxxxxx>
     6	
     7	    This program is free software; you can redistribute it and/or modify
     8	    it under the terms of the GNU General Public License as published by
     9	    the Free Software Foundation; either version 2 of the License, or
    10	    (at your option) any later version.
    11	
    12	    This program is distributed in the hope that it will be useful,
    13	    but WITHOUT ANY WARRANTY; without even the implied warranty of
    14	    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    15	    GNU General Public License for more details.
    16	*/
    17	
  > 18	#define DEBUG
    19	#define pr_fmt(fmt) "i2c-stub: " fmt
    20	
    21	#include <linux/errno.h>
    22	#include <linux/i2c.h>
    23	#include <linux/init.h>
    24	#include <linux/kernel.h>
    25	#include <linux/list.h>
    26	#include <linux/module.h>

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux