diff options
author | 2020-12-11 17:48:50 +0000 | |
---|---|---|
committer | 2020-12-11 17:48:50 +0000 | |
commit | 58f7553fa424fd0fd74e8b796d50c66014cebebe (patch) | |
tree | 8aecb1d047b1df2abbfa1ef323d2a724a6a61c77 /mm/util.c | |
parent | Merge remote-tracking branch 'spi/for-5.9' into spi-linus (diff) | |
parent | spi: Limit the spi device max speed to controller's max speed (diff) | |
download | wireguard-linux-58f7553fa424fd0fd74e8b796d50c66014cebebe.tar.xz wireguard-linux-58f7553fa424fd0fd74e8b796d50c66014cebebe.zip |
Merge remote-tracking branch 'spi/for-5.10' into spi-linus
Diffstat (limited to 'mm/util.c')
-rw-r--r-- | mm/util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/util.c b/mm/util.c index 5ef378a2a038..4ddb6e186dd5 100644 --- a/mm/util.c +++ b/mm/util.c @@ -69,7 +69,8 @@ EXPORT_SYMBOL(kstrdup); * @s: the string to duplicate * @gfp: the GFP mask used in the kmalloc() call when allocating memory * - * Note: Strings allocated by kstrdup_const should be freed by kfree_const. + * Note: Strings allocated by kstrdup_const should be freed by kfree_const and + * must not be passed to krealloc(). * * Return: source string if it is in .rodata section otherwise * fallback to kstrdup. @@ -957,7 +958,7 @@ out: return res; } -int memcmp_pages(struct page *page1, struct page *page2) +int __weak memcmp_pages(struct page *page1, struct page *page2) { char *addr1, *addr2; int ret; |