[v4.9] Fixes to linux-4.9.y stable tree swab.h and random initialization

From: Hans-Christian Noren Egtvedt
Date: Sun Jul 31 2022 - 14:28:27 EST


I discovered one regression when I merged 4.9.320 for one of our
platforms, the include of swab.h from user space (libudev) triggered the
error described in https://lkml.org/lkml/2020/2/12/93

Cherry picking that commit solved the problem as expected.
[v4.9 PATCH 1/6] include/uapi/linux/swab.h: fix userspace breakage,

Then the next part of this series:
[v4.9 PATCH 2/6] init/main: Fix double "the" in comment
[v4.9 PATCH 3/6] init/main: properly align the multi-line comment
[v4.9 PATCH 4/6] init: move stack canary initialization after
[v4.9 PATCH 5/6] init/main.c: extract early boot entropy from the
[v4.9 PATCH 6/6] random: move rand_initialize() earlier

Is to get the code flow similar in linux-4.9.y compared to HEAD
implementation. I suspect there is a not completely ok merge conflict
that was resolved during backport to linux-4.9.y branch with regards to
the 'random: move rand_initialize() earlier' commit.

Now the code flow is in the same order as latest HEAD.

--
Best regards, Hans-Christian Noren Egtvedt.