]> Git Repo - linux.git/commit - include/linux/skbuff.h
mm: add comments for allocation helpers explaining why they are macros
authorSuren Baghdasaryan <[email protected]>
Wed, 3 Jul 2024 17:42:25 +0000 (10:42 -0700)
committerAndrew Morton <[email protected]>
Fri, 12 Jul 2024 22:52:20 +0000 (15:52 -0700)
commit3b0ba54d5f8ff60553c01d3ec3c607ab7bb3b452
treecf59b04a3a4b987e4305704fc234eb45f47384df
parentcd1e0dac3a3e57d86085eea95ab0cf3172950156
mm: add comments for allocation helpers explaining why they are macros

A number of allocation helper functions were converted into macros to
account them at the call sites.  Add a comment for each converted
allocation helper explaining why it has to be a macro and why we typecast
the return value wherever required.  The patch also moves
acpi_os_acquire_object() closer to other allocation helpers to group them
together under the same comment.  The patch has no functional changes.

Link: https://lkml.kernel.org/r/[email protected]
Fixes: 2c321f3f70bc ("mm: change inlined allocation helpers to account at the call site")
Signed-off-by: Suren Baghdasaryan <[email protected]>
Suggested-by: Andrew Morton <[email protected]>
Cc: Christian König <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Kent Overstreet <[email protected]>
Cc: Thorsten Blum <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
fs/nfs/iostat.h
include/acpi/platform/aclinuxex.h
include/linux/bpf.h
include/linux/dma-fence-chain.h
include/linux/hid_bpf.h
include/linux/jbd2.h
include/linux/skbuff.h
include/linux/skmsg.h
This page took 0.062838 seconds and 4 git commands to generate.