[Bug 269849] Compile error for sys/dev/atkbdc/psm.c when specifying KBD_DELAY1 and/or KBD_DELAY2 in kernel configuration file
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 269849] Compile error for sys/dev/atkbdc/psm.c when specifying KBD_DELAY1 and/or KBD_DELAY2 in kernel configuration file"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 269849] Compile error for sys/dev/atkbdc/psm.c when specifying KBD_DELAY1 and/or KBD_DELAY2 in kernel configuration file"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 27 Feb 2023 10:11:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269849 Bug ID: 269849 Summary: Compile error for sys/dev/atkbdc/psm.c when specifying KBD_DELAY1 and/or KBD_DELAY2 in kernel configuration file Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: Trond.Endrestol@ximalas.info Created attachment 240442 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=240442&action=edit Patch for sys/dev/atkbdc/psm.c ensuring KBD_DELAY1 and/or KBD_DELAY2 are defined as early as possible Those who specify KBD_DELAY1 and/or KBD_DELAY2 in their kernel configuration files, end up with these error messages: --- psm.o --- In file included from /usr/src/sys/dev/atkbdc/psm.c:100: In file included from /usr/src/sys/dev/atkbdc/atkbdcreg.h:39: ./opt_kbd.h:1:9: error: 'KBD_DELAY1' macro redefined [-Werror,-Wmacro-redefined] #define KBD_DELAY1 200 ^ /usr/src/sys/dev/kbd/kbdreg.h:155:9: note: previous definition is here #define KBD_DELAY1 500 ^ In file included from /usr/src/sys/dev/atkbdc/psm.c:100: In file included from /usr/src/sys/dev/atkbdc/atkbdcreg.h:39: ./opt_kbd.h:3:9: error: 'KBD_DELAY2' macro redefined [-Werror,-Wmacro-redefined] #define KBD_DELAY2 15 ^ /usr/src/sys/dev/kbd/kbdreg.h:158:9: note: previous definition is here #define KBD_DELAY2 100 ^ 2 errors generated. -- You are receiving this mail because: You are the assignee for the bug.