Received: by 10.223.185.116 with SMTP id b49csp2989907wrg; Sun, 25 Feb 2018 11:01:11 -0800 (PST) X-Google-Smtp-Source: AH8x2249mj7/FSyIDkOT4DZpv3YuYJF+C1sYSBUPukiMfWjjxRatFcjbE/t6+8qe74MakEeSKNtC X-Received: by 2002:a17:902:8285:: with SMTP id y5-v6mr8370398pln.190.1519585271838; Sun, 25 Feb 2018 11:01:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519585271; cv=none; d=google.com; s=arc-20160816; b=Xta8p0Y9Up7b9cfClv8hsccB2gxw7GnY63SAc26aaZtytcjQqFTREnLwsyS+IT2Ddr DkHl2l+XyxsEy4PAyy7koPVhKT9qB/rzRhhcn6G6Sn856ggXjL6rOaAZWyx7PY17nDa1 EuYeS55fwT+H7YOHDv0UpyDpUfPovfWdfvwr+6bWaX9AdNjeMsPM3S8z+j9QuWn2Dkog hmeB7kq3MOhvdw4NQCwQWegpaomDUAOCOWzFoq6PjDJExHcInRwa4HLXhKdPCHc+A2dw 9l3sH21SrWlFKCDLkRcTlIwwJ6N6pPJwkqnWyFygbqct7BkesPF7JjtOt91CqpNQKrri Al2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from:arc-authentication-results; bh=H/BOMWZA72T6PxW0MDuKT0/CCUk/+rcTqGx/ztL2ms4=; b=XH2z2R7V+WXNVsOv3rWwYAQ16dlt1dxg7d+hxyM+WXclBfHZujkn6rw8xJFygu5kdr qO7O2y+NpYAyoqS5SXmtfwVGazz7+qOvuE+w/yHpjYTWWXr3ZsjJOYCH+WNW9DWlG58M X8hCpN0/4+UIT2ehDQx9iiPFv3X3H8XFacSo/mZulk4NYXGtgE0egW7083y9rbvLRrD8 d7FqgrPMI8U5quRZ5Y0E+pJTc7t6fV861Lf2Go/bWzKZVRY5Hdv/eE8y6cttv7SzaTtF 2gfbI1C3VUBSQWzKvUHaKj7EwZXLjbMkE7cmmcSl5jCy5JyEcb6n+XFWsFqYQGfRpttG HC4w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 141si5509289pfz.106.2018.02.25.11.00.57; Sun, 25 Feb 2018 11:01:11 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751919AbeBYTAQ (ORCPT + 99 others); Sun, 25 Feb 2018 14:00:16 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:34854 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751557AbeBYTAH (ORCPT ); Sun, 25 Feb 2018 14:00:07 -0500 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w1PIwE4i061009 for ; Sun, 25 Feb 2018 14:00:06 -0500 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 2gbnxj9dfu-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Sun, 25 Feb 2018 14:00:05 -0500 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 25 Feb 2018 19:00:03 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Sun, 25 Feb 2018 19:00:00 -0000 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w1PJ00iQ44761132; Sun, 25 Feb 2018 19:00:00 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BC8BF42045; Sun, 25 Feb 2018 18:52:32 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3EA7E42041; Sun, 25 Feb 2018 18:52:31 +0000 (GMT) Received: from rapoport-lnx (unknown [9.148.205.221]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Sun, 25 Feb 2018 18:52:31 +0000 (GMT) Received: by rapoport-lnx (sSMTP sendmail emulation); Sun, 25 Feb 2018 20:59:57 +0200 From: Mike Rapoport To: Andrew Morton Cc: linux-mm , linux-doc , lkml , Mike Rapoport Subject: [PATCH 1/3] mm/nommu: remove description of alloc_vm_area Date: Sun, 25 Feb 2018 20:59:49 +0200 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519585191-10180-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1519585191-10180-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18022519-0008-0000-0000-000004D44A13 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18022519-0009-0000-0000-00001E676150 Message-Id: <1519585191-10180-2-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-25_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1802250253 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The alloc_mm_area in nommu is a stub, but it's description states it allocates kernel address space. Remove the description to make the code and the documentation agree. Signed-off-by: Mike Rapoport --- mm/nommu.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/mm/nommu.c b/mm/nommu.c index ebb6e618dade..4f1cabd07e81 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -457,18 +457,6 @@ void __weak vmalloc_sync_all(void) { } -/** - * alloc_vm_area - allocate a range of kernel address space - * @size: size of the area - * - * Returns: NULL on failure, vm_struct on success - * - * This function reserves a range of kernel address space, and - * allocates pagetables to map that range. No actual mappings - * are created. If the kernel address space is not shared - * between processes, it syncs the pagetable across all - * processes. - */ struct vm_struct *alloc_vm_area(size_t size, pte_t **ptes) { BUG(); -- 2.7.4