From patchwork Thu Jun 30 08:41:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 12901423 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 BFDB9C43334 for ; Thu, 30 Jun 2022 08:43:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3AF608E0001; Thu, 30 Jun 2022 04:43:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 35DC16B0073; Thu, 30 Jun 2022 04:43:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 24C858E0001; Thu, 30 Jun 2022 04:43:31 -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 154A06B0072 for ; Thu, 30 Jun 2022 04:43:31 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id DCBD16141C for ; Thu, 30 Jun 2022 08:43:30 +0000 (UTC) X-FDA: 79634263380.28.90B3CFF Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) by imf22.hostedemail.com (Postfix) with ESMTP id 8D812C0038 for ; Thu, 30 Jun 2022 08:43:30 +0000 (UTC) Received: by mail-lf1-f50.google.com with SMTP id i18so32462626lfu.8 for ; Thu, 30 Jun 2022 01:43:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+AiQpXe7F5NOlxc2ZxWVb4q4QVNEW3l59z1HMAX53js=; b=NWO8s2CA7g/yeaBQNJvXK2O5UzTHsSk7rW0fNoI6zIP6QQuT6BFZTYgvlFkJ/Jn4ba lzIoKyDRDf3Y9JmwQIg/+dMJKwLoo/jqSz9L3im6Qvfq5pjsNFKLnaaB3L8uDLuyi6YS LNfpNFfRPg72p3VxURStF3MXgbp5N/Z9vg/XCZ/j0qTgOlUz9lx31X15nOFwhjk2RjGK C6R7RBFIRJVMDkE2bqLgu8q6Y+k6KAcuTDTP02F6uVzLXn3NiSSFxiD73rN+rNtAkCFx seTC3WbVLA91vepBBEHYgOzwQeFh4LelfxoD7KSDnyR4naiKDDVlDv2Jz4q+VOtWRhi/ Yzaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+AiQpXe7F5NOlxc2ZxWVb4q4QVNEW3l59z1HMAX53js=; b=MRQhB0Qz5JdjiPy1ZK5/BjeYQIFY7cGrtiMDnIWnIcrtMJHAe1ZeE9uxT+RlwHypLQ e8dufxRO2rPd3Af6grMpcZ5BoEepNXTYmcaDzd8E3kpoPbEty06GEBjO3NGQ6kzD5fLx A0qV+DKOANX1m8TGpHzgAnuF0h2AD+4R99vMPruUOiZgvbMm/9OdXLtUI1bjK685/Ojo sMll6HQZextdZrG3oS0s4z6ZP4bLPM8FjCWeuecrTNlxBMi+SDEu57a/MxDrzEVI+T/l 5ld9LkgSRBT1ZaJBLhHcToAYLfhynuKOcLm79k6bO4RE2Rn5930kkFJ4Y6Zs0eZcIFh6 jAJg== X-Gm-Message-State: AJIora/nXhtYLeYaWh01v76vFr7QRE2u1Wbu5COBIinw1gNKzN7cpGvZ xn3DlJv4+oBnTM6dPsO3LFm9ASDax17C+Q== X-Google-Smtp-Source: AGRyM1v/Snx59aZpah+CHglutgC7yGDB/43ezEreO4lm7x10maJUxUM2JOZg0o1v+KXED7wi+QNTkw== X-Received: by 2002:a05:6512:3e1c:b0:47f:781c:6c94 with SMTP id i28-20020a0565123e1c00b0047f781c6c94mr4845579lfv.7.1656578609062; Thu, 30 Jun 2022 01:43:29 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id o23-20020a05651205d700b0047f62762100sm2973023lfo.138.2022.06.30.01.43.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jun 2022 01:43:28 -0700 (PDT) From: Linus Walleij To: Andrew Morton Cc: linux-mm@kvack.org, Linus Walleij Subject: [PATCH 0/5] mm: Pass pointers to page accessors Date: Thu, 30 Jun 2022 10:41:19 +0200 Message-Id: <20220630084124.691207-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1656578610; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=+AiQpXe7F5NOlxc2ZxWVb4q4QVNEW3l59z1HMAX53js=; b=ydUm+udMWZaxvTmVmWSzZ9Yobd2h7KtT5MGg3JxpLHn+XKiQz9B3nGqDlyw+qyvBl0iwie 1zAoUzPrwru21u74mfzECTl0XfNie7y+VS6qZ2eFOmr8hGVJAN21D3oykobZe/ssHbuumH ePhfF98g4hTgd/GUmAw0QTAWx7AW7i0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656578610; a=rsa-sha256; cv=none; b=mPYMP5Ugn7HQF2n+B50g/f3fYGp9TFx7jGS7Nfl8L0lzYA33xDzKEXVLGAdYiNr0r8vv1n wi4OaVSqI40+FTkTiQVT5B5iT8aDaA86CB8k9sd2vwPdGHXoyvLfwtw4fPlhp7jrWXG3Z6 O/PmyCnXc35NaezRTl5xZW7sZRdtOiY= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=linaro.org header.s=google header.b=NWO8s2CA; dmarc=pass (policy=none) header.from=linaro.org; spf=pass (imf22.hostedemail.com: domain of linus.walleij@linaro.org designates 209.85.167.50 as permitted sender) smtp.mailfrom=linus.walleij@linaro.org Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=linaro.org header.s=google header.b=NWO8s2CA; dmarc=pass (policy=none) header.from=linaro.org; spf=pass (imf22.hostedemail.com: domain of linus.walleij@linaro.org designates 209.85.167.50 as permitted sender) smtp.mailfrom=linus.walleij@linaro.org X-Rspamd-Server: rspam03 X-Rspam-User: X-Stat-Signature: mxobk885e8bou1fpi1zyurjgfznf6jj8 X-Rspamd-Queue-Id: 8D812C0038 X-HE-Tag: 1656578610-717799 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: In a recent change to the Arm architecture with the end goal of removing highmem we need to convert virt_to_phys() and virt_to_pfn() to static inline functions. This will make them strongly typed. However since virt_to_* is always implemented as macros they have become polymorphic and accept both (void *) and e.g. unsigned long as arguments. Other functions such as virt_to_page() simply wrap virt_to_pfn() and get affected indirectly. To be able to proceed, patch mm to use (void *) as argument to affected functions in all instances. Linus Walleij (5): lib/test_free_pages.c: Pass a pointer to virt_to_page() mm/highmem: Pass a pointer to virt_to_page() mm: kfence: Pass a pointer to virt_to_page() mm: gup: Pass a pointer to virt_to_page() mm: nommu: Pass a pointer to virt_to_page() lib/test_free_pages.c | 2 +- mm/gup.c | 2 +- mm/highmem.c | 2 +- mm/kfence/core.c | 4 ++-- mm/nommu.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-)