overflow.h: Add comment documenting __ab_c_size()
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Wed, 10 Apr 2019 20:27:25 +0000 (22:27 +0200)
committerBorislav Petkov <bp@suse.de>
Fri, 12 Apr 2019 11:44:24 +0000 (13:44 +0200)
commite0478542cfd4d993e38d5f92a3f3ecd238805e96
treedc6c1561c32ab07b82b01351f53857b3e32f14de
parent79a3aaa7b82e3106be97842dedfd8429248896e6
overflow.h: Add comment documenting __ab_c_size()

__ab_c_size() is a somewhat opaque name. Document its purpose, and while
at it, rename the parameters to actually match the abc naming.

 [ bp: glued a complete patch from chunks on LKML. ]

Reported-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Kees Cook <keescook@chromium.org>
Cc: Matthew Wilcox <willy@infradead.org>
Link: https://lkml.kernel.org/r/20190405045711.30339-1-bp@alien8.de
include/linux/overflow.h