]> git.openfabrics.org - ~aditr/compat.git/commitdiff
compat-3.11.h: Mask sg_copy_buffer as it defined in RHEL7.4
authorVladimir Sokolovsky <vlad@mellanox.com>
Mon, 4 Dec 2017 15:46:33 +0000 (17:46 +0200)
committerVladimir Sokolovsky <vlad@mellanox.com>
Mon, 4 Dec 2017 15:46:33 +0000 (17:46 +0200)
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
compat/compat-3.11.c

index f74a0f0173e13d2c463379f31bc00adaccaccc32..4cbfc897cdedfeef8676697cc95e4ada0a1cf193 100644 (file)
@@ -313,6 +313,7 @@ void sg_miter_stop(struct sg_mapping_iter *miter)
  * Returns the number of copied bytes.
  *
  **/
+#define sg_copy_buffer LINUX_BACKPORT(sg_copy_buffer)
 static size_t sg_copy_buffer(struct scatterlist *sgl, unsigned int nents,
                             void *buf, size_t buflen, off_t skip,
                             bool to_buffer)