Merge branch 'akpm' (patches from Andrew Morton)
Merge misc fixes from Andrew Morton: "Six fixes" * emailed patches from Andrew Morton <akpm@linux-foundation.org>: drivers/rtc/rtc-s5m.c: terminate s5m_rtc_id array with empty element printk: add dummy routine for when CONFIG_PRINTK=n mm/vmscan: fix highidx argument type memcg: remove extra newlines from memcg oom kill log x86, build: replace Perl script with Shell script mm: page_alloc: embed OOM killing naturally into allocation slowpath
This commit is contained in:
commit
4adca1cbc4
9 changed files with 94 additions and 98 deletions
|
|
@ -85,11 +85,6 @@ static inline void oom_killer_enable(void)
|
|||
oom_killer_disabled = false;
|
||||
}
|
||||
|
||||
static inline bool oom_gfp_allowed(gfp_t gfp_mask)
|
||||
{
|
||||
return (gfp_mask & __GFP_FS) && !(gfp_mask & __GFP_NORETRY);
|
||||
}
|
||||
|
||||
extern struct task_struct *find_lock_task_mm(struct task_struct *p);
|
||||
|
||||
static inline bool task_will_free_mem(struct task_struct *task)
|
||||
|
|
|
|||
|
|
@ -10,9 +10,6 @@
|
|||
extern const char linux_banner[];
|
||||
extern const char linux_proc_banner[];
|
||||
|
||||
extern char *log_buf_addr_get(void);
|
||||
extern u32 log_buf_len_get(void);
|
||||
|
||||
static inline int printk_get_level(const char *buffer)
|
||||
{
|
||||
if (buffer[0] == KERN_SOH_ASCII && buffer[1]) {
|
||||
|
|
@ -163,6 +160,8 @@ extern int kptr_restrict;
|
|||
|
||||
extern void wake_up_klogd(void);
|
||||
|
||||
char *log_buf_addr_get(void);
|
||||
u32 log_buf_len_get(void);
|
||||
void log_buf_kexec_setup(void);
|
||||
void __init setup_log_buf(int early);
|
||||
void dump_stack_set_arch_desc(const char *fmt, ...);
|
||||
|
|
@ -198,6 +197,16 @@ static inline void wake_up_klogd(void)
|
|||
{
|
||||
}
|
||||
|
||||
static inline char *log_buf_addr_get(void)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline u32 log_buf_len_get(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline void log_buf_kexec_setup(void)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue