* Linux-next: Build failed
@ 2018-12-04 12:26 Naresh Kamboju
2018-12-04 12:52 ` Will Deacon
0 siblings, 1 reply; 3+ messages in thread
From: Naresh Kamboju @ 2018-12-04 12:26 UTC (permalink / raw)
To: Arnd Bergmann, linux-arm-kernel
Cc: Peter Zijlstra, Will Deacon, Mark Rutland, open list
FYI,
The Linux -next build failed due to below warnings/errors.
include/asm-generic/bitops/atomic.h: In function 'set_bit':
include/asm-generic/bitops/atomic.h:17:2: error: implicit declaration
of function 'atomic_long_or'; did you mean '__atomic_load_n'?
[-Werror=implicit-function-declaration]
atomic_long_or(BIT_MASK(nr), (atomic_long_t *)p);
^~~~~~~~~~~~~~
__atomic_load_n
include/asm-generic/bitops/atomic.h: In function 'clear_bit':
include/asm-generic/bitops/atomic.h:23:2: error: implicit declaration
of function 'atomic_long_andnot'; did you mean
'__atomic_test_and_set'? [-Werror=implicit-function-declaration]
atomic_long_andnot(BIT_MASK(nr), (atomic_long_t *)p);
^~~~~~~~~~~~~~~~~~
__atomic_test_and_set
include/asm-generic/bitops/atomic.h: In function 'change_bit':
include/asm-generic/bitops/atomic.h:29:2: error: implicit declaration
of function 'atomic_long_xor'; did you mean '__atomic_load_n'?
[-Werror=implicit-function-declaration]
atomic_long_xor(BIT_MASK(nr), (atomic_long_t *)p);
^~~~~~~~~~~~~~~
__atomic_load_n
include/asm-generic/bitops/atomic.h: In function 'test_and_set_bit':
include/asm-generic/bitops/atomic.h:41:8: error: implicit declaration
of function 'atomic_long_fetch_or'; did you mean
'__atomic_and_fetch_1'? [-Werror=implicit-function-declaration]
old = atomic_long_fetch_or(mask, (atomic_long_t *)p);
^~~~~~~~~~~~~~~~~~~~
__atomic_and_fetch_1
include/asm-generic/bitops/atomic.h: In function 'test_and_clear_bit':
include/asm-generic/bitops/atomic.h:54:8: error: implicit declaration
of function 'atomic_long_fetch_andnot'; did you mean
'arch_atomic64_fetch_andnot'? [-Werror=implicit-function-declaration]
old = atomic_long_fetch_andnot(mask, (atomic_long_t *)p);
^~~~~~~~~~~~~~~~~~~~~~~~
arch_atomic64_fetch_andnot
include/asm-generic/bitops/atomic.h: In function 'test_and_change_bit':
include/asm-generic/bitops/atomic.h:64:8: error: implicit declaration
of function 'atomic_long_fetch_xor'; did you mean
'__atomic_fetch_xor'? [-Werror=implicit-function-declaration]
old = atomic_long_fetch_xor(mask, (atomic_long_t *)p);
^~~~~~~~~~~~~~~~~~~~~
__atomic_fetch_xor
cc1: some warnings being treated as errors
full log details,
https://ci.linaro.org/job/openembedded-lkft-linux-next/DISTRO=rpb,MACHINE=juno,label=docker-stretch-amd64/407/consoleText
Best regards
Naresh Kamboju
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Linux-next: Build failed
2018-12-04 12:26 Linux-next: Build failed Naresh Kamboju
@ 2018-12-04 12:52 ` Will Deacon
2018-12-04 14:46 ` Naresh Kamboju
0 siblings, 1 reply; 3+ messages in thread
From: Will Deacon @ 2018-12-04 12:52 UTC (permalink / raw)
To: Naresh Kamboju
Cc: Arnd Bergmann, linux-arm-kernel, Peter Zijlstra, Mark Rutland, open list
Hi Naresh,
On Tue, Dec 04, 2018 at 05:56:09PM +0530, Naresh Kamboju wrote:
> FYI,
>
> The Linux -next build failed due to below warnings/errors.
>
> include/asm-generic/bitops/atomic.h: In function 'set_bit':
> include/asm-generic/bitops/atomic.h:17:2: error: implicit declaration
> of function 'atomic_long_or'; did you mean '__atomic_load_n'?
> [-Werror=implicit-function-declaration]
> atomic_long_or(BIT_MASK(nr), (atomic_long_t *)p);
> ^~~~~~~~~~~~~~
> __atomic_load_n
Ha, I like that the compiler is trying to get us to use its __atomic
builtins here :)
Anyway, you're seeing this because of this previous error in Mark's script:
.../scripts/atomic/atomic-tbl.sh: line 183: fold: command not found
even though fold is part of coreutils :/
Do you have grep? Maybe the diff below helps.
Will
--->8
diff --git a/scripts/atomic/atomic-tbl.sh b/scripts/atomic/atomic-tbl.sh
index 9d6be538a987..81d5c32039dd 100755
--- a/scripts/atomic/atomic-tbl.sh
+++ b/scripts/atomic/atomic-tbl.sh
@@ -180,7 +180,7 @@ gen_proto_variants()
#gen_proto(meta, ...)
gen_proto() {
local meta="$1"; shift
- for m in $(echo "${meta}" | fold -w1); do
+ for m in $(echo "${meta}" | grep -o .); do
gen_proto_variants "${m}" "$@"
done
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: Linux-next: Build failed
2018-12-04 12:52 ` Will Deacon
@ 2018-12-04 14:46 ` Naresh Kamboju
0 siblings, 0 replies; 3+ messages in thread
From: Naresh Kamboju @ 2018-12-04 14:46 UTC (permalink / raw)
To: Will Deacon
Cc: Arnd Bergmann, linux-arm-kernel, Peter Zijlstra, Mark Rutland, open list
Hi Will,
On Tue, 4 Dec 2018 at 18:22, Will Deacon <will.deacon@arm.com> wrote:
>
> Hi Naresh,
>
> On Tue, Dec 04, 2018 at 05:56:09PM +0530, Naresh Kamboju wrote:
> > FYI,
> >
> > The Linux -next build failed due to below warnings/errors.
> >
> > include/asm-generic/bitops/atomic.h: In function 'set_bit':
> > include/asm-generic/bitops/atomic.h:17:2: error: implicit declaration
> > of function 'atomic_long_or'; did you mean '__atomic_load_n'?
> > [-Werror=implicit-function-declaration]
> > atomic_long_or(BIT_MASK(nr), (atomic_long_t *)p);
> > ^~~~~~~~~~~~~~
> > __atomic_load_n
>
> Ha, I like that the compiler is trying to get us to use its __atomic
> builtins here :)
>
> Anyway, you're seeing this because of this previous error in Mark's script:
>
> .../scripts/atomic/atomic-tbl.sh: line 183: fold: command not found
>
> even though fold is part of coreutils :/
>
> Do you have grep? Maybe the diff below helps.
Yes. grep is present.
Thanks for the quick patch.
- Naresh
>
> Will
>
> --->8
>
> diff --git a/scripts/atomic/atomic-tbl.sh b/scripts/atomic/atomic-tbl.sh
> index 9d6be538a987..81d5c32039dd 100755
> --- a/scripts/atomic/atomic-tbl.sh
> +++ b/scripts/atomic/atomic-tbl.sh
> @@ -180,7 +180,7 @@ gen_proto_variants()
> #gen_proto(meta, ...)
> gen_proto() {
> local meta="$1"; shift
> - for m in $(echo "${meta}" | fold -w1); do
> + for m in $(echo "${meta}" | grep -o .); do
> gen_proto_variants "${m}" "$@"
> done
> }
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-12-04 14:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-04 12:26 Linux-next: Build failed Naresh Kamboju
2018-12-04 12:52 ` Will Deacon
2018-12-04 14:46 ` Naresh Kamboju
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).