Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp681646imm; Wed, 25 Jul 2018 04:28:45 -0700 (PDT) X-Google-Smtp-Source: AAOMgpecB6tLZNzlJ1U1Lc1RnJY6ZYQFRiB9176oJPvE2ptZf3o0vfw0Gdzia0IFXDBHAPgJeMAF X-Received: by 2002:a17:902:8ec9:: with SMTP id x9-v6mr20108524plo.1.1532518125896; Wed, 25 Jul 2018 04:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532518125; cv=none; d=google.com; s=arc-20160816; b=qnr+4Hb8mDprsU8qHqX6mz+nuJafqTb3XR6Kgi1rS/LiChJid610rEEEZIMT5Hq6Zy MopIXgtvpzl7FZc6R88nf2FOEJpH60WCO6YLMULcP+/YkRMLUx1ZUKJZW1/b75Qd2Z8S 1MuYRgGmplj0JR9MTxiPIDK9rX0bKnKuhNMrCqAUbpTp2kz5c79xtBvEuUj7GcIq/7q2 HqnFAHgH1nwpEyvsU2otJiNqaRDPIrYnRk871j1SoSJSZzRB2iwrBiF55cO5utk81Ppu tMDEm/6g3wKoHM9uZn2EuF+ULo/EPGUcHY6B8OC1SVTsOiC5aFC7ygs1Vy5dZYWNOzaR lV+w== 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=Q9kGfQ5BFXxbvXcLiR46wU+6WIu6afw2ngyvt+daTSs/4jxSTBHNUitD/TV+qcdK4F 9Ktc9QWNOVkuJKtA2t9W8Nnn7vsNL/+gkIYBGDlDoW46R8LBwrX3cCelgcO8ST2Errle vMca1aqDA8ifE4oEtHPjtbHata6bYBn9Lry7h/MYhsaz1wN/nqHIbM4AN1FY2laQPCeS AZ51udzsgsYZcE3UOBqYKjRN8vx7IIyxM42ncZvnbTw/Hg/9mrNQRjQebufe2zK6LOqA 5oZRyw8XyPKAMyLIfSQiiS4IBXnFQkhKnA/VISQ1UFz147Oq2Z648InTAgEZoiGvSikC xIYQ== 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 j10-v6si11892055pgq.503.2018.07.25.04.28.31; Wed, 25 Jul 2018 04:28:45 -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 S1729021AbeGYMiS (ORCPT + 99 others); Wed, 25 Jul 2018 08:38:18 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:35564 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728838AbeGYMhi (ORCPT ); Wed, 25 Jul 2018 08:37:38 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6PBPVkA079021 for ; Wed, 25 Jul 2018 07:26:23 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2keqexjcxt-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 25 Jul 2018 07:26:23 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 25 Jul 2018 12:26:21 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 25 Jul 2018 12:26:19 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w6PBQI5a42074250 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 25 Jul 2018 11:26:18 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2BC7E11C058; Wed, 25 Jul 2018 14:26:32 +0100 (BST) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AAEE411C04C; Wed, 25 Jul 2018 14:26:30 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.8.110]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 25 Jul 2018 14:26:30 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Wed, 25 Jul 2018 14:26:16 +0300 From: Mike Rapoport To: Jonathan Corbet , Andrew Morton Cc: linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Rapoport Subject: [PATCH 2/7] mm/util: add kernel-doc for kvfree Date: Wed, 25 Jul 2018 14:26:05 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1532517970-16409-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1532517970-16409-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18072511-0020-0000-0000-000002AAF0A7 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18072511-0021-0000-0000-000020F789E9 Message-Id: <1532517970-16409-3-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-25_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=833 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807250124 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