cryptodev: get rid of get_unused_fd() 1228/head
authorDaniel Golle <daniel@makrotopia.org>
Sun, 3 May 2015 13:01:51 +0000 (15:01 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 3 May 2015 13:01:51 +0000 (15:01 +0200)
commit6eb0919b9026d11155ae9ab3ee29448768f56067
tree63c596e9f24484648bc97ae519c07a6bce05f90d
parent142a24a10b1551c5885f66ef7f7ce48a63dfd193
cryptodev: get rid of get_unused_fd()

The get_unused_fd() macro was removed upstream by
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=f938612dd97d481b8b5bf960c992ae577f081c17

Thus replace get_unused_fd() by get_unused_fd_flags(0) which used to
be the definition of the get_unused_fd() macro before it was removed.

This fixes cryptodev compilation on kernel 4.0.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
utils/cryptodev-linux/Makefile
utils/cryptodev-linux/patches/001-no-get-unused-fd.patch [new file with mode: 0644]