Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp754986imm; Thu, 26 Jul 2018 11:24:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfVohYNuQ4P1X9nNBT5eMf7WDiD8kfZrPBuO1r3UhXIaVsN0VHPbQ+gtSGwSReLeDA5k4BE X-Received: by 2002:a17:902:9a83:: with SMTP id w3-v6mr2938861plp.75.1532629457265; Thu, 26 Jul 2018 11:24:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532629457; cv=none; d=google.com; s=arc-20160816; b=SIYVM4p7iYZTRMye2o+FSBtUCUF589MoV0gEgBH8eDpP5WuqTV8l22k8/GpK7RF/t8 Ucpfn/1el0aCDeBCGTHnw1Fg+0fCG5HUqGXuRBzpxW4nkwgEXZ6ZXS95p1owX8XK9isy doxgiMLYKmeOZFdhrQSRoQrG7/zYTZUYdbG1gRqGjNaNtuJsyQVrXVyB8o49AlpvMKZu MmVatrFYxPu0TO7Vo3Dg08MPovxqhiBy9CrJjXPmMtQT0WfNR2PR/p3cBt/Kl2l/ke8f qaKgVks1J0KoPrhoUvtzxG+j6/66wsffWTxLN+PM9j54vsr4GPTucVR5wgV+Gfvbuemo eeNg== 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=yGUbkOEPCBb1zuwmO4QV+2znmVaAftlvQ0ueCqgzDMY577vOjdpakVNPrX7hrQs/4l jfbYxMOTMO7tm1D1PYTLy2X/t2ZALMZYmasQ7XTNS5K1M7B4lsUxMk8vERRF9NHS8SY+ Ce0B5/uMsKnkjGhG4Fh1iCo0307niIb3ZNFhg2LbE8vdqI0hSrUfmDUzJ6pRb/2H3F+W 6q0bbDtUD/N2TobZUJ4vTUZvNR6QOFAO0UIFeaOwumfZHGZpNbS3T+O9e4jHu/UnGKgw Iea+QjaM61yEHvP4A+v/n1NVZm6vIC7vHxenAZgdYS/6eeQQ5HkD+yaKZKwJJcPcTblT oU1g== 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 bd3-v6si1667927plb.171.2018.07.26.11.24.02; Thu, 26 Jul 2018 11:24: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 S2388986AbeGZSup (ORCPT + 99 others); Thu, 26 Jul 2018 14:50:45 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:57334 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731409AbeGZSuo (ORCPT ); Thu, 26 Jul 2018 14:50:44 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6QHSpUR090926 for ; Thu, 26 Jul 2018 13:32:55 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 2kfjqt055d-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 26 Jul 2018 13:32:55 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 26 Jul 2018 18:32:53 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp07.uk.ibm.com (192.168.101.137) 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 18:32:50 +0100 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w6QHWneA39059658 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 26 Jul 2018 17:32:49 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A8BBB42045; Thu, 26 Jul 2018 20:33:03 +0100 (BST) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C450F42049; Thu, 26 Jul 2018 20:33:01 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.204.214]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 26 Jul 2018 20:33:01 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Thu, 26 Jul 2018 20:32:46 +0300 From: Mike Rapoport To: Jonathan Corbet , Andrew Morton Cc: Matthew Wilcox , Michal Hocko , linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Rapoport Subject: [PATCH v3 2/7] mm/util: add kernel-doc for kvfree Date: Thu, 26 Jul 2018 20:32:35 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1532626360-16650-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1532626360-16650-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18072617-0028-0000-0000-000002E0AD27 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18072617-0029-0000-0000-00002398A0A9 Message-Id: <1532626360-16650-3-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-26_04:,, 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-1807260180 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