aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorVlastimil Babka <vbabka@suse.cz>2023-11-13 12:02:02 +0100
committerVlastimil Babka <vbabka@suse.cz>2023-12-06 11:57:21 +0100
commit5a9d31d980cbc9cefcee18e186bd4c5d51f3cba2 (patch)
treecaef0f3aa3511eb98524efc244677ca433bea096 /scripts/gdb/linux/tasks.py
parentb774d3e326d30fc8ef841101c399e44bdac2aa48 (diff)
downloadlinux-5a9d31d980cbc9cefcee18e186bd4c5d51f3cba2.tar.gz
linux-5a9d31d980cbc9cefcee18e186bd4c5d51f3cba2.tar.bz2
linux-5a9d31d980cbc9cefcee18e186bd4c5d51f3cba2.zip
mm/slab: move kmalloc_slab() to mm/slab.h
In preparation for the next patch, move the kmalloc_slab() function to the header, as it will have callers from two files, and make it inline. To avoid unnecessary bloat, remove all size checks/warnings from kmalloc_slab() as they just duplicate those in callers, especially after recent changes to kmalloc_size_roundup(). We just need to adjust handling of zero size in __do_kmalloc_node(). Also we can stop handling NULL result from kmalloc_slab() there as that now cannot happen (unless called too early during boot). The size_index array becomes visible so rename it to a more specific kmalloc_size_index. Reviewed-by: Kees Cook <keescook@chromium.org> Acked-by: David Rientjes <rientjes@google.com> Tested-by: David Rientjes <rientjes@google.com> Reviewed-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> Tested-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions