Skip to content

Commit

Permalink
sched/policy: move g_policy from data to rodata
Browse files Browse the repository at this point in the history
Signed-off-by: chao an <[email protected]>
  • Loading branch information
anchao committed Sep 2, 2024
1 parent 63ed723 commit d95180e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fs/procfs/fs_procfsproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ struct proc_envinfo_s
* Private Data
****************************************************************************/

static FAR const char *g_policy[4] =
static FAR const char * const g_policy[4] =
{
"SCHED_FIFO", "SCHED_RR", "SCHED_SPORADIC"
};
Expand Down
2 changes: 1 addition & 1 deletion sched/misc/assert.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@

static uintptr_t
g_last_regs[XCPTCONTEXT_REGS] aligned_data(XCPTCONTEXT_ALIGN);
static FAR const char *g_policy[4] =
static FAR const char * const g_policy[4] =
{
"FIFO", "RR", "SPORADIC"
};
Expand Down

0 comments on commit d95180e

Please sign in to comment.