lkml.org 
[lkml]   [2022]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [next] mm/shmem.c:3993:5: error: conflicting types for 'shmem_unuse'; have 'int(unsigned int, long unsigned int *)'
From


On 1/5/22 09:40, Matthew Wilcox wrote:
> On Wed, Jan 05, 2022 at 08:01:19PM +0530, Naresh Kamboju wrote:
>> mm/shmem.c:3993:5: error: conflicting types for 'shmem_unuse'; have
>> 'int(unsigned int, long unsigned int *)'
>> 3993 | int shmem_unuse(unsigned int type, unsigned long *fs_pages_to_unuse)
>> | ^~~~~~~~~~~
>> In file included from include/linux/khugepaged.h:6,
>> from mm/shmem.c:37:
>> include/linux/shmem_fs.h:86:5: note: previous declaration of
>> 'shmem_unuse' with type 'int(unsigned int)'
>> 86 | int shmem_unuse(unsigned int type);
>> | ^~~~~~~~~~~
>
> This is "mm: simplify try_to_unuse" in akpm's tree.
>
> It needs a fix that looks something like this:

Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested

thanks.

>
> +++ b/mm/shmem.c
> @@ -3990,7 +3990,7 @@ int __init shmem_init(void)
> return 0;
> }
>
> -int shmem_unuse(unsigned int type, unsigned long *fs_pages_to_unuse)
> +int shmem_unuse(unsigned int type)
> {
> return 0;
> }
>

--
~Randy

\
 
 \ /
  Last update: 2022-01-06 03:39    [W:0.051 / U:0.824 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site