Received: by 10.192.165.148 with SMTP id m20csp3284913imm; Mon, 23 Apr 2018 04:04:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Y2GUrmmeyfRzmYZWLCz/Z9UazPtSIEvDih3DZVYQCNDJcsZzMgZaYtZJ3iSXBtrW6pBkc X-Received: by 10.99.117.92 with SMTP id f28mr7636118pgn.30.1524481457188; Mon, 23 Apr 2018 04:04:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524481457; cv=none; d=google.com; s=arc-20160816; b=fEXgOgVvWS8zbudgVIsYuO2JqyEnOAwRitz0hEQyJR06Duhkq4E+zsaxyuRJOri5qJ mcENY615Bae5tU5kqgA1vRGmVxpQZHFeuqWeQmCNnfnBgp8E5Sy3bwktd/mY1zDBSE7m Dl+tmW8owFwYTWrZoo+RsKaNCi3zaJvbhpPQluXL9zPT8vG2I87+eYcr8ZVorx7w/6xu d0mwKIHq7uuzOJYb5U7vXLqaPwiPoRifiJXYaA1ZEh3AixnrhHyCf0IZ6MOBVyI2fe0t wCQ2UVkoIuRfPrsFJqR2fAVVJ9v1ZCjGVl76w1WSp95McHQqAwMXLLsdGCYUXFviuwuv E7Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from:arc-authentication-results; bh=Ks17F1sRjpUwZo+1XCJsrrSJSrN1Dk8mgMOxaxuXH4g=; b=CrQPyPzgWpNKOkZLJf90JPNkNW/hPDN1rv1lXoBLKj+44J0if18JHy0oPomvluWOyN Qyt9RODWvhfIIZX4FRPMQYQDZZhPEy6mK0rjSk+XaARJA3LDWrbLqJQAh0jxSVssJ15J RmrVkGDfaPPfcZftAyXZAMXfwVMH81vzHEC4l7pkdMJbI1R6cAiq/JkjoZr0V7OBUTMk hP+Xbxc6jRKQ8jvzhkdYH2FUxIjVR6zp0nwNyifsC0e8ziRYatuW3vnnIdyX36XwGJ/t 6z+PBhOYfByHopNjYk4naElctx4AliAffoUXNd6ixj49iXcPQ4Noc6ccpojT2HYGC+kk HO9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i35-v6si10844856plg.504.2018.04.23.04.04.02; Mon, 23 Apr 2018 04:04:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754832AbeDWLBk (ORCPT + 99 others); Mon, 23 Apr 2018 07:01:40 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:56582 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754653AbeDWLBa (ORCPT ); Mon, 23 Apr 2018 07:01:30 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3NAnnda023619 for ; Mon, 23 Apr 2018 07:01:30 -0400 Received: from e38.co.us.ibm.com (e38.co.us.ibm.com [32.97.110.159]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hhc9enkku-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Mon, 23 Apr 2018 07:01:29 -0400 Received: from localhost by e38.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 23 Apr 2018 05:01:28 -0600 Received: from b03cxnp08027.gho.boulder.ibm.com (9.17.130.19) by e38.co.us.ibm.com (192.168.1.138) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 23 Apr 2018 05:01:26 -0600 Received: from b03ledav001.gho.boulder.ibm.com (b03ledav001.gho.boulder.ibm.com [9.17.130.232]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3NB1Or58061368; Mon, 23 Apr 2018 04:01:24 -0700 Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 385246E03D; Mon, 23 Apr 2018 05:01:24 -0600 (MDT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by b03ledav001.gho.boulder.ibm.com (Postfix) with ESMTP id 79EB56E03A; Mon, 23 Apr 2018 05:01:22 -0600 (MDT) From: Dong Jia Shi To: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, kvm@vger.kernel.org Cc: cohuck@redhat.com, borntraeger@de.ibm.com, bjsdjshi@linux.ibm.com, pasic@linux.ibm.com, pmorel@linux.ibm.com, Dong Jia Shi Subject: [PATCH v2 2/5] vfio: ccw: shorten kernel doc description for pfn_array_pin() Date: Mon, 23 Apr 2018 13:01:10 +0200 X-Mailer: git-send-email 2.13.5 In-Reply-To: <20180423110113.59385-1-bjsdjshi@linux.vnet.ibm.com> References: <20180423110113.59385-1-bjsdjshi@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18042311-0028-0000-0000-0000097C2823 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008905; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000257; SDB=6.01022058; UDB=6.00521638; IPR=6.00801293; MB=3.00020722; MTD=3.00000008; XFM=3.00000015; UTC=2018-04-23 11:01:27 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18042311-0029-0000-0000-00003A7DD06B Message-Id: <20180423110113.59385-3-bjsdjshi@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-23_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804230116 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The kernel doc description for usage of the struct pfn_array in pfn_array_pin() is unnecessary long. Let's shorten it by describing the contents of the struct pfn_array fields at the struct's definition instead. Suggested-by: Cornelia Huck Signed-off-by: Dong Jia Shi --- drivers/s390/cio/vfio_ccw_cp.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/s390/cio/vfio_ccw_cp.c b/drivers/s390/cio/vfio_ccw_cp.c index 62d66e195304..e8fe7450702e 100644 --- a/drivers/s390/cio/vfio_ccw_cp.c +++ b/drivers/s390/cio/vfio_ccw_cp.c @@ -23,9 +23,13 @@ #define CCWCHAIN_LEN_MAX 256 struct pfn_array { + /* Starting guest physical I/O address. */ unsigned long pa_iova; + /* Array that stores PFNs of the pages need to pin. */ unsigned long *pa_iova_pfn; + /* Array that receives PFNs of the pages pinned. */ unsigned long *pa_pfn; + /* Number of pages to pin/pinned from @pa_iova. */ int pa_nr; }; @@ -53,14 +57,8 @@ struct ccwchain { * Attempt to pin user pages in memory. * * Usage of pfn_array: - * @pa->pa_iova starting guest physical I/O address. Assigned by caller. - * @pa->pa_iova_pfn array that stores PFNs of the pages need to pin. Allocated - * by caller. - * @pa->pa_pfn array that receives PFNs of the pages pinned. Allocated by - * caller. - * @pa->pa_nr number of pages from @pa->pa_iova to pin. Assigned by - * caller. - * number of pages pinned. Assigned by callee. + * Any field in this structure should be initialized by caller. + * We expect @pa->pa_nr > 0, and its value will be assigned by callee. * * Returns: * Number of pages pinned on success. -- 2.13.5