Message ID | 20230727011612.2721843-1-zhangpeng362@huawei.com (mailing list archive) |
---|---|
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 4F952C04A6A for <linux-mm@archiver.kernel.org>; Thu, 27 Jul 2023 01:16:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 404916B0075; Wed, 26 Jul 2023 21:16:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2F7408D0001; Wed, 26 Jul 2023 21:16:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D02C28D0005; Wed, 26 Jul 2023 21:16:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id B05218D0001 for <linux-mm@kvack.org>; Wed, 26 Jul 2023 21:16:26 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 70F6C1605C6 for <linux-mm@kvack.org>; Thu, 27 Jul 2023 01:16:26 +0000 (UTC) X-FDA: 81055626372.01.5D8D291 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf10.hostedemail.com (Postfix) with ESMTP id 8D3E7C000D for <linux-mm@kvack.org>; Thu, 27 Jul 2023 01:16:22 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=none; spf=pass (imf10.hostedemail.com: domain of zhangpeng362@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=zhangpeng362@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690420584; a=rsa-sha256; cv=none; b=zq/YH5zRFCbPB7LJphvzn8XiyXX+5nNkURgAd8hPXELbPp/LpCM6FFTuaqoaFdRVSXFUJW UtEyIjkrXsz5WmCrnGEp3RcRWSV8v9ozFJqL7rgS3o3C5VrvMTr1aLG5WJvx0Y0heJzKaM Yxqw5/M0ggS3NF2jCug0KB7TW3XkvJM= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=none; spf=pass (imf10.hostedemail.com: domain of zhangpeng362@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=zhangpeng362@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1690420584; 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: references; bh=1lhmM7kpbx7lw98lDuPTbeB3T810RA3LO8pc9Vx4A2c=; b=CvqogF2pLlN4NHSsPxZI0vXnfMBF07Y4YifBgfbbDfvh80XB9SfOT7mz+9UfGYhRBEIuPu HiuT/9JvaxvjhdpCKS6znIq5iK5KRBVI4a86fDV1g7u700FnSqVWXglga/JtsAdN7NKck6 TyuT2KPV/sb/BoFauERyt3vaSrSR/sE= Received: from kwepemm600020.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RBCSH3h7lztRk7; Thu, 27 Jul 2023 09:13:03 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by kwepemm600020.china.huawei.com (7.193.23.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 27 Jul 2023 09:16:17 +0800 From: Peng Zhang <zhangpeng362@huawei.com> To: <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org> CC: <glider@google.com>, <elver@google.com>, <dvyukov@google.com>, <kasan-dev@googlegroups.com>, <akpm@linux-foundation.org>, <wangkefeng.wang@huawei.com>, <sunnanyong@huawei.com>, ZhangPeng <zhangpeng362@huawei.com> Subject: [PATCH 0/3] minor cleanups for kmsan Date: Thu, 27 Jul 2023 09:16:09 +0800 Message-ID: <20230727011612.2721843-1-zhangpeng362@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600020.china.huawei.com (7.193.23.147) X-CFilter-Loop: Reflected X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 8D3E7C000D X-Stat-Signature: a7rsfgxpifm1kg17i8uhjkwmpecrwtqd X-HE-Tag: 1690420582-462282 X-HE-Meta: U2FsdGVkX18ewAXTD46tXE0IhokGmmRNTgQw37gSRpoEQk3+RuXQ4uySBnwE0UMMLbem79C4PjF9TkyClWn70Kt6d9t5/RV/kHm9ILsKZdLw6095pibrktVbv0p8FakieUJcZI17jOyRtewlB8Ix1ts1ZEzRaxztlDRE5VpZe5zIguiLiS1u+wUSmZHe3JongaJn9J2OtjEf1ig+fDdyTonwErPTtBLOzyTs+JbORl5X4vmzQX38fjfjOYTx03g6Gl5G5sPYvU8Mz953vrOwT2AhmDw0KGR7e1Jwwt59g5LhL+ZgmlA1TEgY2OmZeH+Qnp04SR4no8t8CWAC2jLdEBRA2sb+m1qk5/ll0EJSYBWiSKgMnDX3/Xc6VYoDtMjd3LDzwb/QHzRTnPN/kwVoKZEVbmTAUJGbBfKxpmPlZseL4p3sx+LUN54H671rdlUaxB3KKJfJwX21DPfFU3pO7aJgr5ezoZoP+AVnRn1di4gZESNosTnWUwRux21t26N2fDvTuLQ5hOxe/0ABC/6PVpSxJNQVRvea0X8rNv874sgk/FFjh2za+115+8Zgjw3H7kNjNlKqNuTBy7Wz1DxQYS3l5gWPM3Z3KMbJvvYPi+SAf1AT3HoLtNP0aDlpDupkH8pP0fcBHSBbF0onkBPQDoSlCSSQ+9FoOhRBu5zUZh2lUrpZtDM9S7OMmf7/kLRZfULSuSnhApf6vVCSAu+NwOuEAPWSTWbF5HNYb6Z8rElkRoIb605tLPQm2snXfgnGra0nQ+5dXFhICQBvJ2Ev6sfuTfmK62TXvMYggjXV0kh2imiIXc9rvqzeq1A+t+aNku2J6tbtt+5aEFb32Lxcf754U+OJr9KbML7iS897s0nOzyCmAcWvPpiZPVXlB6D3hRlbcy5jw97+5VV7n9s6Es5KX98cxhaRX70DS1GXzdRs5df00keddOs6u2sBunyVmxhf/o5zrMjL+pBIgDu mEEkbsRD NgjgYKLrRhyRVT0QxU3FluJnlcxIWM4476ZNgJlXarKx8kpU6wM+eHMn4aqjRmhb7p2t/WNxjydk3NJvDElsCoZBxg80Y+074Rnp47fsI1zvEIRZAHB9pbxYy9wazGDm5PluZDdCkaL83l8348OxPoIAicQ== 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 | minor cleanups for kmsan | expand |
From: ZhangPeng <zhangpeng362@huawei.com> Use helper function and macros to improve code readability. No functional modification involved. ZhangPeng (3): mm: kmsan: use helper function page_size() mm: kmsan: use helper macro offset_in_page() mm: kmsan: use helper macros PAGE_ALIGN and PAGE_ALIGN_DOWN mm/kmsan/hooks.c | 4 ++-- mm/kmsan/shadow.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-)