Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp188196pxb; Thu, 2 Sep 2021 01:43:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9aRkdPdfl3KT5jfwF4Dt7FpCUYpVSbQzLq6MB8sN6NLZdoG3xls/JOZQ8zNGIrInbEugo X-Received: by 2002:a02:c6b3:: with SMTP id o19mr1895562jan.5.1630572222509; Thu, 02 Sep 2021 01:43:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630572222; cv=none; d=google.com; s=arc-20160816; b=tie4hB3Ndt+m6D7ibPDlrVpCDjCoYO5axy3RttxeJqua3ps3+9kvPybBT0bai0B46S eA8IVSnppvOVT+oOMdusooc3/u2o571rBf6sWqq0kvOfESiAv0xK9K8DdMuQS+BtSzLa aEwqX+rBRc6PrzIKtkMtwrvfUKJ4Un8s5TRLvH60gVgqgf6hcMB7X2yfOo6aLG1dWC5f CH3Dzb/hKl0aSXXunl1sPyOpmOw9IxVP2RP6FpymioOiSO2mAlw/3Skrj8AcXxKXb0ly Q4fZ4snykma2365r+L/vurMjIuUR2l0EVYzJY3OFZjMdDUlwuUS3AmfmGIk3xxWm9v5C UAFA== 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:ironport-hdrordr; bh=IJqE6C8yUu3Lra34/B2GhiphuupduBEBhNbyo6Q2Nik=; b=vX5VHfZFglOPuG9NdMR8AYeyCJ68u6M5YvAzT3iFvNT5i4jXPaZDZtKO6kSSSs3Xhc n28rFtEUDz0VYXhbP5+glvySvuo/nZh5xTBwD04Rex3OFvW90cyKxCVnREzffW5+BaN2 Lr5ZSjys+WmPoUEs0Niyh6xltGhXfjCGQJb4i5GPEvvJbPMeiBtMxbGat90uSCLFnAU8 8nKkDyrmQsmYjLcAFPWFmw25Mx7t1B40reiRsGwpiSBlwByWgPVZQLkjUd2k9QxGZzsF 8wp8jcCreXKQImn7qwJedjAVfHlAbwaNbfMIdeIkuCxgJS7j7EkmJ6V98WtAibdMEKc3 OBLw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=fujitsu.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a4si1272357ilt.54.2021.09.02.01.43.29; Thu, 02 Sep 2021 01:43:42 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=fujitsu.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243979AbhIBImq (ORCPT + 99 others); Thu, 2 Sep 2021 04:42:46 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:35308 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233362AbhIBImq (ORCPT ); Thu, 2 Sep 2021 04:42:46 -0400 IronPort-HdrOrdr: =?us-ascii?q?A9a23=3Avw/ria3LZLj8maIxy2eP8gqjBIAkLtp133Aq?= =?us-ascii?q?2lEZdPUMSL38qyiv9M516faGskd0ZJhAo6H5BEDuewK+yXcY2+Qs1NSZLXLbUQ?= =?us-ascii?q?mTXeNfBOLZqlWKcREWndQy6U4USchD4arLbGSS4/yX3ODyKadG/DDOytHPuQ7x?= =?us-ascii?q?9QYVcT1X?= X-IronPort-AV: E=Sophos;i="5.84,371,1620662400"; d="scan'208";a="113896117" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 02 Sep 2021 16:41:46 +0800 Received: from G08CNEXMBPEKD04.g08.fujitsu.local (unknown [10.167.33.201]) by cn.fujitsu.com (Postfix) with ESMTP id 8B52F4D0D9DC; Thu, 2 Sep 2021 16:41:45 +0800 (CST) Received: from G08CNEXCHPEKD09.g08.fujitsu.local (10.167.33.85) by G08CNEXMBPEKD04.g08.fujitsu.local (10.167.33.201) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Thu, 2 Sep 2021 16:41:40 +0800 Received: from localhost.localdomain (10.167.225.141) by G08CNEXCHPEKD09.g08.fujitsu.local (10.167.33.209) with Microsoft SMTP Server id 15.0.1497.23 via Frontend Transport; Thu, 2 Sep 2021 16:41:39 +0800 From: Li Zhijian To: , , , CC: , Li Zhijian , Philip Li , kernel test robot Subject: [PATCH] selftests/gpio: Fix gpio compiling error Date: Thu, 2 Sep 2021 16:46:35 +0800 Message-ID: <20210902084635.103622-1-lizhijian@cn.fujitsu.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-yoursite-MailScanner-ID: 8B52F4D0D9DC.AECA9 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: lizhijian@fujitsu.com X-Spam-Status: No Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [root@iaas-rpma gpio]# make gcc gpio-mockup-cdev.c -o /home/lizhijian/linux/tools/testing/selftests/gpio/gpio-mockup-cdev gpio-mockup-cdev.c: In function ‘request_line_v2’: gpio-mockup-cdev.c:24:30: error: storage size of ‘req’ isn’t known 24 | struct gpio_v2_line_request req; | ^~~ gpio-mockup-cdev.c:32:14: error: ‘GPIO_V2_LINE_FLAG_OUTPUT’ undeclared (first use in this function); did you mean ‘GPIOLINE_FLAG_IS_OUT’? 32 | if (flags & GPIO_V2_LINE_FLAG_OUTPUT) { | ^~~~~~~~~~~~~~~~~~~~~~~~ Search headers from linux tree like others, such as sched CC: Philip Li Reported-by: kernel test robot Signed-off-by: Li Zhijian --- tools/testing/selftests/gpio/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/gpio/Makefile b/tools/testing/selftests/gpio/Makefile index 39f2bbe8dd3d..42ea7d2aa844 100644 --- a/tools/testing/selftests/gpio/Makefile +++ b/tools/testing/selftests/gpio/Makefile @@ -3,5 +3,6 @@ TEST_PROGS := gpio-mockup.sh TEST_FILES := gpio-mockup-sysfs.sh TEST_GEN_PROGS_EXTENDED := gpio-mockup-cdev +CFLAGS += -I../../../../usr/include include ../lib.mk -- 2.31.1