diff options
author | Dan Williams <dan.j.williams@intel.com> | 2023-07-20 04:14:13 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2023-10-20 04:11:49 +0300 |
commit | a67d74a4b163878a3c0537033ed1b20db92ebfc5 (patch) | |
tree | 80cbf3bf456662f6d5a82fbeeafb288960c3e344 /tools/memory-model/README | |
parent | 2df2135366833c372f3a14ffcc655f9c5724d972 (diff) | |
download | linux-a67d74a4b163878a3c0537033ed1b20db92ebfc5.tar.xz |
mm/slab: Add __free() support for kvfree
Allow for the declaration of variables that trigger kvfree() when they
go out of scope. The check for NULL and call to kvfree() can be elided
by the compiler in most cases, otherwise without the NULL check an
unnecessary call to kvfree() may be emitted. Peter proposed a comment
for this detail [1].
Link: http://lore.kernel.org/r/20230816103102.GF980931@hirez.programming.kicks-ass.net [1]
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Pankaj Gupta <pankaj.gupta@amd.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Tested-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools/memory-model/README')
0 files changed, 0 insertions, 0 deletions