Created attachment 215052 [details] cpufreq_dt.c Tested on head r361642 If DEBUG is defined in the kernel configuration for example in std.armv7 [see attached] the kernel will not build due to redefinition of DEBUG in cpufreq_dt.c. Attach simple patch replacing DEBUG with DPRINTF.
Created attachment 215053 [details] kernel conf add DEBUG to std.armv7
Looks ok but can you put the patch on reviews.freebsd.org please ?
(In reply to Emmanuel Vadot from comment #2) Yes, i will do that.
(In reply to Oskar Holmlund from comment #3) Did you get a chance to do this? Just want to make sure that the patch is not forgotten.
(In reply to Mark Johnston from comment #4) Thank you for asking; here it is: https://reviews.freebsd.org/D25080
A commit references this bug: Author: manu Date: Tue Jun 9 09:42:39 UTC 2020 New revision: 361964 URL: https://svnweb.freebsd.org/changeset/base/361964 Log: coufreq_dt: Rename DEBUG to DPRINTF DEBUG is a kernel configuration flag and if used cpufreq_dt.c will fail the build of kernel. PR: 246867 Submitted by: Oskar Holmund (oskar.holmlund@ohdata.se) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D25080 Changes: head/sys/dev/cpufreq/cpufreq_dt.c
A commit references this bug: Author: manu Date: Fri Jun 19 19:33:19 UTC 2020 New revision: 362417 URL: https://svnweb.freebsd.org/changeset/base/362417 Log: MFC r361964: coufreq_dt: Rename DEBUG to DPRINTF DEBUG is a kernel configuration flag and if used cpufreq_dt.c will fail the build of kernel. PR: 246867 Submitted by: Oskar Holmund (oskar.holmlund@ohdata.se) Differential Revision: https://reviews.freebsd.org/D25080 Changes: _U stable/12/ stable/12/sys/dev/cpufreq/cpufreq_dt.c