Message ID | 20230201091339.61761-8-bhe@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 4EDD8C05027 for <linux-mm@archiver.kernel.org>; Wed, 1 Feb 2023 09:14:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E1D136B0072; Wed, 1 Feb 2023 04:14:31 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DCC7D6B0078; Wed, 1 Feb 2023 04:14:31 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CBBB16B007B; Wed, 1 Feb 2023 04:14:31 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id BD8156B0072 for <linux-mm@kvack.org>; Wed, 1 Feb 2023 04:14:31 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 9B342160E0E for <linux-mm@kvack.org>; Wed, 1 Feb 2023 09:14:31 +0000 (UTC) X-FDA: 80418162342.02.699D34B Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf30.hostedemail.com (Postfix) with ESMTP id E03748000A for <linux-mm@kvack.org>; Wed, 1 Feb 2023 09:14:29 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=fMaMHv+5; spf=pass (imf30.hostedemail.com: domain of bhe@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1675242869; h=from:from:sender: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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=yf8UeWDRzlFUhfaCSIXW0vSnsYH1u1H+pSaVUFMvrEs=; b=cxpoVk0wOXYUNDPTzquC068xAex9MpCIX+BwQJAgZKeur7m1RnVOPQOfJfBuL2aYUxEKhJ ldUKMUwap2lGaQvr2yCZXkKdnMvc99enRG78hjLcUlMc7t4ekCxD+TgedexrqzNl+yM3ht 5WTu9r+xjsK1MQa7LvnUpws7cJ1AIB0= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=fMaMHv+5; spf=pass (imf30.hostedemail.com: domain of bhe@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=bhe@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1675242869; a=rsa-sha256; cv=none; b=EpqWkgOr+Grf+w2002b88Pc3wyRhlQzgNd9BhoCY8fUrXCqbkODO/qoZeYanenFGor5WKo vZhXzoopsVMQrqOTSEPh+IUfwXivV0HoNYNrMIhq99eEFgN93VC56RqHG3MilZP+TnqJJY Ueh2mNH6SK5n30a9/iEe3BlZpV5DFBw= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675242869; 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: in-reply-to:in-reply-to:references:references; bh=yf8UeWDRzlFUhfaCSIXW0vSnsYH1u1H+pSaVUFMvrEs=; b=fMaMHv+5nKPZiGF4ho0QFIDVXcgn7ewSjOVGuaERlU0X3WM8Pgc6520+GoJQ8NkhaU+2L0 cIYgGOH5l0woqYa1idgMQZxjCFpCQhqYosItXgSybSWyCTm3EtdsE12bQv81pPiit8D37I 4OAKxtHEHDJWRTTOqKxUW2ObFTlTOuM= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-81-WDpjG_CZM1Gl0d4Xg9d3Gg-1; Wed, 01 Feb 2023 04:14:24 -0500 X-MC-Unique: WDpjG_CZM1Gl0d4Xg9d3Gg-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8F68F29AB3F3; Wed, 1 Feb 2023 09:14:23 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-13-89.pek2.redhat.com [10.72.13.89]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3DDC8492C3E; Wed, 1 Feb 2023 09:14:17 +0000 (UTC) From: Baoquan He <bhe@redhat.com> To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, akpm@linux-foundation.org, stephen.s.brennan@oracle.com, urezki@gmail.com, lstoakes@gmail.com, willy@infradead.org, hch@infradead.org, error27@gmail.com, Baoquan He <bhe@redhat.com> Subject: [PATCH v4 7/7] sh: mm: set VM_IOREMAP flag to the vmalloc area Date: Wed, 1 Feb 2023 17:13:39 +0800 Message-Id: <20230201091339.61761-8-bhe@redhat.com> In-Reply-To: <20230201091339.61761-1-bhe@redhat.com> References: <20230201091339.61761-1-bhe@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: E03748000A X-Rspam-User: X-Stat-Signature: anrrq5tpabb6dbdd3ig46g5uyopbdr6x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r3aBF8HASa/5Zy0L7bU9w5HXmM+x9E1s3h0if7er7S349Fq5bIvm9S8/k/a8uwrInKdgletSqb5wY7pD/nx9aLUS00vDziMUr7uJq4j5KBDP9E6LPawvekcPVA9860Wbx5SliDqOd6yD8yv5h7HZsqo8f/Lm1xkwK9PNrLvDYw4AyHdGc+0TkF248mTHHE+dld0nw918jYnxPmfFZsJjU5FINF+bc= 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> |
Series |
mm/vmalloc.c: allow vread() to read out vm_map_ram areas
|
expand
|
diff --git a/arch/sh/kernel/cpu/sh4/sq.c b/arch/sh/kernel/cpu/sh4/sq.c index a76b94e41e91..27f2e3da5aa2 100644 --- a/arch/sh/kernel/cpu/sh4/sq.c +++ b/arch/sh/kernel/cpu/sh4/sq.c @@ -103,7 +103,7 @@ static int __sq_remap(struct sq_mapping *map, pgprot_t prot) #if defined(CONFIG_MMU) struct vm_struct *vma; - vma = __get_vm_area_caller(map->size, VM_ALLOC, map->sq_addr, + vma = __get_vm_area_caller(map->size, VM_IOREMAP, map->sq_addr, SQ_ADDRMAX, __builtin_return_address(0)); if (!vma) return -ENOMEM;