diff options
author | Dan Williams <[email protected]> | 2023-07-19 18:14:13 -0700 |
---|---|---|
committer | Dan Williams <[email protected]> | 2023-10-19 18:11:49 -0700 |
commit | a67d74a4b163878a3c0537033ed1b20db92ebfc5 (patch) | |
tree | 80cbf3bf456662f6d5a82fbeeafb288960c3e344 /drivers/fpga/altera-fpga2sdram.c | |
parent | 2df2135366833c372f3a14ffcc655f9c5724d972 (diff) |
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/[email protected] [1]
Cc: Andrew Morton <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Acked-by: Pankaj Gupta <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Reviewed-by: Kuppuswamy Sathyanarayanan <[email protected]>
Tested-by: Kuppuswamy Sathyanarayanan <[email protected]>
Reviewed-by: Tom Lendacky <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'drivers/fpga/altera-fpga2sdram.c')
0 files changed, 0 insertions, 0 deletions