From patchwork Thu Jul 26 12:21:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 10545695 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 38A25112E for ; Thu, 26 Jul 2018 12:22:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 293B12AE5C for ; Thu, 26 Jul 2018 12:22:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1D20B2B11C; Thu, 26 Jul 2018 12:22:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B27462AE5C for ; Thu, 26 Jul 2018 12:22:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E04676B000A; Thu, 26 Jul 2018 08:22:19 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id D3F7F6B000C; Thu, 26 Jul 2018 08:22:19 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B41026B000D; Thu, 26 Jul 2018 08:22:19 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-oi0-f69.google.com (mail-oi0-f69.google.com [209.85.218.69]) by kanga.kvack.org (Postfix) with ESMTP id 7B0AD6B000A for ; Thu, 26 Jul 2018 08:22:19 -0400 (EDT) Received: by mail-oi0-f69.google.com with SMTP id w185-v6so1217320oig.19 for ; Thu, 26 Jul 2018 05:22:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:in-reply-to:references:message-id; bh=tsgWAzD/V/iTM9XVrNLk/H44DkI8oDZBWthlaIbs3ZI=; b=aOzbPiC16r6CaxT4N1VpY6ZHqAwDkW/+9Tj8v2yOIAdFca0gDqNmgdUEDG6Um4mScO eKuS0gexNZPZBLLltqIKKgVPMDIzUNHUCtGZ5Zk47KLVsPZlUYJ73QVDFil8ovOAdEhj Qy6GkAsCITUzpkafHorm6b/sEhf9iF3f5C/oDMHcvm/sMAdDcFN7DJGDe2SeDOvyH6cm rYikvkS7fjYHW0U4nl8JIjLcCR9C9GrZ6UA6APIptTI4ocRZ1SKDaA2i3YBQNGYV4D+f ayPLhNM3tzHEn8wPnXtQouP4G5LtLJFZtNDQjzsAGNebuejsUSN3ddvBr119DcZxNqzL ZTeA== X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.156.1 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com X-Gm-Message-State: AOUpUlFKFEZaKvLknpezHX9I0CVu3r4MDRQfmWqmIhwy0NTwS3Lkqhjm KWeh8vRAVqwiDEPuFgUeOTrUXj7zb8CrCCeHe+kdZAWLBw9KZbpMM+TI0DwGG7XhNZTADdJVfjz jQkuaK5i8/gap6hjoKrZC+M7dsLGPask/rJ9yis/DUMwrxSf63T5uh7goEaRgPbg= X-Received: by 2002:a54:4406:: with SMTP id k6-v6mr1879971oiw.34.1532607739313; Thu, 26 Jul 2018 05:22:19 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcjOfc6EehdQMwkUeEjii+BFfpc91cbxkX5e0grvpptFbe/zPhoshKh4whk2IHT8x+L9Cz2 X-Received: by 2002:a54:4406:: with SMTP id k6-v6mr1879922oiw.34.1532607738563; Thu, 26 Jul 2018 05:22:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532607738; cv=none; d=google.com; s=arc-20160816; b=YdirolIiVrjCqBi6OyEsvoijOpyF7VUPmA2XBod+jsxDHes7OMqFDeMXKZFkg0R5ZT SoxLWu0uef3TXHZillYrCSO1o2IyU+y6XE1Os5kpGFtUUCz8ojNSkMeaADWCkD6fSCYV bS9+xlJCTAeAI/KeJJ94Ux/inKxAEf0Rj5Xdm3DzUiuPMw7sstGyLPhOJYOHlINsTqTI KkvR4cYWIViNnlrThlRS5j1HVknLqB54kUrF/R1s/+KQsxXMVIw3DUqozb40PJFo++z4 2rbGXHwOsw0sh/9u0rCbsrn/QSdfxzCoUadiMrgendihMzBj3XSHsjVpBXqMMTOX8ACe GWkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:references:in-reply-to:date:subject:cc:to:from :arc-authentication-results; bh=tsgWAzD/V/iTM9XVrNLk/H44DkI8oDZBWthlaIbs3ZI=; b=cHieo7GSz9Liw7Mrv9er+ifeHSNR5QO9RiRvu0L5ptlN/vTrXVw8RzbQGsWMlGMpyj 26vBV5b+cYs2TRMePMngEbmCANkwtBRrvRIZ68qrAlKj34p1He0I532tCTlRjX6l598m iyGtMdcpInTzuG115PgsJ7nrDPBHQf46PegHm8KKiZNaiZF2aDxgsQPvySJOgUgFLMmN IVvEtQ6+Vkv8AeiaHDI1kO9SZXN2Lyui/Uv4R3GDtAnpWOyY0U+Mf6v7s6ZxJ10NlSBf NahIDeSxibo4VhPpMCXFhZdIevEGmtBuMVfLUOkxtGce/PXF/z0I2Jx62WtAIb9F5/k0 nvIg== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 148.163.156.1 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com. [148.163.156.1]) by mx.google.com with ESMTPS id l143-v6si786391oig.22.2018.07.26.05.22.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jul 2018 05:22:18 -0700 (PDT) Received-SPF: neutral (google.com: 148.163.156.1 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) client-ip=148.163.156.1; Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.156.1 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6QCJFF0133421 for ; Thu, 26 Jul 2018 08:22:17 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2kfe1k8j8w-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 26 Jul 2018 08:22:17 -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=828 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807260129 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP 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))