Make oom_score_adjust_is_valid() static

It has only one user and we don't need to put it in basic/.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2021-07-23 11:39:45 +02:00
parent 9c46228b7d
commit 6bf3c6c900
3 changed files with 5 additions and 6 deletions
-4
View File
@@ -1061,10 +1061,6 @@ _noreturn_ void freeze(void) {
pause();
}
bool oom_score_adjust_is_valid(int oa) {
return oa >= OOM_SCORE_ADJ_MIN && oa <= OOM_SCORE_ADJ_MAX;
}
unsigned long personality_from_string(const char *p) {
int architecture;
-2
View File
@@ -84,8 +84,6 @@ bool is_main_thread(void);
_noreturn_ void freeze(void);
bool oom_score_adjust_is_valid(int oa);
#ifndef PERSONALITY_INVALID
/* personality(7) documents that 0xffffffffUL is used for querying the
* current personality, hence let's use that here as error