From patchwork Thu May 3 19:29:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Thelen X-Patchwork-Id: 10379023 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 89C27603B4 for ; Thu, 3 May 2018 19:29:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8178F29259 for ; Thu, 3 May 2018 19:29:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 761B22925D; Thu, 3 May 2018 19:29:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, USER_IN_DEF_DKIM_WL autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF76D29259 for ; Thu, 3 May 2018 19:29:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 26AA26B0007; Thu, 3 May 2018 15:29:50 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 21A1B6B0009; Thu, 3 May 2018 15:29:50 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0E32C6B000A; Thu, 3 May 2018 15:29:50 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-yw0-f199.google.com (mail-yw0-f199.google.com [209.85.161.199]) by kanga.kvack.org (Postfix) with ESMTP id CEBC56B0007 for ; Thu, 3 May 2018 15:29:49 -0400 (EDT) Received: by mail-yw0-f199.google.com with SMTP id p75-v6so8902162ywe.22 for ; Thu, 03 May 2018 12:29:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:mime-version:date:message-id :subject:from:to:cc; bh=E1dzKihO0a/eCsSsRKJDykOOh9XP0VSN3rLgam2hEY4=; b=ExPfcMwzXr+pVeHZBJCYp3T0LsZp7yDyIg8oHf7OpQ7/aJgC5KFt/HaPnFNbFQa24v g4cvCsx/64ZVpe5Hnc6yKYA7th+CgM1XJKth+G2eg+Kp898bVy+t6JdlWOW4scYMB937 mjiFqqlDwOKk5jrqOVkfJJN1I/r4M3ZeFfaBsxhcjI4ZtKoQDf1tB5PncebwSquXvVYx z06W8kgVrlq73ynZ5fjpIyafv9R5Vzoasu2Gxf3ypmiiGXg/apALF++LjyOHRXueK9pa 6EdEX0hY5ZfKuC0sGqprZCv9hAMUwOcBOlhQUr9J+dJlYj6J0ymurcsqOy37xf1/Q1zS PT2w== X-Gm-Message-State: ALQs6tBnhuAggRZjx1Hv+6YPXGmmQYj4cOFE7Q40R6xDmX/2cQpNhgRe eSDiq+WfCtp0ruGaEOZgE6/fRu6W9AOocqfWdQ0yEXquJ3NceQ0fO4DzpIT9IWuz3OLcwmlEMAI 92/Itsivkd1WEtLJZQvm14d/2uJUL+9MF7dC+/GjaHjvMZ4PoPoeArwZv3SX8yVU/2tmJFRl3sk FovhXKSSAQWEIOqCLnu57D4Cl2CSaKPKYxae2xHAAfqOdD3kEiGXVPkOvPK2qsXGe9EvQlCNe/t URoRKB9uIm+yR5tkeoK5Ecd3wXROlAW9O8C7n3vNusFhatzNqpTrnIO/fDt+ntc6i5+KQ1RMn5y mRzO7mQE78uVyRqr9F2/eaQSCecDSn/T/MsoNkyQmyNxR7ijiHxyh5mNyK/KZTp6Z7gJKsg0QTy M X-Received: by 2002:a25:cdca:: with SMTP id d193-v6mr4013110ybf.300.1525375789415; Thu, 03 May 2018 12:29:49 -0700 (PDT) X-Received: by 2002:a25:cdca:: with SMTP id d193-v6mr4013054ybf.300.1525375787343; Thu, 03 May 2018 12:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525375787; cv=none; d=google.com; s=arc-20160816; b=K7uGxgUKptpSQDpuUk4h2dkeHn6Yz39/0UEUgKSRoe1tljEFqhpvUeOdw/OOEcPb+C A8RBkauz/tqTxMHbSOzrvWFhZdJXzPu1atvMp/uyqBT7nehkcV4Xav6STVWYnqZNqtf/ eiSw8e2El6RA02YeUvpWtDiDqfYAExPAj6ILhvz+3ILiDTeKu6x9udFdBcEz1KYN2G1Y wcI9Az2qlw6yWxj8FCdtiCwyQc3vsIDjvWRwwhpM2E+PytuDjY3AfFue35d+qOyycLFZ BERpJo7rK71j57OU8Q0jn72MDqYqy3TuI4mQg0n/1TKMBeAllvVGoELf2gIPzCVKTXqn e1HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:date:mime-version:dkim-signature :arc-authentication-results; bh=E1dzKihO0a/eCsSsRKJDykOOh9XP0VSN3rLgam2hEY4=; b=i8ZLnSTlYKcBjw3QktlkV++VzWR61ic0z8B0t9FNfctURmZtay0U7YNamZ7ocJ1Xns rB8weYSdRW4zgxwXrREBk/yYqAgF9JtUxIgnb9iRkdcjHVrAHMoPSihhx4lzQ+fo+AEd B6nrDnWu0U7MaGQCjda+mg4ltzTRRQjDOHu47mSxNIQbVHBWZipywBXWha56sd/Gqwnu ajIGJi6Wv3ApvEJImHdrn6+3PTGWoG+56MadkkmA9McebJdj0kiGvmb1GffEgyNY+IOc luY6r0GJJu9YIz8dO3n+UCgipEg0jd/zhIhMxXGQt+t+A2SpY1mRpF6EdaGeQ6DkuOQq w2AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=YpACd/yp; spf=pass (google.com: domain of 3kmprwgckchsfsgdkdmfnnfkd.bnlkhmtw-lljuzbj.nqf@flex--gthelen.bounces.google.com designates 209.85.220.73 as permitted sender) smtp.mailfrom=3KmPrWgcKCHsfsgdkdmfnnfkd.bnlkhmtw-lljuZbj.nqf@flex--gthelen.bounces.google.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from mail-sor-f73.google.com (mail-sor-f73.google.com. [209.85.220.73]) by mx.google.com with SMTPS id y123-v6sor3668175ywg.308.2018.05.03.12.29.47 for (Google Transport Security); Thu, 03 May 2018 12:29:47 -0700 (PDT) Received-SPF: pass (google.com: domain of 3kmprwgckchsfsgdkdmfnnfkd.bnlkhmtw-lljuzbj.nqf@flex--gthelen.bounces.google.com designates 209.85.220.73 as permitted sender) client-ip=209.85.220.73; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=YpACd/yp; spf=pass (google.com: domain of 3kmprwgckchsfsgdkdmfnnfkd.bnlkhmtw-lljuzbj.nqf@flex--gthelen.bounces.google.com designates 209.85.220.73 as permitted sender) smtp.mailfrom=3KmPrWgcKCHsfsgdkdmfnnfkd.bnlkhmtw-lljuZbj.nqf@flex--gthelen.bounces.google.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:date:message-id:subject:from:to:cc; bh=E1dzKihO0a/eCsSsRKJDykOOh9XP0VSN3rLgam2hEY4=; b=YpACd/ypEUsTiACfXuTbyLPT202YLFNIxhNbkP85A3srpm9aVaEWMl90Ef5oZSy3Kf cyf7ZEDfsB+1z1MKFK8dWCKYr2j6/cMEEhIHhw9bHBoG71DhPteQ9CPXAzDGPtDVyjNu jlhRzcB+vS2HcvH+ypjIPjbRWTceIrg3kGXoO79CaJf/7dww8uSYAGceOVC/JWUthDRr ipKKO7z2ZOHdpdu4kn45f8ZSf1Cxsi5yVp5p/FULxXLXviO7ySw5cWt3RPrud/+NJ6tk 5VM0Wi7Mpam5K3fc7KCjEH8hVqF5C6QPMIXqe6GhMxD2fMHv73+2K26ll8rz2jZeVAV8 Pe/A== X-Google-Smtp-Source: AB8JxZpwE9pL7csxUBN7xLJjv7iMV4InZ/tkz2Rm2yAF35Azmm81jISZWuqwKQTy7aOQnSKI0ZJAgccystrf MIME-Version: 1.0 X-Received: by 2002:a81:6d8f:: with SMTP id i137-v6mr8365374ywc.150.1525375786832; Thu, 03 May 2018 12:29:46 -0700 (PDT) Date: Thu, 3 May 2018 12:29:40 -0700 Message-Id: <20180503192940.94971-1-gthelen@google.com> X-Mailer: git-send-email 2.17.0.441.gb46fe60e1d-goog Subject: [PATCH] memcg: mark memcg1_events static const From: Greg Thelen To: Johannes Weiner , Michal Hocko , Vladimir Davydov , Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Greg Thelen X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP Mark memcg1_events static: it's only used by memcontrol.c. And mark it const: it's not modified. Signed-off-by: Greg Thelen Acked-by: Michal Hocko --- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 2bd3df3d101a..c9c7e5ea0e2f 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -3083,7 +3083,7 @@ static int memcg_numa_stat_show(struct seq_file *m, void *v) #endif /* CONFIG_NUMA */ /* Universal VM events cgroup1 shows, original sort order */ -unsigned int memcg1_events[] = { +static const unsigned int memcg1_events[] = { PGPGIN, PGPGOUT, PGFAULT,