Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1487498pxb; Thu, 28 Jan 2021 19:07:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJyioZpoVoHX0CoRnxBIweLkjmPdhL/CXwdqZ6EhPNduKjJtZbnV00W79IiDiPnoKRQXZ4HV X-Received: by 2002:a05:6402:1013:: with SMTP id c19mr2936634edu.298.1611889675063; Thu, 28 Jan 2021 19:07:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611889675; cv=none; d=google.com; s=arc-20160816; b=nT84pbGHGBE7dnTtWqXhLwK/tNV9EOvBCt1yff3oOmFp8Q84h3h8v7dsQNf/Y6iabe ud4ta78VOhPbo94KMN5at3q0nQ/SpaS1ye+kI2ho4VYSsd22/VPovROxMzH3NZhplTZ5 fxjK0+ZRxHyL8SeCvbh/rgKT3Ca0o/2bN8IjpSQpCcvdlTrHYWulI8aJfiiyUnTByjj1 9xGaDEljV7Ij95hvQg/MP9PpiXWOTMzoHY9AJRoILQDytPF6NMjzgaCwx4KM973CZCZT 3tFA3+XWRQYeig98/ojNq89kt6qNzVN/lYedirWEpx6q0bjdrim0vVOfSXsFYwZJtlcY lk6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=6FtqZbVLoNhYzW/5zxBFGSTg2OJ2tv0Ub0qNAJ13xHs=; b=qQJyib+4y4GW1dgMT+V5qgb/WUkf1IXqJVIj0ZJAskwjZxE2fRWjDawgWsDUU9AAxN 1/E6JPzfsremo73QjjizJQ3PQ64+YjISBFFsrbZkrAYXnnVKdRCAdRrJKAUghSXlmxDb JienpfG00ebpqwPyv5rWMIScpE6E1G/2hOZMiPTEcM+OPZkByQQVKxGhjblwpaY1Corw EuGCKkaNUJSChss+haFoSsxMqaxImndb03iPskXwPKQkScw+ZjcoCOIciyCv8y/A2fet C7DApXYl5Ff0c/xpbP24s6/bsmQHKAC3poiNeWACwcmFfT7NyT9P0o6rAnvVJmxTfVZJ UrXw== 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 linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si4543018edn.558.2021.01.28.19.07.30; Thu, 28 Jan 2021 19:07:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=j5yLzHZt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231700AbhA2DF7 (ORCPT + 99 others); Thu, 28 Jan 2021 22:05:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231616AbhA2DF6 (ORCPT ); Thu, 28 Jan 2021 22:05:58 -0500 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FC3AC06174A for ; Thu, 28 Jan 2021 19:05:18 -0800 (PST) Received: by mail-pl1-x62d.google.com with SMTP id b17so4481837plz.6 for ; Thu, 28 Jan 2021 19:05:18 -0800 (PST) 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=KjcLQU8CG/q3/KtvIC7yTwqVMPo0dlNgl3AnbQfxlJ/04xz2CO938pumK6pTvM6/6z SKoKIklF5MGJ5MXJgwvuR7uRSbYwaK9Diua6VrTGDFFWTJYtHY9EVmGIGP78pFO4p4Ou G/Kc8w2lKQZBpdQW0Z1OMis/yWkWoXbhX8omdaI+9Z9ePy3urgw3N/A/HRan9m4+fiqg Nmzy+m8zU0Rgt1Dk5IztY0cfE92TscJgCjBuwvVmuyrEpsUZC+cQMe0FCFiI3MCwKyzm ifDCYel6jyet0bcZLdHzNlJWZPeVP9vKFDKNHgjC3oWgNnDnFALFzMx/29L92UkR+aIJ FA9A== X-Gm-Message-State: AOAM5308sryzl5CIr+ynh1jRW/pnffHLb61VfU3cm6MKGDx3yC+OfP76 KJ9NvcfB6QIqj5fdWmE32q/fS61/GICSRA== X-Received: by 2002:a17:90a:d913:: with SMTP id c19mr2416772pjv.19.1611889517371; Thu, 28 Jan 2021 19:05:17 -0800 (PST) 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) 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 -- 2.25.1