On 2026/05/26 16:51, Jan Schreiber wrote: > Hi, > > when trying to build the kernel with 'option ATOM_DEBUG' it > fails with the message: "error: 'ATOM_DEBUG' macro redefined > [-Werror,-fined]" in sys/dev/pci/drm/radeon/atom.c > > For 'option DEBUG' it fails in sys/dev/pci/drm/amd/amdgpu/atom.c > with "error: 'DEBUG' macro redefined [-Werror,-Wmacro-redefined]". > > Thanks, > Jan >
In short: already defined, so if it hadn't broken the build, setting "option ATOM_DEBUG" wouldn't have done anything anyway. These xxx_DEBUG are typically done by editing the relevant source file and using #define there. Sometimes those might end up committed, that is the case here: /sys/dev/pci/drm/amd/amdgpu/atom.c 34:#define ATOM_DEBUG /sys/dev/pci/drm/radeon/atom.c 35:#define ATOM_DEBUG this could happen e.g. if it's suspected there might be issues with a driver etc and we want to get more information from any dmesg that are sent in.
