Message ID | a1ef2a2113cd8847002f0064f198aa4afe465548.1547966629.git.nullptr.cpp@gmail.com (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 C1D06746 for <patchwork-linux-mm@patchwork.kernel.org>; Sun, 20 Jan 2019 08:14:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD1322ACB0 for <patchwork-linux-mm@patchwork.kernel.org>; Sun, 20 Jan 2019 08:14:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D6482ACB6; Sun, 20 Jan 2019 08:14:22 +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,FREEMAIL_FROM,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 37B202ACB0 for <patchwork-linux-mm@patchwork.kernel.org>; Sun, 20 Jan 2019 08:14:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5FB568E0005; Sun, 20 Jan 2019 03:14:21 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 5A8CA8E0002; Sun, 20 Jan 2019 03:14:21 -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 471828E0005; Sun, 20 Jan 2019 03:14:21 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by kanga.kvack.org (Postfix) with ESMTP id E56198E0002 for <linux-mm@kvack.org>; Sun, 20 Jan 2019 03:14:20 -0500 (EST) Received: by mail-wr1-f72.google.com with SMTP id p12so9090506wrt.17 for <linux-mm@kvack.org>; Sun, 20 Jan 2019 00:14:20 -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=6TueSK0t2mbCzrUTvwto9p+ZPwhPUJQ8fKD3EecXO7w=; b=N7fEFpfz337EQ9Q/lJU4uiiitEqJzg/qBu0lBs4AsHSDE0lazp0IMofzNoB0N6MJ+F j1O+25sMxoWjI2MQfuzDVXWSQGfDjgQwDyOi4NbcpyHdIj1Wws8+/O74j+f5A6VqkJhG kSFRqgliIfGKV7WFbk835VTQQ4PBfzWmZM4ZadWKI1e/CkA/wK2+EHYN63bydWFIXwy0 yQnZWAXHpS3jruQrj+/7gHmlWkEWBYkYQ1CUnSI7Pg6f1Rd9S2rJ1fxAwL7Zki36E4Ad /LEAeJo4s/LuuKjDgWdre2Q3daKmq/GZr4VrvUEsGQ6JcCcQ0N38a4cu/kgOBW6sv2VK 3fRA== X-Gm-Message-State: AJcUukfDq9zTtY5n3mtmVbnbqAexZ3jN2ykWQmXaBqj/hV1xCKzO5W0H vxdC1TeqfkBjto1oWoSGEjGhEPgUbRncmhvzCCDjxYIBqjQXS88hIFj88Qe9Bi0GHuLgpOIZX9D DRNAvvJku4ATIJP5TSYgQ63KOfBQs197pWjJDpgDzoViussN4gB/PhVGsNXgmRU0PPaVQUV2O89 52YQjGWG1ANf50hvh/AbV788yYuHHRozac6YTGtIuno5r6qWLV4vrWtXf0hk0QEH6xAgY1G6/Ph DXhv61OlUeRXo0BNtPVouTMgNVi4/jz9iVUOd3SyLC7Gpkl2P51BMlWfTQoip5QxdF+IBuSHsZl f2v3bnkv9Onfc/TptZT530Zrz88garIb9KSD42+XZG3ZpAhU7fKB7uu1FkiCDNAZUClWnQ3jFal w X-Received: by 2002:a5d:6889:: with SMTP id h9mr22883605wru.222.1547972060443; Sun, 20 Jan 2019 00:14:20 -0800 (PST) X-Received: by 2002:a5d:6889:: with SMTP id h9mr22883542wru.222.1547972059370; Sun, 20 Jan 2019 00:14:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547972059; cv=none; d=google.com; s=arc-20160816; b=Wgdg7rIBURBjBVhCJjvKRDCbdZ6nMqsG7uJoRh4Egdg2pdh/PUSPgV5YIWuYWFFdC3 IyBW+4PzNNdBNnIAtuT1JBaki3LOmCK0l28xezlR+YiCvHY4LHj3Vy5RHi/mCx8tK55v 87hwBS1YKm1RVRLYJ15ipkWBlpzOa/UqPZZW1x/XZ3bGUUQxs4ZzZxCdQf1EjSme3DBb JN9xAYu41iZb8FRpIvU1EvaABPxRKrZawAi/OuVLHwQ+hN/OF9ReweNDueI0tO05kS7J /PF7L55OxmYAyIAUTnvi9/2EoBJtiWNzCjWCA9ujnXZvCJj+A6F/8OROhXfqQVZF+388 BaBg== 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=6TueSK0t2mbCzrUTvwto9p+ZPwhPUJQ8fKD3EecXO7w=; b=WIkfWUbEDFZhIxtk9xMm7f0xwTHw75s4pR+bg3aLHUfgZAGXNe2MIRq1Sgg6JjrUbF BL64A1YOcXSq5LqWkuOpI1H60Kzma7cUttEkNMI8T/h9v1xdk1z3DFlMIgVng2RphYdq fREirSiLTwer2ldwGdBiZEaH7wFOFfgi3wDy9fGFmR+LnAEHd8bPOMOr4VI1mfox2WW0 8sRavwdNMo8b6vRTkaBCm3ojku5FjGFj6UvEKBTk5rRLgQUJ7wrfeK7VIiFzSgbkOVAP VMkX4UxL5VYvn5DuRG5f+dhribPQDgVXvbp6Gl7BriXYidKhhLigcU1MUf6uhqx3pgLU a/rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OD3yXsWD; spf=pass (google.com: domain of nullptr.cpp@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=nullptr.cpp@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id j19sor61875696wre.41.2019.01.20.00.14.19 for <linux-mm@kvack.org> (Google Transport Security); Sun, 20 Jan 2019 00:14:19 -0800 (PST) Received-SPF: pass (google.com: domain of nullptr.cpp@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OD3yXsWD; spf=pass (google.com: domain of nullptr.cpp@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=nullptr.cpp@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6TueSK0t2mbCzrUTvwto9p+ZPwhPUJQ8fKD3EecXO7w=; b=OD3yXsWDmwKt0s2/30zZ9wHAQvNxYe25MlTSBacU8H1lyh5DtbY3iagvPhgHl0wR7m 0KZd0x/QursI2cOZQvqTzHH5hh1lXqzSpFpLRi+fOgTkC8RSKWF26YwYhyTRRT+sTIRi 1p3hrY761Ep9sZdVFk1w6WbzPf9NWCQ0LkKeu4ZrqngaVhZ/7aWWOs+GYhqsP3X+UTxV g+jD0JLltHhn1zIVCetbwj4qR+eNe3oLFY3HtbC+/IMkhmSBDfOeCEhoZOzh3WM86usT uuLWYhI2YuUAtynTFX7jGy9fb41rIP+TsKHMUCCBHh6wXcJLJ+y+Q+AcEysiGYj5s0aT 0a8w== X-Google-Smtp-Source: ALg8bN4g15eyxfr6tSx564o9SKGT8PDY3+OtAhMoPjlRoT7TC6utLS7k15Ha8yOLXndfJB/2N9NhEA== X-Received: by 2002:a5d:63c3:: with SMTP id c3mr22954222wrw.215.1547972059060; Sun, 20 Jan 2019 00:14:19 -0800 (PST) Received: from localhost ([2a01:4f8:1c1c:6057::1]) by smtp.gmail.com with ESMTPSA id k19sm142925012wre.5.2019.01.20.00.14.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 20 Jan 2019 00:14:18 -0800 (PST) From: Yang Fan <nullptr.cpp@gmail.com> To: akpm@linux-foundation.org, will.deacon@arm.com Cc: Yang Fan <nullptr.cpp@gmail.com>, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] mm/mmap.c: Remove redundant const qualifier of the no-pointer parameters Date: Sun, 20 Jan 2019 09:13:45 +0100 Message-Id: <a1ef2a2113cd8847002f0064f198aa4afe465548.1547966629.git.nullptr.cpp@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <cover.1547966629.git.nullptr.cpp@gmail.com> References: <cover.1547966629.git.nullptr.cpp@gmail.com> 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 |
mm/mmap.c: Remove some redundancy in arch_get_unmapped_area_topdown()
|
expand
|
diff --git a/mm/mmap.c b/mm/mmap.c index f2d163ac827a..84cdde125d4d 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -2127,8 +2127,8 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr, #ifndef HAVE_ARCH_UNMAPPED_AREA_TOPDOWN unsigned long arch_get_unmapped_area_topdown(struct file *filp, unsigned long addr, - const unsigned long len, const unsigned long pgoff, - const unsigned long flags) + unsigned long len, unsigned long pgoff, + unsigned long flags) { struct vm_area_struct *vma, *prev; struct mm_struct *mm = current->mm;
In according with other functions, remove the const qualifier of the no-pointer parameters in function arch_get_unmapped_area_topdown(). Signed-off-by: Yang Fan <nullptr.cpp@gmail.com> --- mm/mmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)