Message ID | 20181113055223.79060-15-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 E4D9113B5 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 13 Nov 2018 05:52:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D51A02A2B7 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 13 Nov 2018 05:52:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D36FA2A376; Tue, 13 Nov 2018 05:52:43 +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 2A67C2A318 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 13 Nov 2018 05:52:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 308576B0292; Tue, 13 Nov 2018 00:52:41 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 28FC76B0294; Tue, 13 Nov 2018 00:52:41 -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 17EED6B0295; Tue, 13 Nov 2018 00:52:41 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by kanga.kvack.org (Postfix) with ESMTP id CBC086B0292 for <linux-mm@kvack.org>; Tue, 13 Nov 2018 00:52:40 -0500 (EST) Received: by mail-pf1-f199.google.com with SMTP id e89so1535319pfb.17 for <linux-mm@kvack.org>; Mon, 12 Nov 2018 21:52:40 -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=SRqptq9XxiMFv5x7HTwy3kL/DSkrQFRQapmYlXuY7Cc=; b=X2JXCg0RzNM9lEHzb8mLhpGA18iyb5vLlBW8h+UFBMPcmar07hyK5Kk47FBJqwtZPH I3bL73lMUP+VMLr+j8nZNel1d8lRbMoTsQctrgQoY7hV7JMaAhZj+exmp/IPVDogQdDR RsQ6weU0FniV30y1N/FV3f4fGKKfrBbk+TqjGxa/fTiI5cVFhrkUn33elQEthYhahRwm rb0cdONRbMDPkXMcTIb3yjXT4U3M/w+QY7JPMrh147HWFlxA0OyaIfbisD8N+775F2MZ /rw+2sHDZRHfIwqHYHaw3BDzcA4lchTkI6IAGfd8/p6YmyqodJ8Ua6HDXy2T2MFm1vGu so4w== X-Gm-Message-State: AGRZ1gL/IvCLDuz0Ns5VsGKWei2IuXCyy4/QcOvZjs6kf+/dXJa2nUH3 U+5g+O5k6Cdg6Uff2UVFza49E/0rdn2PKUzpiV8MtAKB+ay0xo0id9lQRtPJ79T8auCeMUdYcrI aAOFzmIJ2Cnx/vY/Pd4O+LThCIC/RL0cB2dTtwnEuVDnDZxRusgcXaY/RO8lVIRcKOQ== X-Received: by 2002:a63:6906:: with SMTP id e6mr3481851pgc.144.1542088360519; Mon, 12 Nov 2018 21:52:40 -0800 (PST) X-Google-Smtp-Source: AJdET5dr5zEIzTLb9w+n0mEXbPELXB4kA0NSEnRxmK7mZZv0fnDuMl7QzntOununNZxY/O17OG0e X-Received: by 2002:a63:6906:: with SMTP id e6mr3481827pgc.144.1542088359912; Mon, 12 Nov 2018 21:52:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542088359; cv=none; d=google.com; s=arc-20160816; b=Rh+oqVPp+jOuJN6KadJocSzktWYY4UCtdN3UOLPygPpUzdBFJnTgVSqyuaS7wrSrRs 6K980aS9Vz0lkT/mHYPP41pOvNjA3SY/0SMKAMxfgfJUTbgkUNOJPtUy+yY6/rFo/A2v iTdi+KtY7kEO0fZdoAjVhzBp/l3dYxjt4BbrPju++ZndLS/jmVoYfYg6VejMjA/WTRe6 QeQF37P3YXitAmAK4q5pgu3hMO+HmG/Up698x9JF4nS8gIlfGHybpL3qgQwEguB2SiqI lrk3yBmmjnQbNhZzmfP/OiXPLx1+hK21saQrTELWrP/eTTvZe0MtHJhh8eqzXAXkm3K/ Zv2w== 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=SRqptq9XxiMFv5x7HTwy3kL/DSkrQFRQapmYlXuY7Cc=; b=Ab3AnYW2/FzIcp8SjE7aXmU4NhXOgBhlbeIv9+lzeL5gvcSYW1HiLOk3T6YsJlXrTF THgWF+we8Pps8+d9WTzjLXFmPiN4OJ2TZMdWhBQ6EvRl7x5/hNIsJFCgzjx3O+H06U4k UbxbjowCNGGZtYVbtJQAaYmloYg1htr0M3eDkqQ8rAHrHihQxD4lYFWlcWQ0DgKhMV9X th5RflZlpe39NJOSYNrJwxDwLpn3ntThQ0IyeYc/180T+eeYIdJz1b+77HoiR/ZRyQRA MMtNFcZ3JbYP2YQr46SGSTpyuBpqmkuHG3ECNU08VX3xUaPogvxtaYM+MVoT5jIw4HTd a2nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sshEF2Im; 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 q8-v6si19701369pgc.347.2018.11.12.21.52.39 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Nov 2018 21:52:39 -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=sshEF2Im; 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 5D8EE2251A; Tue, 13 Nov 2018 05:52:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542088359; bh=aV/4HrisMlXjVY7CtVc+csH7/miKpLYVJrIzZ/xx68M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sshEF2ImLe6Uxky55QJvBhsAuWHvtFqsspYjc9BRGQ8HPwmw9mZH8XoX/jVoX3uI6 wnkuS3ZCN9TXMcOccDaHmSXqKv57IUgp7ydMQnmEw3C9y0MmViyqPDxva3y2JLKp+0 dXJVi9wrL8n3Z7qyXBNMY9PTKnIavgPJ/7X0Pm+Q= 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.9 15/17] mm/vmstat.c: assert that vmstat_text is in sync with stat_items_size Date: Tue, 13 Nov 2018 00:52:21 -0500 Message-Id: <20181113055223.79060-15-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181113055223.79060-1-sashal@kernel.org> References: <20181113055223.79060-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 5e6a4d76659d..2bab38d5570c 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -1484,6 +1484,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)