git: 45a12d8a2656 - main - Revert "speaker(4): move static data to bss"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 24 Apr 2026 22:07:23 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=45a12d8a2656bdf38e95f8e481c72aea0db6997f
commit 45a12d8a2656bdf38e95f8e481c72aea0db6997f
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2026-04-24 22:04:14 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2026-04-24 22:04:14 +0000
Revert "speaker(4): move static data to bss"
This reverts commit 690ef95b3354ac7a80aa469fa7a8f15f07962f83.
The commit message was wrong.
---
sys/dev/speaker/spkr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/dev/speaker/spkr.c b/sys/dev/speaker/spkr.c
index d6ae47fdae99..1280def98e79 100644
--- a/sys/dev/speaker/spkr.c
+++ b/sys/dev/speaker/spkr.c
@@ -158,7 +158,7 @@ struct spkr_state {
#define DENOM_MULT 2 /* denominator of dot multiplier */
/* letter to half-tone: A B C D E F G */
-static const int notetab[8] = {9, 11, 0, 2, 4, 5, 7};
+static int notetab[8] = {9, 11, 0, 2, 4, 5, 7};
/*
* This is the American Standard A440 Equal-Tempered scale with frequencies
@@ -166,7 +166,7 @@ static const int notetab[8] = {9, 11, 0, 2, 4, 5, 7};
* our octave 0 is standard octave 2.
*/
#define OCTAVE_NOTES 12 /* semitones per octave */
-static const int pitchtab[] =
+static int pitchtab[] =
{
/* C C# D D# E F F# G G# A A# B*/
/* 0 */ 65, 69, 73, 78, 82, 87, 93, 98, 103, 110, 117, 123,