lkml.org 
[lkml]   [2018]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v11 1/2] Refactor part of the oom report in dump_header
On Thu, Jul 5, 2018 at 2:23 PM, 禹舟键 <ufo19890607@gmail.com> wrote:
> Hi Michal and Andy

> The enum oom_constraint will be added in the struct oom_control. So
> I still think I should define it in oom.h.

You missed the point. I'm talking about an array of string literals.
Please, check what the warning I got from the compiler.

> Michal Hocko <mhocko@kernel.org> 于2018年7月4日周三 下午4:17写道:
>>
>> On Wed 04-07-18 10:25:30, 禹舟键 wrote:
>> > Hi Andy
>> > The const char array need to be used by the new func
>> > mem_cgroup_print_oom_context and some funcs in oom_kill.c in the
>> > second patch.
>>
>> Just declare it in oom.h and define in oom.c
>> --
>> Michal Hocko
>> SUSE Labs



--
With Best Regards,
Andy Shevchenko

\
 
 \ /
  Last update: 2018-07-05 14:25    [W:0.061 / U:0.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site