Patch "kselftests: dmabuf-heaps: Fix Makefile's inclusion of the kernel's usr/include dir" has been added to the 5.11-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    kselftests: dmabuf-heaps: Fix Makefile's inclusion of the kernel's usr/include dir

to the 5.11-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     kselftests-dmabuf-heaps-fix-makefile-s-inclusion-of-.patch
and it can be found in the queue-5.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 9f74290295356dc556b6254c0ccc94668699ac10
Author: John Stultz <john.stultz@xxxxxxxxxx>
Date:   Fri Jan 29 03:05:10 2021 +0000

    kselftests: dmabuf-heaps: Fix Makefile's inclusion of the kernel's usr/include dir
    
    [ Upstream commit 64ba3d591c9d2be2a9c09e99b00732afe002ad0d ]
    
    Copied in from somewhere else, the makefile was including
    the kerne's usr/include dir, which caused the asm/ioctl.h file
    to be used.
    
    Unfortunately, that file has different values for _IOC_SIZEBITS
    and _IOC_WRITE than include/uapi/asm-generic/ioctl.h which then
    causes the _IOCW macros to give the wrong ioctl numbers,
    specifically for DMA_BUF_IOCTL_SYNC.
    
    This patch simply removes the extra include from the Makefile
    
    Cc: Shuah Khan <shuah@xxxxxxxxxx>
    Cc: Brian Starkey <brian.starkey@xxxxxxx>
    Cc: Sumit Semwal <sumit.semwal@xxxxxxxxxx>
    Cc: Laura Abbott <labbott@xxxxxxxxxx>
    Cc: Hridya Valsaraju <hridya@xxxxxxxxxx>
    Cc: Suren Baghdasaryan <surenb@xxxxxxxxxx>
    Cc: Sandeep Patil <sspatil@xxxxxxxxxx>
    Cc: Daniel Mentz <danielmentz@xxxxxxxxxx>
    Cc: linux-media@xxxxxxxxxxxxxxx
    Cc: dri-devel@xxxxxxxxxxxxxxxxxxxxx
    Cc: linux-kselftest@xxxxxxxxxxxxxxx
    Fixes: a8779927fd86c ("kselftests: Add dma-heap test")
    Signed-off-by: John Stultz <john.stultz@xxxxxxxxxx>
    Signed-off-by: Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/testing/selftests/dmabuf-heaps/Makefile b/tools/testing/selftests/dmabuf-heaps/Makefile
index 607c2acd20829..604b43ece15f5 100644
--- a/tools/testing/selftests/dmabuf-heaps/Makefile
+++ b/tools/testing/selftests/dmabuf-heaps/Makefile
@@ -1,5 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
-CFLAGS += -static -O3 -Wl,-no-as-needed -Wall -I../../../../usr/include
+CFLAGS += -static -O3 -Wl,-no-as-needed -Wall
 
 TEST_GEN_PROGS = dmabuf-heap
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux