Home Home > GIT Browse > openSUSE-42.3
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-07-07 19:14:38 +0200
committerTakashi Iwai <tiwai@suse.de>2018-07-07 19:14:38 +0200
commit52b3fd82cb1b68f669009e567305fb691527df09 (patch)
treecea1edb4b549edf40a54504fd00e511ac89167bf
parentf6ab61340b74939927d9477e0fd5a3624fc77876 (diff)
Fix kABI breakage of iio_buffer in 4.4.139 (stable-4.4.139).
-rw-r--r--include/linux/iio/buffer.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/linux/iio/buffer.h b/include/linux/iio/buffer.h
index 93a774ce4922..466ca500b74c 100644
--- a/include/linux/iio/buffer.h
+++ b/include/linux/iio/buffer.h
@@ -49,8 +49,11 @@ struct iio_buffer_access_funcs {
int (*request_update)(struct iio_buffer *buffer);
int (*set_bytes_per_datum)(struct iio_buffer *buffer, size_t bpd);
+#ifdef __GENKSYMS__
+ int (*set_length)(struct iio_buffer *buffer, int length);
+#else
int (*set_length)(struct iio_buffer *buffer, unsigned int length);
-
+#endif
void (*release)(struct iio_buffer *buffer);
unsigned int modes;
@@ -78,8 +81,13 @@ struct iio_buffer_access_funcs {
* @watermark: [INTERN] number of datums to wait for poll/read.
*/
struct iio_buffer {
+#ifdef __GENKSYMS__
+ int length;
+ int bytes_per_datum;
+#else
unsigned int length;
- size_t bytes_per_datum;
+ unsigned int bytes_per_datum;
+#endif
struct attribute_group *scan_el_attrs;
long *scan_mask;
bool scan_timestamp;