Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp381294imm; Thu, 26 Jul 2018 05:24:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcGmRmGeBq0R7jcbThm2MIILT/cKNaos0awXIx1C7D2dLWwRd3epRfJKUaOYVJZi0k32vB2 X-Received: by 2002:a62:1815:: with SMTP id 21-v6mr1895206pfy.227.1532607871787; Thu, 26 Jul 2018 05:24:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532607871; cv=none; d=google.com; s=arc-20160816; b=H20Y4Igx/zkZ8xsQ9RzPR7x/orKVuD2pCQQ3jlC7OUHcpHBXqV1Qq2dC1I5Ea7pjEM 5qd1uW2NHQbjNRbJ0VVMIHrIS6DCHz+ZFJxLZSYRo+Q+FKj+R/flzYZcciE4iuonBR7x QdUTxdIT34hPC0Ld7j/QAAjAAiBpXPa/tCheIrgJySt7zjeXKD6xNL6Mx53aQEvE1y8I BA/bSuZSYzD5e0H3zlYFj62RsGWGpheCobnTZODFznO+qd59e4JVM3sYjPW43z7HcyMb KLGso4y40Sj1liYcu/o41n2l3jwS23TvV9qcsSc+3U2OCbKu4iYoqOn/VrNks2mktgDh +bvA== 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=tsgWAzD/V/iTM9XVrNLk/H44DkI8oDZBWthlaIbs3ZI=; b=gfzoFZjWKlQiQ3NdqTQxBnbsMBX7FGESeAvyiGAZ7y/MA5Ugg/Y1gEswQVFiJvkmf7 XJAv6g+DKxhm72Ycz3E/4dI1pkiPgkmwupLRf/RrUOLWSRjAkJIQVX/fPGWENQn4T3cL yuoTHjcjxigjnXX9joM1iTyX6G6N2ByBVCxrRRXF+HIlZ6i9gulLCtX2YEFZaT2Vccbq 7lLTkBsr96y1lwAjl8cUVTmJYmhQ2GnQnQKPGHPYJgIOK/CPS7MzWyzAWue06GzCQl1a DDYIqDfg27t4Q6IN6KbDjP7syqENCo0m1O99XR0DmZ5UETCjpEbdJz0wiSzxdsKSCKhV jxug== 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 w25-v6si1264750pga.58.2018.07.26.05.24.17; Thu, 26 Jul 2018 05:24:31 -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 S1730445AbeGZNiz (ORCPT + 99 others); Thu, 26 Jul 2018 09:38:55 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:60818 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730292AbeGZNiz (ORCPT ); Thu, 26 Jul 2018 09:38:55 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6QCIj18030265 for ; Thu, 26 Jul 2018 08:22:19 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2kfe3xgbgv-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 26 Jul 2018 08:22:19 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 26 Jul 2018 13:22:15 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 26 Jul 2018 13:22:11 +0100 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w6QCMAvP37421206 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 26 Jul 2018 12:22:10 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 095FFAE058; Thu, 26 Jul 2018 15:22:17 +0100 (BST) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 79F1DAE056; Thu, 26 Jul 2018 15:22:15 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.8.177]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 26 Jul 2018 15:22:15 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Thu, 26 Jul 2018 15:22:07 +0300 From: Mike Rapoport To: Jonathan Corbet , Andrew Morton Cc: Matthew Wilcox , linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Rapoport Subject: [PATCH v2 2/7] mm/util: add kernel-doc for kvfree Date: Thu, 26 Jul 2018 15:21:57 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1532607722-17079-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1532607722-17079-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18072612-0008-0000-0000-000002580C6B X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18072612-0009-0000-0000-000021BE8B3D Message-Id: <1532607722-17079-3-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-26_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=829 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807260129 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Mike Rapoport --- mm/util.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mm/util.c b/mm/util.c index 6809014..d2890a4 100644 --- a/mm/util.c +++ b/mm/util.c @@ -434,6 +434,13 @@ void *kvmalloc_node(size_t size, gfp_t flags, int node) } EXPORT_SYMBOL(kvmalloc_node); +/** + * kvfree - free memory allocated with kvmalloc + * @addr: pointer returned by kvmalloc + * + * If the memory is allocated from vmalloc area it is freed with vfree(). + * Otherwise kfree() is used. + */ void kvfree(const void *addr) { if (is_vmalloc_addr(addr)) -- 2.7.4