* [next] mm/shmem.c:3993:5: error: conflicting types for 'shmem_unuse'; have 'int(unsigned int, long unsigned int *)'
@ 2022-01-05 14:31 Naresh Kamboju
2022-01-05 17:40 ` Matthew Wilcox
0 siblings, 1 reply; 3+ messages in thread
From: Naresh Kamboju @ 2022-01-05 14:31 UTC (permalink / raw
To: linux-mm, open list, Linux-Next Mailing List
Cc: Hugh Dickins, Andrew Morton, Stephen Rothwell, Christoph Hellwig,
Juergen Gross, Dan Streetman, Geert Uytterhoeven,
Konrad Rzeszutek Wilk, Matthew Wilcox, Seth Jennings, Vitaly Wool,
lkft-triage
[Please ignore this email if it already reported]
A large number of build failures noticed on Linux next for all arch's with
- tinyconfig
- allnoconfig
Build Error:
-------------
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);
| ^~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:289: mm/shmem.o] Error 1
Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
Build link: https://builds.tuxbuild.com/23GvPWRYOYokAPaEnhSYeOKuKCk/
Kconfig: https://builds.tuxbuild.com/23GvPWRYOYokAPaEnhSYeOKuKCk/config
Steps to reproduce:
# To install tuxmake on your system globally:
# sudo pip3 install -U tuxmake
tuxmake --runtime podman --target-arch x86_64 --toolchain gcc-11
--kconfig tinyconfig
--
Linaro LKFT
https://lkft.linaro.org
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [next] mm/shmem.c:3993:5: error: conflicting types for 'shmem_unuse'; have 'int(unsigned int, long unsigned int *)'
2022-01-05 14:31 [next] mm/shmem.c:3993:5: error: conflicting types for 'shmem_unuse'; have 'int(unsigned int, long unsigned int *)' Naresh Kamboju
@ 2022-01-05 17:40 ` Matthew Wilcox
2022-01-06 2:38 ` Randy Dunlap
0 siblings, 1 reply; 3+ messages in thread
From: Matthew Wilcox @ 2022-01-05 17:40 UTC (permalink / raw
To: Naresh Kamboju
Cc: linux-mm, open list, Linux-Next Mailing List, Hugh Dickins,
Andrew Morton, Stephen Rothwell, Christoph Hellwig, Juergen Gross,
Dan Streetman, Geert Uytterhoeven, Konrad Rzeszutek Wilk,
Seth Jennings, Vitaly Wool, lkft-triage
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:
+++ 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;
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [next] mm/shmem.c:3993:5: error: conflicting types for 'shmem_unuse'; have 'int(unsigned int, long unsigned int *)'
2022-01-05 17:40 ` Matthew Wilcox
@ 2022-01-06 2:38 ` Randy Dunlap
0 siblings, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2022-01-06 2:38 UTC (permalink / raw
To: Matthew Wilcox, Naresh Kamboju
Cc: linux-mm, open list, Linux-Next Mailing List, Hugh Dickins,
Andrew Morton, Stephen Rothwell, Christoph Hellwig, Juergen Gross,
Dan Streetman, Geert Uytterhoeven, Konrad Rzeszutek Wilk,
Seth Jennings, Vitaly Wool, lkft-triage
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-01-06 2:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-05 14:31 [next] mm/shmem.c:3993:5: error: conflicting types for 'shmem_unuse'; have 'int(unsigned int, long unsigned int *)' Naresh Kamboju
2022-01-05 17:40 ` Matthew Wilcox
2022-01-06 2:38 ` Randy Dunlap
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.