All of lore.kernel.org
 help / color / mirror / Atom feed
* arm64: pointer_auth.h:40:3: error: implicit declaration of function ‘get_random_bytes’; did you mean ‘get_random_once’?
@ 2020-07-30 10:55 ` Naresh Kamboju
  0 siblings, 0 replies; 20+ messages in thread
From: Naresh Kamboju @ 2020-07-30 10:55 UTC (permalink / raw)
  To: linux-arm-kernel, open list, lkft-triage
  Cc: Catalin Marinas, Will Deacon, Arnd Bergmann, Stephen Rothwell,
	re.emese, Kees Cook, w, Linus Torvalds, Mark Brown, Mark Rutland,
	hsinyi, Theodore Ts'o, richard.henderson

Linus master branch failed to build the arm64 architecture due to
below error and warnings.

kernel config:
https://builds.tuxbuild.com/Dp3s1p4uYnGpImQwCvhzEw/kernel.config

git_repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
target_arch: arm64
toolchain: gcc-9
git_short_log:
83bdc7275e62 (\random32: remove net_rand_state from the latent entropy
gcc plugin\)
git_describe: v5.8-rc7-40-g83bdc7275e62

make -sk KBUILD_BUILD_USER=TuxBuild -C/linux -j16 ARCH=arm64
CROSS_COMPILE=aarch64-linux-gnu- HOSTCC=gcc CC="sccache
aarch64-linux-gnu-gcc" O=build Image
#
In file included from ../arch/arm64/include/asm/smp.h:33,
                 from ../include/linux/smp.h:82,
                 from ../include/linux/percpu.h:7,
                 from ../include/linux/random.h:14,
                 from ../arch/arm64/kernel/pointer_auth.c:5:
../arch/arm64/include/asm/pointer_auth.h: In function ‘ptrauth_keys_init_user’:
../arch/arm64/include/asm/pointer_auth.h:40:3: error: implicit
declaration of function ‘get_random_bytes’; did you mean
‘get_random_once’? [-Werror=implicit-function-declaration]
   40 |   get_random_bytes(&keys->apia, sizeof(keys->apia));
      |   ^~~~~~~~~~~~~~~~
      |   get_random_once
In file included from ../arch/arm64/kernel/pointer_auth.c:5:
../include/linux/random.h: At top level:
../include/linux/random.h:41:13: warning: conflicting types for
‘get_random_bytes’
   41 | extern void get_random_bytes(void *buf, int nbytes);
      |             ^~~~~~~~~~~~~~~~
In file included from ../arch/arm64/include/asm/smp.h:33,
                 from ../include/linux/smp.h:82,
                 from ../include/linux/percpu.h:7,
                 from ../include/linux/random.h:14,
                 from ../arch/arm64/kernel/pointer_auth.c:5:
../arch/arm64/include/asm/pointer_auth.h:40:3: note: previous implicit
declaration of ‘get_random_bytes’ was here
   40 |   get_random_bytes(&keys->apia, sizeof(keys->apia));
      |   ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

build log link,
https://gitlab.com/Linaro/lkft/kernel-runs/-/jobs/662908458

-- 
Linaro LKFT
https://lkft.linaro.org

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2020-07-31  7:54 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-30 10:55 arm64: pointer_auth.h:40:3: error: implicit declaration of function ‘get_random_bytes’; did you mean ‘get_random_once’? Naresh Kamboju
2020-07-30 10:55 ` Naresh Kamboju
2020-07-30 11:15 ` Stephen Rothwell
2020-07-30 11:15   ` Stephen Rothwell
2020-07-30 18:46   ` Grygorii Strashko
2020-07-30 18:46     ` Grygorii Strashko
2020-07-30 18:56     ` Linus Torvalds
2020-07-30 19:04       ` Grygorii Strashko
2020-07-30 19:04         ` Grygorii Strashko
2020-07-30 19:40         ` Linus Torvalds
2020-07-30 19:43           ` Grygorii Strashko
2020-07-30 19:43             ` Grygorii Strashko
2020-07-31  2:16           ` arm64: pointer_auth.h:40:3: error: implicit declaration of function 'get_random_bytes'; did you mean 'get_random_once'? Willy Tarreau
2020-07-31  2:16             ` Willy Tarreau
2020-07-31  5:25             ` Linus Torvalds
2020-07-31  5:25               ` Linus Torvalds
2020-07-31  5:46               ` Willy Tarreau
2020-07-31  5:46                 ` Willy Tarreau
2020-07-31  7:52               ` Will Deacon
2020-07-31  7:52                 ` Will Deacon

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.