History

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

Linus Torvalds committed 11 years ago

Commit 4adca1c2 parents c976a67 45cd15e9 files · +94 −98Browse files

Showing the changes to include (2 of 9 files). Show all

Unified · Split

2 files
  1. include/linux/oom.h +0 −5
  2. include/linux/printk.h +12 −3
include/linux/oom.h+0−5
@@ -85,11 +85,6 @@ static inline void oom_killer_enable(void) · 84 unmodified lines
8585 oom_killer_disabled = false;
8686 }
8787
88−static inline bool oom_gfp_allowed(gfp_t gfp_mask)
89−{
90− return (gfp_mask & __GFP_FS) && !(gfp_mask & __GFP_NORETRY);
91−}
92−
9388 extern struct task_struct *find_lock_task_mm(struct task_struct *p);
9489
9590 static inline bool task_will_free_mem(struct task_struct *task)
include/linux/printk.h+12−3
@@ -10,9 +10,6 @@ · 9 unmodified lines
1010 extern const char linux_banner[];
1111 extern const char linux_proc_banner[];
1212
13−extern char *log_buf_addr_get(void);
14−extern u32 log_buf_len_get(void);
15−
1613 static inline int printk_get_level(const char *buffer)
1714 {
1815 if (buffer[0] == KERN_SOH_ASCII && buffer[1]) {
@@ -163,6 +160,8 @@ extern int kptr_restrict; · 144 unmodified lines
163160
164161 extern void wake_up_klogd(void);
165162
163+char *log_buf_addr_get(void);
164+u32 log_buf_len_get(void);
166165 void log_buf_kexec_setup(void);
167166 void __init setup_log_buf(int early);
168167 void dump_stack_set_arch_desc(const char *fmt, ...);
@@ -198,6 +197,16 @@ static inline void wake_up_klogd(void) · 29 unmodified lines
198197 {
199198 }
200199
200+static inline char *log_buf_addr_get(void)
201+{
202+ return NULL;
203+}
204+
205+static inline u32 log_buf_len_get(void)
206+{
207+ return 0;
208+}
209+
201210 static inline void log_buf_kexec_setup(void)
202211 {
203212 }