Kernel 3.18.55 compilation fails (missing function declaration)

From: Emmanuel Florac
Date: Fri Jun 02 2017 - 09:36:53 EST


Hi, kernel 3.18.55 compilation fails with this error:

kernel/fork.c: In function âdup_task_structâ:
kernel/fork.c:341:2: error: implicit declaration of function
âget_random_longâ [-Werror=implicit-function-declaration]
tsk->stack_canary = get_random_long();

Corrected by adding the declaration to include/linux/random.h line 26 :

unsigned long get_random_long(void);

Sorry, I really can't understand how to generate a patch from a tagged
release, my git-fu is far too low...

--
------------------------------------------------------------------------
Emmanuel Florac | Direction technique
| Intellique
| <eflorac@xxxxxxxxxxxxxx>
| +33 1 78 94 84 02
------------------------------------------------------------------------

Attachment: pgpoSrwBS0YO5.pgp
Description: Signature digitale OpenPGP