Skip to content

Commit 39e873f

Browse files
anchaoxiaoxiang781216
authored andcommitted
sched/policy: move g_policy from data to rodata
Signed-off-by: chao an <[email protected]>
1 parent d1c7e18 commit 39e873f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fs/procfs/fs_procfsproc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ struct proc_envinfo_s
155155
* Private Data
156156
****************************************************************************/
157157

158-
static FAR const char *g_policy[4] =
158+
static FAR const char * const g_policy[4] =
159159
{
160160
"SCHED_FIFO", "SCHED_RR", "SCHED_SPORADIC"
161161
};

sched/misc/assert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393

9494
static uintptr_t
9595
g_last_regs[XCPTCONTEXT_REGS] aligned_data(XCPTCONTEXT_ALIGN);
96-
static FAR const char *g_policy[4] =
96+
static FAR const char * const g_policy[4] =
9797
{
9898
"FIFO", "RR", "SPORADIC"
9999
};

0 commit comments

Comments
 (0)