Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4693423pxb; Tue, 5 Oct 2021 08:24:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzSTx8TvB/GdPQ28IBszBhzH2cTPrU8mrhOgpRoCVrFGbiu1ZmapJKf19Qu2E0Mj17RSqB X-Received: by 2002:a17:902:b691:b029:12d:2b6:d116 with SMTP id c17-20020a170902b691b029012d02b6d116mr5800709pls.71.1633447464803; Tue, 05 Oct 2021 08:24:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633447464; cv=none; d=google.com; s=arc-20160816; b=pUcl7BySWbD5F7qfPxm9GGCpjPm4srAQcbaIdLRARum8X2RhbeWmkixROFq1XWmgtB 8L6ivxbdgYeNkg91da7I1jqVYJjx12/XfOpkKvwUqF4bh9r4MFQdYnGu5UGtWEib1TJT E/pYiA7Sf96j8KRUfBZdbFuH7uRhN5gdCGpkthy+FBwYgqRWVfXrt6AFf1MGZYQdADVE Nc0R99/douAmc9pkk1hS29bWgoGEfWxPAoTF4iQczAh3TtqL0lJoPz7CxiSoE07W8rvO 4n7vRz/VSwFPBlubA+yuExQ5zl5OxN2poidnOL4YcRyY0KU+B6FtVo2s7KDzF2n2XMLM EBMA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=bswY53wdWTcBKD2Bv7UyTuYP876lccz32A+oncwrngU=; b=cE4ZyoYUHfIc3i+rduJAwUPQQdt7yQc32zrInML3RH6Hdgxf4xz+eL5MVw4OMz30xd ipBwitCP4+FzUbqEZCHBKYWk7K+HMfN/FpLuwtZbdThKNK30NvpTUP7xUTtIToUKXE6J IfgwrFCsUhzp4NrQIhQdcziic17O1pTGPvr4LCm8rQMroNKAamh70iT/0+C7sX00vLOR OcZmWA8LWRhP5ygWG3k7fIFozxANRllWv/rtl/i1u/PHUH4b5J4/ttn2urgFQLcNTriS fU+tuyOEJK+rSzghQhXBsuDC4vKb2dNwVRFv0L0mrA+gGFeO1kxL+cws4Cson3I1znol 3r5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u5si3031576pji.123.2021.10.05.08.24.11; Tue, 05 Oct 2021 08:24:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235729AbhJEPZS (ORCPT + 99 others); Tue, 5 Oct 2021 11:25:18 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:23350 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235704AbhJEPZR (ORCPT ); Tue, 5 Oct 2021 11:25:17 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4HP1T270xPzRcLL; Tue, 5 Oct 2021 23:19:02 +0800 (CST) Received: from dggpeml100016.china.huawei.com (7.185.36.216) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Tue, 5 Oct 2021 23:23:25 +0800 Received: from DESKTOP-27KDQMV.china.huawei.com (10.174.148.223) by dggpeml100016.china.huawei.com (7.185.36.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Tue, 5 Oct 2021 23:23:24 +0800 From: "Longpeng(Mike)" To: , , , CC: , , , "Longpeng(Mike)" Subject: [PATCH v2 1/2] iommu/vt-d: convert the return type of first_pte_in_page to bool Date: Tue, 5 Oct 2021 23:23:07 +0800 Message-ID: <20211005152308.1061-2-longpeng2@huawei.com> X-Mailer: git-send-email 2.25.0.windows.1 In-Reply-To: <20211005152308.1061-1-longpeng2@huawei.com> References: <20211005152308.1061-1-longpeng2@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.174.148.223] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpeml100016.china.huawei.com (7.185.36.216) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org first_pte_in_page() returns boolean value, so let's convert its return type to bool. Signed-off-by: Longpeng(Mike) --- include/linux/intel-iommu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h index 05a65eb..a590b00 100644 --- a/include/linux/intel-iommu.h +++ b/include/linux/intel-iommu.h @@ -708,7 +708,7 @@ static inline bool dma_pte_superpage(struct dma_pte *pte) return (pte->val & DMA_PTE_LARGE_PAGE); } -static inline int first_pte_in_page(struct dma_pte *pte) +static inline bool first_pte_in_page(struct dma_pte *pte) { return !((unsigned long)pte & ~VTD_PAGE_MASK); } -- 1.8.3.1