From nobody Mon Feb 27 10:11:57 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PQGWK2HJQz3tvWX for ; Mon, 27 Feb 2023 10:11:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PQGWK02X0z4BJ7 for ; Mon, 27 Feb 2023 10:11:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677492717; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=i92gd1sbiOtFhL8FrbkSG3wco74UJ0OGP3lQwGv6EgU=; b=YhOdKDF8j5WMJIfsgjffQTTrZg2V/9YcQ2Ozg0ri+zQfkPQMiIuZBwFUDhRg7mpD+TaKSQ qBn2wMSggswAnfy7RufWbkoQPrU6ZpzyDlRtjAZuTFoddlC7iz7vpu/Oa0ZxrWJFqMP6hm PgKW9Cm0DkSpixS0NRZ9x5u9ZY2W3YCk59G60KpxXqTcn1xAJjgbDUsuMiBuAVbTtAqG2f KAgv0q3QzDHLt5xtdWZy2yxOTHQ1q0Wt1xWwPwWxLWdzahLzXD4fsZI6piyDm/8S0VCu2B 9zDlgOJDnRPhgI6HNRtlT35KLQJDAwA2NkfweaIkdiqA+THvGzW6VwkJKC89iA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677492717; a=rsa-sha256; cv=none; b=lY0g3oAbw8fkkJt+CEWAxtqpIaaT8cAodNznT4t0BvLdwXdSCEHr8JjPj++ctVcPI8Cqco SIlrdU8Qwxxo5BcC3904oFwz376YCSi2ROiLop3PzyzkxPcjRNmTgwPaz1mbttldgasZ7G zniJPIWscX2jtam9HmyVcUY7w+rzsL1OFDJ2TvcmEOWVubAdokOGWiME+v8Al/QKEoX1Ci 1nvZN37uQthX1HZUpFp0SJepK5jFkTbnRtGi54Ahswo5dO3BEC9qzYO6Q5ljG/vzHg84m5 +Kb5OGgGxDdoQoik5qi++YCHNPi1SLQaU+ZaPt08w4V+t4X3DVOXceNcWd9A5A== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PQGWJ6CJMzMf1 for ; Mon, 27 Feb 2023 10:11:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 31RABuC7050742 for ; Mon, 27 Feb 2023 10:11:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 31RABuRW050741 for bugs@FreeBSD.org; Mon, 27 Feb 2023 10:11:56 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Mon, 27 Feb 2023 10:11:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: Trond.Endrestol@ximalas.info X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N 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.=