From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f200.google.com (mail-pf0-f200.google.com [209.85.192.200]) by kanga.kvack.org (Postfix) with ESMTP id DD49B6B0022 for ; Wed, 14 Feb 2018 13:26:25 -0500 (EST) Received: by mail-pf0-f200.google.com with SMTP id a6so2057812pff.6 for ; Wed, 14 Feb 2018 10:26:25 -0800 (PST) Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id f12si8309588pgn.455.2018.02.14.10.26.24 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Feb 2018 10:26:24 -0800 (PST) From: Matthew Wilcox Subject: [PATCH 1/2] mm: Add kernel-doc for kvfree Date: Wed, 14 Feb 2018 10:26:17 -0800 Message-Id: <20180214182618.14627-2-willy@infradead.org> In-Reply-To: <20180214182618.14627-1-willy@infradead.org> References: <20180214182618.14627-1-willy@infradead.org> Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: Matthew Wilcox , linux-mm@kvack.org, Kees Cook , linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com From: Matthew Wilcox Signed-off-by: Matthew Wilcox --- mm/util.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mm/util.c b/mm/util.c index c1250501364f..dc4c7b551aaf 100644 --- a/mm/util.c +++ b/mm/util.c @@ -430,6 +430,16 @@ void *kvmalloc_node(size_t size, gfp_t flags, int node) } EXPORT_SYMBOL(kvmalloc_node); +/** + * kvfree() - Free memory. + * @addr: Pointer to allocated memory. + * + * kvfree frees memory allocated by any of vmalloc(), kmalloc() or + * kvmalloc(). It is slightly more efficient to use kfree() or vfree() + * if you are certain that you know which one to use. + * + * Context: Any context except NMI. + */ void kvfree(const void *addr) { if (is_vmalloc_addr(addr)) -- 2.15.1 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org