Message ID | 20181113055242.79261-10-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 3031F13B5 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 13 Nov 2018 05:52:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1FD5D2A3E3 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 13 Nov 2018 05:52:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 13AFA2A3EA; Tue, 13 Nov 2018 05:52:59 +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 68E3F2A401 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 13 Nov 2018 05:52:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 503646B0296; Tue, 13 Nov 2018 00:52:53 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 4B25F6B0298; Tue, 13 Nov 2018 00:52:53 -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 3A19B6B0299; Tue, 13 Nov 2018 00:52:53 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by kanga.kvack.org (Postfix) with ESMTP id ECE496B0296 for <linux-mm@kvack.org>; Tue, 13 Nov 2018 00:52:52 -0500 (EST) Received: by mail-pg1-f199.google.com with SMTP id d3so2093892pgv.23 for <linux-mm@kvack.org>; Mon, 12 Nov 2018 21:52:52 -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=bqZ54MBmrjmMNgDCtGXCmvDrjmlFifdcLxSRPiMR838=; b=WV+jM3HZah05vAXONDQ7kqTNMEi4b2qdgsfclOMrGl9EEDs5oji9oKdABCO5CZ+fJs IvMB2eDdxhf67OB1qV5pn4+Vc2jfHuOsSsxeduVIKVpN45rtMeyhIQy6kC4LPsHpjdEw PATmlQa5Abuh2MuW9gmeY2LMm9fU29ZqVKin6MxukZ8MK93wnzLQNX2BSf1Col5Ecdlc ES2VDvysMItDdiETJLYWN4XfPNLl0Kg7KoeAAQ99UlBO1H0Y2bSbC/5oMk5zOBsWaXk4 9FGyRkAib7V+JyWiaNBsbqaBoeJPfkeHTf8HTe835iBkf/G5dbDQDxTKM1f/kMwo49FO L5ZQ== X-Gm-Message-State: AGRZ1gKaunrDBkOkLqO9xHS+t3sVE1TIx/1MJkrcFzvoz19kdZXSSXB8 fhE43cOYe6wqsBZdFkwtAm67JsM6w4jfuW7BrtfXoj17yBE+xOEFUISYLiEy1q+5t4ZkiPgEgEZ Wq8oDMDE7KZXsVxaTC1kXE5pSAwhiB0Q7eMv3kp3/MyeCK2RAaKkr0HC1qXEnC18s5Q== X-Received: by 2002:a63:f111:: with SMTP id f17mr3538427pgi.236.1542088372662; Mon, 12 Nov 2018 21:52:52 -0800 (PST) X-Google-Smtp-Source: AJdET5edVgXzpGpuMhxfVci9mWEtuNVk6jpDNkceuc1IOyoe5s8h22RDgYFqFpjDJTAcyX48UkJJ X-Received: by 2002:a63:f111:: with SMTP id f17mr3538403pgi.236.1542088372075; Mon, 12 Nov 2018 21:52:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542088372; cv=none; d=google.com; s=arc-20160816; b=o6V3QEZQDucTLCj3Ne0oXz029ZceI5BH0BKaoJgU4Br0FFz9emii8rxXF77/bCBEGB t8f+d39/WbeSEc6MsUf+rFS7g3Z3TnsvQsnSkoixMGx4ohBYFE0L6HsiqdRHfRgkbsMh SuL05IuEVu1kAbQ2FqSmsxrxwAm1jWIvVdwgUgLOaxSEkiMs2eJGA/GPQL2InpfohnOm zAxVUR+i6RH6xTnoQmZdjsu4w/nICDiyLIhmF3RTMyhqewoXsjw701rC94VOzNC5JZK6 BIqwLBt7lKfFb0j0FNW6xKs8Y31uB2PucRlEWEVuo18pSYhvOAotVww1j56mjXUFcS+F 1QIQ== 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=bqZ54MBmrjmMNgDCtGXCmvDrjmlFifdcLxSRPiMR838=; b=JSnx4qSBxDRK3XXcSXBafilNp7RyKH/fnfEqguHqxeAj/RYYujoZzoxzHZLf4sDqKs ybqLgcFoas8Y/ugdqqZUmsWn5ux7EvKSFjoAVfJ91qitLB2a1WW05MdsMoeNuGWqL8Z7 bP1Jd9Q/MH5QQFOrCeL0cobDARW7DM9AiGsgVkZk4tqx6xpyXIpuWVjQPykw2x4iWtKK uUqI64gyktF8dLxYJNOdGd3PzICBrniC2ingOiJ5aV1McfXp9yEEFAV5LX02PdfkrSeV GGSwyCJo8Zv5xH5PO86tzCju2K4Z3e9gQUt8yz5eNcHUJ0tPThrrMpSCNsaMTpRUPTNe A/kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=w6LLOJWa; 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 b72-v6si20985872pfm.100.2018.11.12.21.52.51 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Nov 2018 21:52:52 -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=w6LLOJWa; 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 9C04B22510; Tue, 13 Nov 2018 05:52:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542088371; bh=Ny8zzV0yk8eMNO5DqbjgBZY3F+sPJt2FCVYCP8c6wys=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=w6LLOJWaocTY/wVHWwSNRmRZ9OMruNZ16hu6V8eWdGDQD3WHBL45QluN7Tkmu5zcO 3HDAgJnBet/KRODoenmeLMT+6fc6WiUQDHwiKsFZM/P3lvJav6pLLiwOkMMJMDRGMC ypc10Wtqu6+p4jSqQIRUwu8Wa9qRnRnumLOd/O9g= 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.4 10/11] mm/vmstat.c: assert that vmstat_text is in sync with stat_items_size Date: Tue, 13 Nov 2018 00:52:41 -0500 Message-Id: <20181113055242.79261-10-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181113055242.79261-1-sashal@kernel.org> References: <20181113055242.79261-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 a2d70ef74db7..a32a92c0f218 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -1320,6 +1320,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)