Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1740711rwb; Wed, 26 Jul 2023 18:21:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlG2q45TISv6JAJXrIdbR3JCPZwx+x3UFXJ0Mxo1q70QH+TZLFuL+C0GDuuHKqX00Mu9zGIq X-Received: by 2002:a17:903:1c7:b0:1b8:a6be:ea82 with SMTP id e7-20020a17090301c700b001b8a6beea82mr1246239plh.26.1690420889794; Wed, 26 Jul 2023 18:21:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690420889; cv=none; d=google.com; s=arc-20160816; b=q8VI8XqzYXBaZMLV1gRvNsZRjujT9quRG9DwkjqTqqQ1zwOLXnSrsrppz7OZG9Dlub 99t+eK+nePUjsP4Y1ixp/NrASvk6yJ316LGH49KXlwuCUSShdODxKry4xFogJIMVlxuE wowXLc/vGSxoJqvqHcQZiBY+SOK3huHnR63Khl7BWn7TMh11OFq43aoVuh7sdK1XxWpI ZjyChWDar3i3657hD+MCOVSWlPXtAhhnYQBDsBiKvgjwT5HpfhvRoqJ2OPEM6qTOpGVX IgHlYFp3h6Js+fLQPmGwdPgUy7rdh3A0W1d7Q7W5v+kniuT8ad4LqPyHsN1gBXU39tfT sH3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=1lhmM7kpbx7lw98lDuPTbeB3T810RA3LO8pc9Vx4A2c=; fh=v9wYe9VT0TbAN61FdyevhEThUjofuva2Dd+9j50U/es=; b=mxuGKn0zyOFlRgcu1s7jWjf26ja3EKn3n420fGieRPxifHMP84ahCk+SbKTygQD3tk VBrxIalunkKEXoRPmFnWvtjMmcJJIOuG71hAfs3vW+d20K0XouZh14+3XWmSuqwTe4Gk Y1iyw3nhHMGiKJFe278/E4cHXYsHBNT1E/oyZudeSsHJLO+6J0xrUW+sBByqxCvSFDwB aJKKbpSkkkpyuuPMc5uiZK04s+yhADYYQVh5uzOuYIsxtlOIyjv8xJf5C/U7XVJNF1H+ O6T4LyMmYGKacZaQSM/qxjdOfdQj1JbZLhrTeicJ6kw4gh0XCux6Gu+dxpsbDRSiNmr3 Gyow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r130-20020a632b88000000b00563e747d380si199505pgr.775.2023.07.26.18.21.16; Wed, 26 Jul 2023 18:21:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231289AbjG0BQX (ORCPT + 99 others); Wed, 26 Jul 2023 21:16:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229590AbjG0BQW (ORCPT ); Wed, 26 Jul 2023 21:16:22 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D07A2709 for ; Wed, 26 Jul 2023 18:16:21 -0700 (PDT) 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 To: , CC: , , , , , , , ZhangPeng 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: 7BIT Content-Type: text/plain; charset=US-ASCII 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-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: ZhangPeng 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(-) -- 2.25.1