Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1498578ybi; Wed, 19 Jun 2019 22:13:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqyY8QUPXTbaGjtNF4Wrs6N4SIWe+R1DWfh6sWSUW8k200czNDtsR1g61kKqMwEBqQ7vTC58 X-Received: by 2002:a17:902:9a82:: with SMTP id w2mr104702079plp.291.1561007635838; Wed, 19 Jun 2019 22:13:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561007635; cv=none; d=google.com; s=arc-20160816; b=dXDEDvII5Kmu7Ow27ncy/4/2jGnjDyDI+zZWs8YfhG8BO3stmaO9ROoQG2p5JYAeRb 8pzSV1s1MdShEm49SlyvMnCiuDQE63UR1EpZzFguBxN0ZdpZSwBDhdw3VpYDoEBM0Ikc 4tdvUA0qW5LiMkry5rDjs6tLgaqt4vUrAkktVf4rJ+e89s9ZilSWGr0cWFLLbf/FEWlC 9+TzujC3O4+2gVf9VMqKVTKPFVxCStwfVfGoUqXgjoe7vuVXDDXuMAdGq9Iz9B09cj6n JXylf0igsKDk4Vt/eNLl68Z1mkBauxpUrgtQSA2cCvS6nBtpztnCrMhAPCiJlgXtxcgE 5G5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=1r8du5rzM3WoefU9HQ0cQWK6fVdukLsqJtmhoiFPfns=; b=mCb6KHc9D4yObU0JJdM0WZi6EHrk5iPxT0KI9a9CSBE5h/8v5SLRFBTW6rdRu9wmXh n3ZNFLDn+TNXFsVy5nNLbim/DSOtCgipTsKO1ozXrJKCCv4AJDlqXmG1GreGwyDRyTiH gGFt/Fq5sWYopyeNRCbtsmYoMqiyY3GdEoaupii49e6CvP9TUPCAUNMGh179+Qk8RJ/S tyByA9YDekIZNyi9h7tG5kV1MD7fSrwgS8ooPS/7APmT5EbsRRsvrPgvcisUpWHCFDax a+J9Xd17ZKgYJbbpm1ECtyMdyQEnuF+dHXU0FZmnFndkV3xlkAj/0PBaNlzVQ8od3aiO XNiQ== 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 205si4699971pgb.424.2019.06.19.22.13.40; Wed, 19 Jun 2019 22:13:55 -0700 (PDT) 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 S1726638AbfFTFNa (ORCPT + 99 others); Thu, 20 Jun 2019 01:13:30 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:51937 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725857AbfFTFNa (ORCPT ); Thu, 20 Jun 2019 01:13:30 -0400 X-Originating-IP: 79.86.19.127 Received: from alex.numericable.fr (127.19.86.79.rev.sfr.net [79.86.19.127]) (Authenticated sender: alex@ghiti.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id CD96D240006; Thu, 20 Jun 2019 05:13:22 +0000 (UTC) From: Alexandre Ghiti To: Andrew Morton Cc: "James E . J . Bottomley" , Helge Deller , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Yoshinori Sato , Rich Felker , "David S . Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , x86@kernel.org, Dave Hansen , Andy Lutomirski , Peter Zijlstra , linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-mm@kvack.org, Alexandre Ghiti Subject: [PATCH RESEND 8/8] mm: Remove mmap_legacy_base and mmap_compat_legacy_code fields from mm_struct Date: Thu, 20 Jun 2019 01:03:28 -0400 Message-Id: <20190620050328.8942-9-alex@ghiti.fr> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190620050328.8942-1-alex@ghiti.fr> References: <20190620050328.8942-1-alex@ghiti.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that x86 and parisc do not use those fields anymore, remove them from mm code. Signed-off-by: Alexandre Ghiti --- include/linux/mm_types.h | 2 -- mm/debug.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index 1d1093474c1a..9a5935f9cc7e 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -364,11 +364,9 @@ struct mm_struct { unsigned long pgoff, unsigned long flags); #endif unsigned long mmap_base; /* base of mmap area */ - unsigned long mmap_legacy_base; /* base of mmap area in bottom-up allocations */ #ifdef CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES /* Base adresses for compatible mmap() */ unsigned long mmap_compat_base; - unsigned long mmap_compat_legacy_base; #endif unsigned long task_size; /* size of task vm space */ unsigned long highest_vm_end; /* highest vma end address */ diff --git a/mm/debug.c b/mm/debug.c index 8345bb6e4769..3ddffe1efcda 100644 --- a/mm/debug.c +++ b/mm/debug.c @@ -134,7 +134,7 @@ void dump_mm(const struct mm_struct *mm) #ifdef CONFIG_MMU "get_unmapped_area %px\n" #endif - "mmap_base %lu mmap_legacy_base %lu highest_vm_end %lu\n" + "mmap_base %lu highest_vm_end %lu\n" "pgd %px mm_users %d mm_count %d pgtables_bytes %lu map_count %d\n" "hiwater_rss %lx hiwater_vm %lx total_vm %lx locked_vm %lx\n" "pinned_vm %llx data_vm %lx exec_vm %lx stack_vm %lx\n" @@ -162,7 +162,7 @@ void dump_mm(const struct mm_struct *mm) #ifdef CONFIG_MMU mm->get_unmapped_area, #endif - mm->mmap_base, mm->mmap_legacy_base, mm->highest_vm_end, + mm->mmap_base, mm->highest_vm_end, mm->pgd, atomic_read(&mm->mm_users), atomic_read(&mm->mm_count), mm_pgtables_bytes(mm), -- 2.20.1