Message ID | 20181113055053.78352-36-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 2F96013BB for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 13 Nov 2018 05:51:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21BA32A34B for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 13 Nov 2018 05:51:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2030B2A373; Tue, 13 Nov 2018 05:51:54 +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 7D0A42A35C for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 13 Nov 2018 05:51:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 309B66B027F; Tue, 13 Nov 2018 00:51:46 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 2E1EA6B0281; Tue, 13 Nov 2018 00:51:46 -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 1811A6B0283; Tue, 13 Nov 2018 00:51:46 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by kanga.kvack.org (Postfix) with ESMTP id C23066B027F for <linux-mm@kvack.org>; Tue, 13 Nov 2018 00:51:45 -0500 (EST) Received: by mail-pl1-f199.google.com with SMTP id 33-v6so8755342pld.19 for <linux-mm@kvack.org>; Mon, 12 Nov 2018 21:51:45 -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=MmhmSBQEvWilzPcgZIo9cLV8MNAVjkhw/7Yda9DhC1oKcHnspXhauaoqKW7YsAMOOa AbzYLn+Nd7rHPpZU5IeT900w3L3e4AnSGnCNIlmielh4CPKeb5O/m6+omtiUw7Xa7MZK r4Xx8aL9kz64HlFv3p7UujYjsySmiKXiQyqC3UE+SeDrlIrCZeL3uWlTxD+VQ3XTIEHA h3Xw2ooaKR1rD2fWXmcUljBLvG9u2u5BpFXJF8MmBVdf6ewVWWPYt/VPFSEvdiOes5nX Hr68i5e2803NdvlxVwW36L17DsKHxQCuViKl/7UOv2K29Bt9irxKMB92bJ5TvXoZhwwx nutQ== X-Gm-Message-State: AGRZ1gI8o/J1pdMekaWZP/oqTAlpdzEfumDDiBBwQQ5k7nSiuM4YJQMC NfpqqZBXGOCrjaYk6MG/d5TUwew/upQWMkM0v1Kyj5TycApG8L16nGdb4fat4qoIkxzPpdkIOLw FoXJX3+neOaGdwwhZwEr4gHWmWClhAECx6hcvbANzTLLifbyPAlxMxNKGfXtnx5nPMA== X-Received: by 2002:a62:31c2:: with SMTP id x185-v6mr3832509pfx.39.1542088305487; Mon, 12 Nov 2018 21:51:45 -0800 (PST) X-Google-Smtp-Source: AJdET5fcQUWUpLelVL5laG94i2pIM3xAeSP8dSbvU9po8yIxlZmrFd+M5GS+Kgb4T4Kr21HIIP0V X-Received: by 2002:a62:31c2:: with SMTP id x185-v6mr3832475pfx.39.1542088304727; Mon, 12 Nov 2018 21:51:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542088304; cv=none; d=google.com; s=arc-20160816; b=Rb6ErIljCO+XIC4Z6Clwsxd+xTTGVD6O4KsMlzPvJvBBtUXkts4+XYRrAJZk+6Bn/e fl1+9oiVmw+lLqYmpS6EsLrSIMVwcBXVfwsEV0iKJSCjchfu5Y4wT4OILni0VVH2togt JLVhKBg/cCASaqdtE1s+fttIaXWQqMIblE0LN8FVMlCLhSsSkvjZuTmYxiMuhOP6IbnT UMYMTI0xovLnTMcvvhXKEnZm6mgdlDaN614f/fbtI9aQoyqZ0LXUpk9NKYWfC+hz0W7C 3iixWvdpQ5rLtcwX/v1B5HLuyQrovdQBnq29ow1m4ZjUSz9BCwnjY4M7V2J/7pmHZSk/ QQIg== 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=vzG63/hITPB3y1uNlQQejWNzt466EYkif/J1BD3e7ReLNm6/joy9kCGvYbI3vMKfvu NQ/s01FL5kUNEFH5DEfQ+FhaazWe3u18fSBRnLwLlNjCK6U37al8dwCfGrbWAuGyUE51 LcrImbk68vsJ9hZsfMb+2gA3PqhywJSkeYbMluQsmGSC1G4gqZ4mF6tf99FGkRX6MFlU fHVYim3dqxZChR0Larv0MMvhfD8QPD3BuQu9VMdhj+f2RJe1uOD59qyZbsn+7uMxWedC miEld+oDFMIobX0ACmcDeklxaHGCXLS7hGWpYg9FF5nO/7DvfnOv+fOW+fpsVQPcycbI UB/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Y5L3QAsN; 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 c128-v6si7115296pfb.28.2018.11.12.21.51.44 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Nov 2018 21:51:44 -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=Y5L3QAsN; 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 B3BC22251C; Tue, 13 Nov 2018 05:51:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542088304; bh=EZSKRIU6MFcjpKmoMayFTIflHESg+IBP15cK+xtexns=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y5L3QAsNUTv9+gJNZPnM69wuESxvGuCF12Ejf2Z/zB0wKNaBLiHi9oVeTlrq2VKH7 wPPEWJuBKerKvkzmlGR8STsSyVJkR+3G9/x+NvxjSbTmZZy421OzqDu/OeW3mxSGuj s5KOOh2e67ECUP7zmwbpoNW8rRnPqCuiBrGHZAHQ= 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.18 36/39] mm/vmstat.c: assert that vmstat_text is in sync with stat_items_size Date: Tue, 13 Nov 2018 00:50:50 -0500 Message-Id: <20181113055053.78352-36-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181113055053.78352-1-sashal@kernel.org> References: <20181113055053.78352-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)