From patchwork Mon Jun 6 08:39:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoquan He X-Patchwork-Id: 12870119 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F51BC433EF for ; Mon, 6 Jun 2022 08:39:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7EEF58D0003; Mon, 6 Jun 2022 04:39:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 79D4E8D0002; Mon, 6 Jun 2022 04:39:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6640A8D0003; Mon, 6 Jun 2022 04:39:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 53B0A8D0002 for ; Mon, 6 Jun 2022 04:39:30 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 1E27934F01 for ; Mon, 6 Jun 2022 08:39:30 +0000 (UTC) X-FDA: 79547162100.09.E53973B Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf09.hostedemail.com (Postfix) with ESMTP id D6BEC140035 for ; Mon, 6 Jun 2022 08:39:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654504769; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ypMuOqTgTs5fR/SVFA8vgdnkIg+2FoxNQIZyHecvz0A=; b=EBfG7IYezlF1euAkUuu2/Y4tdQl/ME1U+mz8mviCNjpyZ/R7zfhz8sBnHOQxWmF76tFuLn Q0BAmnMJ6UUEjVwL4D5SqWRgljx7J/Nd8TLy4vmXUBVWli1KFiCRq5nQdZjELcF4jSesbl v/1lT42Jz6MEacW3NbjB8bcV5Jb2VOw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-35-qbNHrptDO92AJQPUiBeNlw-1; Mon, 06 Jun 2022 04:39:25 -0400 X-MC-Unique: qbNHrptDO92AJQPUiBeNlw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5C3D9800882; Mon, 6 Jun 2022 08:39:25 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-14-4.pek2.redhat.com [10.72.14.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1E2D71121314; Mon, 6 Jun 2022 08:39:21 +0000 (UTC) From: Baoquan He To: akpm@linux-foundation.org Cc: npiggin@gmail.com, urezki@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Baoquan He Subject: [PATCH 0/5] Cleanup patches of vmalloc Date: Mon, 6 Jun 2022 16:39:04 +0800 Message-Id: <20220606083909.363350-1-bhe@redhat.com> MIME-Version: 1.0 Content-type: text/plain X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Stat-Signature: ynew9smudycqcwniutut7nd85gm93g9q X-Rspam-User: Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=EBfG7IYe; dmarc=pass (policy=none) header.from=redhat.com; spf=none (imf09.hostedemail.com: domain of bhe@redhat.com has no SPF policy when checking 170.10.129.124) smtp.mailfrom=bhe@redhat.com X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: D6BEC140035 X-HE-Tag: 1654504752-842175 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: Some cleanup patches found when reading vmalloc code. Built kernel and run on x86_64 machine. Baoquan He (5): mm/vmalloc: remove the unnecessary type check mm/vmalloc: remove the redundant boundary check mm/vmalloc: fix typo in local variable name mm/vmalloc: Add code comment for find_vmap_area_exceed_addr() mm: ioremap: rename ioremap_page_range() to ioremap_range() Documentation/ia64/aliasing.rst | 2 +- arch/alpha/kernel/proto.h | 2 +- arch/arc/mm/ioremap.c | 2 +- arch/arm/mm/ioremap.c | 6 +++--- arch/arm64/mm/ioremap.c | 2 +- arch/hexagon/mm/ioremap.c | 2 +- arch/ia64/mm/ioremap.c | 2 +- arch/mips/loongson64/init.c | 2 +- arch/mips/mm/ioremap.c | 2 +- arch/openrisc/mm/ioremap.c | 2 +- arch/parisc/mm/ioremap.c | 2 +- arch/powerpc/kernel/isa-bridge.c | 2 +- arch/powerpc/kernel/pci_64.c | 2 +- arch/powerpc/mm/ioremap.c | 2 +- arch/s390/pci/pci.c | 2 +- arch/sh/kernel/cpu/sh4/sq.c | 2 +- arch/sh/mm/ioremap.c | 2 +- arch/x86/mm/ioremap.c | 2 +- arch/xtensa/mm/ioremap.c | 2 +- drivers/pci/pci.c | 2 +- include/linux/io.h | 4 ++-- mm/ioremap.c | 2 +- mm/vmalloc.c | 27 ++++++++++++--------------- 23 files changed, 37 insertions(+), 40 deletions(-)