Date: Mon, 27 Feb 2023 10:11:57 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 269849] Compile error for sys/dev/atkbdc/psm.c when specifying KBD_DELAY1 and/or KBD_DELAY2 in kernel configuration file Message-ID: <bug-269849-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269849 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=3D240442&action= =3Dedit 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269849-227>