Message ID | 20181113054950.77898-41-sashal@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BCF7E13B5 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 13 Nov 2018 05:50:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A1D5E2A287 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 13 Nov 2018 05:50:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9E1D02A30D; Tue, 13 Nov 2018 05:50:56 +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=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 3245E2A2D8 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 13 Nov 2018 05:50:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A83486B026D; Tue, 13 Nov 2018 00:50:49 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 9E50F6B026E; Tue, 13 Nov 2018 00:50:49 -0500 (EST) 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 8AE406B026F; Tue, 13 Nov 2018 00:50:49 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by kanga.kvack.org (Postfix) with ESMTP id 458846B026D for <linux-mm@kvack.org>; Tue, 13 Nov 2018 00:50:49 -0500 (EST) Received: by mail-pf1-f198.google.com with SMTP id 68so3675520pfr.6 for <linux-mm@kvack.org>; Mon, 12 Nov 2018 21:50:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:in-reply-to:references; bh=9GzhlHUs84p2WH8pQpTUt9cdXDvDp1wmIhMi42ebRBk=; b=VEfnLvIGvxusWOe23ZTmh+JbRQUyDcGexdSGOkk7gEHIOJaxuM5m0gsczpVbcR0j6A 7YvvmtWcE/pAwxVHxr0VGfemZb8b8jo0QNFTxpEkDIvfmB07ho37nsoMqFUbavznDLey 7aC7IM+GL00pIGA7AyWHOYjyj6UQmj62xTH/2yAxbR4YK29T2PhusLBcPN8+wMEp6Mwo 05bnRZ1DcEW4hZeuw8/c+b+rRLRVZrZGwqsJVUncIKUl8yEEunDwlnV+7yN0Fh63vqc0 b+h+xgAuronvqfBoDz4JL4L4VoHHogNFtEnvpqIOx3OkPQ0ABZ0Ls6KL2oIQwBT4fIWV YO2A== X-Gm-Message-State: AGRZ1gJyzmB/0ywguCuADbP4jIZshby57jlbEVVwC3p4kMERMstZ0VZQ JxqLiuP0eA5BiPjdtWonZMpWTD+XDWWMU0nhu3ofK8LRtG+fDRHEikZVziss1S0wFkRZxdT0v4t Ui4LF2tFaqHBMLyUbQPaKUSt9B5TZkrw/99lTdckKuG24DUBgpRnPLkLVLzeBhpda7g== X-Received: by 2002:a62:7e93:: with SMTP id z141-v6mr3909446pfc.241.1542088248963; Mon, 12 Nov 2018 21:50:48 -0800 (PST) X-Google-Smtp-Source: AJdET5dceA2UBhzl3PGXl0Cc6KtE5ang9BzAG2AIRUZ57bOnIb/zyeQYisuybG0K9IC+GO/RnJIu X-Received: by 2002:a62:7e93:: with SMTP id z141-v6mr3909398pfc.241.1542088248013; Mon, 12 Nov 2018 21:50:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542088247; cv=none; d=google.com; s=arc-20160816; b=vVCi4e+VuXkGmcR7UXfTZA0YTDwL5BskgI9AXyxpWyolSZRr3ZdX2IBaFvGWpSlOJY jfQQtkTe94DIaDwL67+jA0aXbIgc/gx7igad34TRuXNvoKY6fd/69GU0FdlCbyD8V+bc zpyg1sFYa488T2nGk28JxrRaFvKZoja4+pA48JfImM8rdrCGCxKEj1ymibcI1PEAQKSy d5d4xDKejKFqnOojSVmbmSiIY8o0glBtdsrnWP8jrF4PZaJOeU9oBKz60nz3DslUF1PK TPXXG6DLRufr+CRJI0cGaNN2wdyTz1tAjKG0tZvgVmYWyDaaMsJqE9G3dN4eGFrLWbm7 kLuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9GzhlHUs84p2WH8pQpTUt9cdXDvDp1wmIhMi42ebRBk=; b=058dWVnqVrL5RvHKmaOoqZNW/cfp+gM4+UhZymqYIriv+qQNy8cFE62+omJHqcAIBh siPAlz9gkRbRmnjrPkvkPJ2SmHhIYmrahwgLtQ8nrNXsUIeveAVOC7TY50vJSBA9R089 7rqsqXJ4w1qFHzsEVAlwSd7FjK1a+o1bWU8EUtRpjxMWF9zJk7wKKeuUIL5PtOmfvpaE ILPh6lz7fKA1LeWQi+0KMzl+HfX49Ci111CVsMlT5aKebK0/rC1IfQ8GyvCF8JhVMZo9 N+jELuPOeNG4VZUuoP0PbMQekjdPdZRH/v04UiCOPJW0t23tGquOj8ZGobAc/75r7053 eUZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2dFCam6N; spf=pass (google.com: domain of sashal@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=sashal@kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from mail.kernel.org (mail.kernel.org. [198.145.29.99]) by mx.google.com with ESMTPS id g11-v6si17462816pgs.179.2018.11.12.21.50.47 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Nov 2018 21:50:47 -0800 (PST) Received-SPF: pass (google.com: domain of sashal@kernel.org designates 198.145.29.99 as permitted sender) client-ip=198.145.29.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2dFCam6N; spf=pass (google.com: domain of sashal@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=sashal@kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sasha-vm.mshome.net (unknown [64.114.255.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8778F22526; Tue, 13 Nov 2018 05:50:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542088247; bh=EZSKRIU6MFcjpKmoMayFTIflHESg+IBP15cK+xtexns=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2dFCam6N6Bumd7AZUYMd+/wJk2thYRr3y8m5x0PUlR8IB0pc9X5QfZIEmgOImaBDw waxBPnIs6htBqsH7SbPOXvKVhjNZEkUBMZ19gkccEKuuVIvPKvvGsmwKpt2UXY3wVJ Hi/2e5b1pKu05mUtdEiwcW133JBO5z0yJWDbnZOU= From: Sasha Levin <sashal@kernel.org> To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jann Horn <jannh@google.com>, Davidlohr Bueso <dave@stgolabs.net>, Oleg Nesterov <oleg@redhat.com>, Christoph Lameter <clameter@sgi.com>, Kemi Wang <kemi.wang@intel.com>, Andy Lutomirski <luto@kernel.org>, Ingo Molnar <mingo@kernel.org>, Andrew Morton <akpm@linux-foundation.org>, Linus Torvalds <torvalds@linux-foundation.org>, Sasha Levin <sashal@kernel.org>, linux-mm@kvack.org Subject: [PATCH AUTOSEL 4.19 41/44] mm/vmstat.c: assert that vmstat_text is in sync with stat_items_size Date: Tue, 13 Nov 2018 00:49:47 -0500 Message-Id: <20181113054950.77898-41-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181113054950.77898-1-sashal@kernel.org> References: <20181113054950.77898-1-sashal@kernel.org> 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: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
None
|
expand
|
diff --git a/mm/vmstat.c b/mm/vmstat.c index 7878da76abf2..b678c607e490 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -1663,6 +1663,8 @@ static void *vmstat_start(struct seq_file *m, loff_t *pos) stat_items_size += sizeof(struct vm_event_state); #endif + BUILD_BUG_ON(stat_items_size != + ARRAY_SIZE(vmstat_text) * sizeof(unsigned long)); v = kmalloc(stat_items_size, GFP_KERNEL); m->private = v; if (!v)