Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1624759imj; Thu, 14 Feb 2019 09:20:07 -0800 (PST) X-Google-Smtp-Source: AHgI3IYNgdQTHyL+ou702Wd6TdUqjRLXev6aKfvowDyUuLUrxHgU2A567psj7komiJMeGmh6vT4I X-Received: by 2002:a17:902:ab8f:: with SMTP id f15mr5317336plr.218.1550164807659; Thu, 14 Feb 2019 09:20:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550164807; cv=none; d=google.com; s=arc-20160816; b=ZZE/I16Yhcwb6h3jKkyLOnZoMQrXeB2v2ye8hCNplNihApiVUOekYMpojfmQD7mU29 XvwRnKOnllRrUk8nW/Ewlp1kOHdFDMUC3995yS/ibAoZ+LMy6CvvTyNjSPSVD9rtQoFt yODcE27C3yZMge8lG+JF8suMHYtzO5OIy9JWCqLPtXbjtHb2yZrcm5MtR6hPbdW2t59r rPcUenUrvPRPY+6fNOuOkSisTe2yC7zbDjtF2Pr7nh5M1X/143cPRLeC/+W9tuzmnfCm eGqm10X6JEFrNIzN3EBbjjXN16mvlAnB9jNhBQ447pZ3bBF6f6R9PnrZCaBtPQb7bOT5 97CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=wyPP+dc5KsJgMM88DyMWs12Cnoh8dpNU+A+I5dAxZvo=; b=0vhSRtSa8pcOAcrd4rZ/ZZkDTY4CVEyO7J+YS2A/Sw4C4hfw/olnppK6fyxOkIzeZ7 L85eSJ7boK260MLAgilra3Rdvaei2YinC7xIiwAoMAtFDlU/5bFih5VvqRPMtKVu8hO4 Akr6jcGbKt9DkpSj7uO+TfxAaTqIEmOcyT705czRAAepgQJGUjOmm5W189pY0LRtgcPb xVRxSs5P+ckit1EG9G2g7ugpHdQOIDIxN9bqBhhFbu6UyoqDVhki2vM4bRJzfYsoavEd B3wb7LN0hCIYeIHUHkpXJ5SCW/Ly16mszXxXckH3Aj9RcXeZ7NKomId2F8BLsfYx7a2T zLnA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si135249pla.155.2019.02.14.09.19.51; Thu, 14 Feb 2019 09:20:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437832AbfBNJeo (ORCPT + 99 others); Thu, 14 Feb 2019 04:34:44 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:3205 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2437826AbfBNJek (ORCPT ); Thu, 14 Feb 2019 04:34:40 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id BD3E77C0BF6A6BC90777; Thu, 14 Feb 2019 17:34:38 +0800 (CST) Received: from localhost.localdomain (10.67.212.132) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.408.0; Thu, 14 Feb 2019 17:34:32 +0800 From: Shaokun Zhang To: , CC: Shaokun Zhang , Dave Hansen , Andy Lutomirski , "Peter Zijlstra" , Thomas Gleixner , "Ingo Molnar" , Borislav Petkov , "H. Peter Anvin" , Andrey Ryabinin Subject: [PATCH] x86/mm/dump_pagetables: Remove the unused prev_pud variable Date: Thu, 14 Feb 2019 17:33:49 +0800 Message-ID: <1550136829-49088-1-git-send-email-zhangshaokun@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.212.132] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 'prev_pud' local variable became unused after commit 04b67022fb6d ("x86/mm/dump_pagetables: Speed up page tables dump for CONFIG_KASAN=y"), let's remove it. Cc: Dave Hansen Cc: Andy Lutomirski Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin" Cc: Andrey Ryabinin Signed-off-by: Shaokun Zhang --- arch/x86/mm/dump_pagetables.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c index e3cdc85ce5b6..ee8f8ab46941 100644 --- a/arch/x86/mm/dump_pagetables.c +++ b/arch/x86/mm/dump_pagetables.c @@ -444,7 +444,6 @@ static void walk_pud_level(struct seq_file *m, struct pg_state *st, p4d_t addr, int i; pud_t *start, *pud_start; pgprotval_t prot, eff; - pud_t *prev_pud = NULL; pud_start = start = (pud_t *)p4d_page_vaddr(addr); @@ -462,7 +461,6 @@ static void walk_pud_level(struct seq_file *m, struct pg_state *st, p4d_t addr, } else note_page(m, st, __pgprot(0), 0, 3); - prev_pud = start; start++; } } -- 2.7.4