[asahilinux:tbt-reset-wip 16/16] drivers/pci/probe.c:6:9: warning: 'DEBUG' macro redefined

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://github.com/AsahiLinux/linux tbt-reset-wip
head:   bb0656db5a81399cee865239cc885749f06e3d04
commit: bb0656db5a81399cee865239cc885749f06e3d04 [16/16] enable debug in various places
config: sparc64-randconfig-r071-20260809 (https://download.01.org/0day-ci/archive/20260810/[email protected]/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 12df34b8469b8095359de8c249cb1b2753fadeea)
smatch: v0.5.0-9187-g5189e3fb
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260810/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

>> drivers/pci/probe.c:6:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
       6 | #define DEBUG
         |         ^
   <command line>:3:9: note: previous definition is here
       3 | #define DEBUG 1
         |         ^
   1 warning generated.


vim +/DEBUG +6 drivers/pci/probe.c

   > 6	#define DEBUG
     7	#include <linux/array_size.h>
     8	#include <linux/kernel.h>
     9	#include <linux/delay.h>
    10	#include <linux/init.h>
    11	#include <linux/pci.h>
    12	#include <linux/msi.h>
    13	#include <linux/of_pci.h>
    14	#include <linux/of_platform.h>
    15	#include <linux/platform_device.h>
    16	#include <linux/pci_hotplug.h>
    17	#include <linux/slab.h>
    18	#include <linux/sprintf.h>
    19	#include <linux/module.h>
    20	#include <linux/cpumask.h>
    21	#include <linux/aer.h>
    22	#include <linux/acpi.h>
    23	#include <linux/hypervisor.h>
    24	#include <linux/irqdomain.h>
    25	#include <linux/pm_runtime.h>
    26	#include <linux/bitfield.h>
    27	#include <trace/events/pci.h>
    28	#include "pci.h"
    29	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.