summaryrefslogtreecommitdiff
path: root/backport/compat/backport-4.0.c
AgeCommit message (Collapse)Author
2019-01-26backports: Remove get_user_pages() functionsHauke Mehrtens
These functions are not used by any driver any more, remove them. They were introduced for the frame vector code which was used by the media subsystem. They also case some compile problems with kernel 4.4 which get fixed by just removing this code. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2017-09-08backports: add trace_seq_buffer_ptr() where neededJohannes Berg
Some new code needs this, add it. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-06backport: add __print_array()Hauke Mehrtens
This is used in the tracing system and needed by wireless now, it was introduced in commit 6ea22486ba46bc ("tracing: Add array printing helper"). This code is copied from kernel 4.0. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-07-10header: adapt get_user_pages_{locked,unlocked} signatureHauke Mehrtens
The first two parameters of get_user_pages_locked(), __get_user_pages_unlocked() and get_user_pages() were removed in upstream Linux kernel commit cde70140fe "mm/gup: Overload get_user_pages() functions". In addition remove __get_user_pages_unlocked() which is not used by any driver. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2015-08-03backports: add hex_dump_to_buffer() with int return valueHauke Mehrtens
In the kernel hex_dump_to_buffer() got an int return value, returning the amount of bytes written into the buffer. This new return value is needed by seq_hex_dump() which we also backport. This change was done in the following commit in mainline Linux kernel: commit 114fc1afb2de7dec40da137dc2a55cd38fc220f2 Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Date: Thu Feb 12 15:02:29 2015 -0800 hexdump: make it return number of bytes placed in buffer Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2015-06-28backport: add get_user_pages_{locked,unlocked}()Hauke Mehrtens
The get_user_pages_locked() function is needed by the frame vector code which will be added in the next patch. While adding that, this patch also replaces the get_user_pages_unlocked() function with the original version from the next kernel. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>