Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1687711pxj; Fri, 4 Jun 2021 23:45:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwj9toiHetlITe007BjvNr5kbBSMwtBp+15N86PlphwOPft/+nDc7QEGUoNmgxmVrQXOhkg X-Received: by 2002:a05:6402:1713:: with SMTP id y19mr8774871edu.346.1622875507541; Fri, 04 Jun 2021 23:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622875507; cv=none; d=google.com; s=arc-20160816; b=Hwovc+ZZR4hkMr5i8j3uAT72IJFojtHgY9WouDGkCSGWLsABqG1/t4t9QxcuFyCupi yaFevN6lqMqJEA5CQD+sFvHAFY4qa6cjfRkU/PgxgmgHnVUygzintQKy/SNFZeTAuDg3 hRyoxVcAQGpw1rl2T1/Uq0GXjuDpO/2tJlyKqzRiCn+WQX4j9Y87KwT3Nmyafq68enRD L4O2m3Y4/Gi3160jUO6PHfzS06XgIatRqwqZJiSCKlktKVhnYrLEguJN0bwdsnY3AseO Q92YbpIiJ1Yz/fOEfgjyt0cVqutpWl3vXE1twkfXUPJLn/5HNIZWTxPDb1Kh2WL9VVWT 842Q== 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=Ktj8qVFS8IKRiO66KKE7FYCORxJYcK/IJ83S5cSi1lA=; b=VyMy79OZB7wQiAQIQC8+fR0vHqj3z3z+pFJMFQyiY2q8uegiBLVnWKtqs7T6WNPHGu 82E1Vt6wuWGTTnCG9peKv4Sii5/w0mrzdqIQ1yYtBr1u/wmEshqulj68WVJF2oP769B/ 6mWzlj7koVj7cQ4oRyOBbwWuBhWylm2Y8r1bMWPzNSgdyEgIi5vpmvzhzSoVcRz4HC21 D3h5xMP1Fpfvsi8dGCoTAtJFVi9Na0LVSM+Rx6CuLOJgw6ZlJ7tNRy8E0w3U07ldsAXo 2yvKePyXA7Nyp17PB2pYuCV+zZnUE26x8PDFOfnyCzMplQwOmddik6n4uEghgmyKrXFN eHww== 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 j6si6424824edq.137.2021.06.04.23.44.45; Fri, 04 Jun 2021 23:45:07 -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 S229850AbhFEGoF (ORCPT + 99 others); Sat, 5 Jun 2021 02:44:05 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:3437 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbhFEGoF (ORCPT ); Sat, 5 Jun 2021 02:44:05 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Fxqjb6dKSz6tqq; Sat, 5 Jun 2021 14:39:15 +0800 (CST) Received: from dggpeml500020.china.huawei.com (7.185.36.88) 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.2176.2; Sat, 5 Jun 2021 14:42:16 +0800 Received: from huawei.com (10.175.127.227) by dggpeml500020.china.huawei.com (7.185.36.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Sat, 5 Jun 2021 14:42:15 +0800 From: Baokun Li To: , , , , , , , , , , , , CC: , , , , Subject: [PATCH -next] x86/mm/pat: fix doc warnings in memtype.c Date: Sat, 5 Jun 2021 14:51:30 +0800 Message-ID: <20210605065130.696418-1-libaokun1@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpeml500020.china.huawei.com (7.185.36.88) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add description for `pat_pfn_immune_to_uc_mtrr` to fix the W=1 warnings: arch/x86/mm/pat/memtype.c:744: warning: Function parameter or member 'pfn' not described in 'pat_pfn_immune_to_uc_mtrr' Signed-off-by: Baokun Li --- arch/x86/mm/pat/memtype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/mm/pat/memtype.c b/arch/x86/mm/pat/memtype.c index 3112ca7786ed..3f72ff4400bd 100644 --- a/arch/x86/mm/pat/memtype.c +++ b/arch/x86/mm/pat/memtype.c @@ -734,7 +734,7 @@ static enum page_cache_mode lookup_memtype(u64 paddr) /** * pat_pfn_immune_to_uc_mtrr - Check whether the PAT memory type * of @pfn cannot be overridden by UC MTRR memory type. - * + * @pfn: The target page frame number * Only to be called when PAT is enabled. * * Returns true, if the PAT memory type of @pfn is UC, UC-, or WC. -- 2.31.1