From patchwork Fri Jan 29 03:05:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 373273 Delivered-To: patches@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp1807922jam; Thu, 28 Jan 2021 19:05:17 -0800 (PST) X-Received: by 2002:a62:8801:0:b029:1b9:c4af:8148 with SMTP id l1-20020a6288010000b02901b9c4af8148mr2415104pfd.18.1611889517769; Thu, 28 Jan 2021 19:05:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611889517; cv=none; d=google.com; s=arc-20160816; b=IIdOYCBkUBkZpT2s5Nse1wrPJyYF5AGKZQVrVnB6NlF4S62B0TwwoA4w6Ix3sOklNw HmzdWN1dTyfrDaObnmxj76fPc31AINRBYMFVZ6mRuD29iyjblkyvKYUE7MP2wY4eX9KY gF5b18gg/2PLqxlb2t5ElHoEpOyZ33BB4RpjnFuDqH/n1uxfuQkA376xnIBjbWHyTcib YVBhqDrUY+fhT1g31nk+QFwMyzSA0od2UnBCn7wRn7WM3/WfUast2oB0ZPGhRYwHLroU 2BtnqVNwv1mzO9H3nrIamfEBACfVYerrEFhu3MR+qrkYng9e0d9GHTct420TCZ7cshJl DaQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=6FtqZbVLoNhYzW/5zxBFGSTg2OJ2tv0Ub0qNAJ13xHs=; b=H5tkVATmIN2HUtgJNQIn9lEvZ9GXH2xTvSERTS1JnTi4Bdj4a/FAku2N5e4m+CKYlF tVaOKRWgS6cC7sF4To4Dl6NluPt8vQKJgnm5le7tv/w/jnGKHU9oahBMN1Pez3nljnbo sAFqxQJZi4zuSg7L6YJbl/x2iiruO7rCUMs+p4FjftmqK7sv20oKqHdUnOPgLaGEnRD3 rqXeTxHclal0cG4OL0upkb1C8DQeBN1yaeym7HFBqoslgFqFbtKMpU6MMp29lprR787v mz+NsYHTcdofJQHFLgX/NZz0fLhtYkf4e6DX4BU2fdShWNrxgI5ENbAYsu1Hoa7UKvi1 ZI0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j5yLzHZt; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id f63sor4268217pjd.3.2021.01.28.19.05.17 for (Google Transport Security); Thu, 28 Jan 2021 19:05:17 -0800 (PST) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j5yLzHZt; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6FtqZbVLoNhYzW/5zxBFGSTg2OJ2tv0Ub0qNAJ13xHs=; b=j5yLzHZt+6y1rTjQAaHsDOTxGgaIO1Q9C9yvGJP/x3SkVLLnhJSUKnESb/H0Z9JJM3 X3o9CasXX6DZTksNat7StXwigWk+Orm9ia/zA32HYjwgB7fSoTv26tV1S3bs6YrGsFEp z4HPk5S+5CgJFgVQdxw+V7SZtaTKny8EBvZ3oJTURUzJ+ccHaYle+g1y092cga4L8huN RJggFGQ7Nhlb7TYWCH0Ubq1AsPnmdAUnLmHsDZinfH7eAFf/GnRcL4Dm4SijBHNx+FHZ Bw43r3f9o5DaCRZX9xsjG0o3Lr7MVysYUjjKamy51VBjfsyrADAgEtsWNzZdhWgazp4N PuAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6FtqZbVLoNhYzW/5zxBFGSTg2OJ2tv0Ub0qNAJ13xHs=; b=Q5iogrpc8/pnhDAFlFFXIKtxOgEvG9GGlf26EPH8g/Cbsy7mbA2Jb5DoaW4XrgrRqH rI0pzbiOqPWsvH99PBE75/COYuxvoVtm61szkXULNGZW4gR11dxUxn6WWOFlofIgMWs5 TM8QGTF1y4uMMEYq8WcnaY8DCFqG+36lqp2M6lbsWE7iCr3M2scCmevWpanMYGgLSw0v 1LjGra/wYmZnO1QJ5B0DrjQK6sBv2VSZSmDG9tOTo5l+akFHsLK8oPIAvh4T9VCs3x6c lCN/95O3kYUUi8wDel6+J/omW+IZDniwanY9a3zPL/DsSzNqxocYGJyP5i1suQE5DACb 4NdA== X-Gm-Message-State: AOAM530weIOzym1Vpoty2SSP5JSfIcxwlocU4HSDJjQ16Mx399KSTL+X 4gPYtXwU5QVraO4dVUFBibeYbGqY X-Google-Smtp-Source: ABdhPJxNcoBMcdOeDQYd3FdgzjZ86Cf272Rz2la9I9NvjeaL4IhlWxZTBvB3/43QEa/+/6QJlLWKNA== X-Received: by 2002:a17:90a:d913:: with SMTP id c19mr2416772pjv.19.1611889517371; Thu, 28 Jan 2021 19:05:17 -0800 (PST) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id y75sm6854496pfg.119.2021.01.28.19.05.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jan 2021 19:05:16 -0800 (PST) From: John Stultz To: lkml Cc: John Stultz , Shuah Khan , Brian Starkey , Sumit Semwal , Laura Abbott , Hridya Valsaraju , Suren Baghdasaryan , Sandeep Patil , Daniel Mentz , linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kselftest@vger.kernel.org Subject: [PATCH 1/5] kselftests: dmabuf-heaps: Fix Makefile's inclusion of the kernel's usr/include dir Date: Fri, 29 Jan 2021 03:05:10 +0000 Message-Id: <20210129030514.1231773-1-john.stultz@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 Cc: Brian Starkey Cc: Sumit Semwal Cc: Laura Abbott Cc: Hridya Valsaraju Cc: Suren Baghdasaryan Cc: Sandeep Patil Cc: Daniel Mentz Cc: linux-media@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: linux-kselftest@vger.kernel.org Fixes: a8779927fd86c ("kselftests: Add dma-heap test") Signed-off-by: John Stultz --- tools/testing/selftests/dmabuf-heaps/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/tools/testing/selftests/dmabuf-heaps/Makefile b/tools/testing/selftests/dmabuf-heaps/Makefile index 607c2acd2082..604b43ece15f 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