summaryrefslogtreecommitdiff
path: root/chromium/0001-Fix-kernel-version-condition-for-including-dma-buf.h.patch
blob: 3457700006042efe8753c7740ea571750660d9eb (plain)
    1 From 63901da067e069e298595618e01c4758c7896ff5 Mon Sep 17 00:00:00 2001
    2 From: thomasanderson <thomasanderson@google.com>
    3 Date: Fri, 28 Apr 2017 11:56:12 -0700
    4 Subject: [PATCH] Fix kernel version condition for including dma-buf.h
    5 
    6 Kernel 4.11 merges the commit that added linux/dma-buf.h
    7 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ef96152e6a36e0510387cb174178b7982c1ae879
    8 
    9 This CL increases the required kernel to include this file to 4.11.
   10 
   11 BUG=707604
   12 R=danakj@chromium.org
   13 
   14 Review-Url: https://codereview.chromium.org/2851803002
   15 Cr-Commit-Position: refs/heads/master@{#468078}
   16 ---
   17  ui/gfx/linux/client_native_pixmap_dmabuf.cc | 2 +-
   18  1 file changed, 1 insertion(+), 1 deletion(-)
   19 
   20 diff --git a/ui/gfx/linux/client_native_pixmap_dmabuf.cc b/ui/gfx/linux/client_native_pixmap_dmabuf.cc
   21 index 31ff4f4395b6..4927daf3a61d 100644
   22 --- a/ui/gfx/linux/client_native_pixmap_dmabuf.cc
   23 +++ b/ui/gfx/linux/client_native_pixmap_dmabuf.cc
   24 @@ -19,7 +19,7 @@
   25  #include "base/strings/stringprintf.h"
   26  #include "base/trace_event/trace_event.h"
   27  
   28 -#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)
   29 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
   30  #include <linux/dma-buf.h>
   31  #else
   32  #include <linux/types.h>
   33 -- 
   34 2.13.0

Generated by cgit