Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp534874imm; Wed, 4 Jul 2018 01:18:21 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcX3vdGmfHUWEPR4ccRDjAKSO76RO16WuAtgI3jsURYoxAPCSZaKYB7dUgFvMSwcjEJV/js X-Received: by 2002:a17:902:5a0c:: with SMTP id q12-v6mr1115518pli.300.1530692301201; Wed, 04 Jul 2018 01:18:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530692301; cv=none; d=google.com; s=arc-20160816; b=s19yZmLJx+F6JyRW/JKT/HQCVH6exxrT1bT2RCOr5MS3vOLTCC4JXnHpuG1rdWjNkO hjs9h8yRRNryTARmc0xiTKuW3wg2d2e3t1vuxWSoauRQk8x6z/fw1dXP9D1LkQxcrFSU HvWPjj6QVAxczw+IRCRc+jVhPhtzcp3weHVAVCrnKgvwEDA0tdeP0FElq6HeEUh0pkXD os5OEL7lUoyLf9unS5Mo77juVdnkJWqVDB7IXFfbD+V0jr2+eb2je6fQA7KINun0Qp5n MFyZTCs9jI6QrCZ1VGONdM/E8gyN0Yr+B951jHu1LMIFEJ1swM9RPOEBSWeVSEUddLaO 10rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=HLfio8zYSI576Vam6OUjyh/NK/WwjhCC3gmNZHx0Z1w=; b=JqNfdccHBlFLXZY8PmoisblJcdiwGrJHSq3M9sQLnI6kTOwaUBZTMl98/d+Lq2G/ix 05OIdoY6c5nWUO8TMPl+eUhsmwL4aMmmFX5enAS24fDGwtKViaP1nuBemWOx6AeoBfk2 V/EWjiVtE3wz7C0ZEIHK+HyCaeaLOVzo4SbTPWnzQF6aH3FKadpsTCGbUQGO3ozLjcCS zuzoZpLGIRA9DA3mb91+B4wqrPuq1CNMOwr6TFIt99TaAM9vrI+Q6m6kcHqqx9iZAQZ5 SxcEBYWjxShcIwXTNXwSoYCt1mTGNFLkZkap4TVJMkS5A8IbDmPB0ljUqL5GH5J1qoOs TcyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b205-v6si3317539pfb.358.2018.07.04.01.18.06; Wed, 04 Jul 2018 01:18:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934214AbeGDIRO (ORCPT + 99 others); Wed, 4 Jul 2018 04:17:14 -0400 Received: from mx2.suse.de ([195.135.220.15]:60952 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932346AbeGDIRM (ORCPT ); Wed, 4 Jul 2018 04:17:12 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 96971AFA9; Wed, 4 Jul 2018 08:17:11 +0000 (UTC) Date: Wed, 4 Jul 2018 10:17:10 +0200 From: Michal Hocko To: =?utf-8?B?56a56Iif6ZSu?= Cc: andy.shevchenko@gmail.com, akpm@linux-foundation.org, rientjes@google.com, kirill.shutemov@linux.intel.com, aarcange@redhat.com, penguin-kernel@i-love.sakura.ne.jp, guro@fb.com, yang.s@alibaba-inc.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Wind Yu Subject: Re: [PATCH v11 1/2] Refactor part of the oom report in dump_header Message-ID: <20180704081710.GH22503@dhcp22.suse.cz> References: <1530376739-20459-1-git-send-email-ufo19890607@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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