Skip to content

compat: fix compilation for 3.10-rc1 and older

Jonas Gorski backports 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2compat: add missing include in #else for compat-3.10.hinclude/linux/compat-3.10.h+2 -00 replies
2/2compat: handle renaming of random32() to prandom_u32()include/linux/compat-3.10.h+14 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] compat: fix compilation for 3.10-rc1 and older

These two patches fix two issues that I encountered/found while compiling (a slightly older) compat-drivers against 3.10-rc1:

a) compat-3.10.h was missing an include in the #else branch, causing build failure.

b) random32() was renamed to prandom_u32(), so older kernels were missing an appropriate alias.

Jonas Gorski (2):
compat: add missing include in #else for compat-3.10.h
compat: handle renaming of random32() to prandom_u32()

 include/linux/compat-3.10.h |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)
Signature · 1 line
1.7.10.4