ocf-linux: tweak kernel patch for newer kernels
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Tue, 27 Nov 2012 09:23:08 +0000 (09:23 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 28 Nov 2012 01:05:02 +0000 (17:05 -0800)
commit670d60dc919fe6d99224ad1056c426812b38d108
tree35fa1701de903c0221c1cffdc42ba5f42445058c
parent3bdbe9abb90de0262832d5d545f239fa41fb0e91
ocf-linux: tweak kernel patch for newer kernels

Newer kernels had a slight change in the random number API so the OCF
patchset requires a slight tweak to build and run properly.

Affected kernels are, per series:
>=3.0.41, >=3.2.29, >=3.4.9, >=3.5.2 and any newer version.

The fix is applied by detecting the API change rather than guessing the
kernel version.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
linux/linux-ext-ocf-linux.mk