Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp237676pxb; Thu, 2 Sep 2021 03:05:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZF1dM+0zvPutyVb/JI0EiHzFPGUB9YZaZ6tS5S7v+FMPHX02CkjCfYcJedeVXk7kWc3MF X-Received: by 2002:a92:6e05:: with SMTP id j5mr1719276ilc.252.1630577155208; Thu, 02 Sep 2021 03:05:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630577155; cv=none; d=google.com; s=arc-20160816; b=fGq7u2YjyftTI6Zq9sVl+f0bpma9d5zaTPeD68vM+HjIWXCRCIrdtFhdCEjWI24lkP 9PUD7mX05neHPmLHWBTbQXddojbMXkyq6z1/qJ1QfZKxqmCOyRshGOEtcuDxbYzDF57M FxF1qIHUufIygilKuc41G1Q7y5yvFeyvi2lgT5BhgXgCAtc2TlNLG2FgBB/01sPte84+ HYlETWCH7BUAX9aAOPwv6VC/eAFD60/6U/pKBEKw50qWRs75MBWvlP35EWD55bX5jMyn onWUnSWVhcpHoLoiPTh9vZcio9cvoyMoHhaxxupmIt+ZR4NhKSZBDajapyKIJoWO7zuR XvqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=whvSApuSxAx1wg+gXkEl98YU2zUyl7UBeKkICZM49YA=; b=fdgXLP3+v+wCwaV7vPexz+rgyOPd3SwyyoCBR1plQE5l9R6eM3rAdfOXrCBT0+DWR1 SNcFgcOiMCFgrq7yRAUwm+wt38NyaM5WJjNQyZTFkkxHrPwFgFbfzJ/BYBdEfow6mco0 bv7YzUNqJ+GB8CJt9HVfmHbLtEx7rVC3tnbUCLy1f6cIbprdEaiJVO8NYLTfmOyu1fus vJJmvV/DqDNRK+5EYXe/Iw/wyXeTkf3GCDboQNitDqLb9rId2lCc/jp4XAcvLq9Q0YBG 3qbw4fOdhvXlIjP1kHGprD0EiGM3Bs39XpA8U3P2SKK54BHuYl0zEXvZm5WDA6gjDHVm AyRw== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d24si1233884jaa.121.2021.09.02.03.05.43; Thu, 02 Sep 2021 03:05:55 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343577AbhIBJsb (ORCPT + 99 others); Thu, 2 Sep 2021 05:48:31 -0400 Received: from mga02.intel.com ([134.134.136.20]:27018 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241297AbhIBJsb (ORCPT ); Thu, 2 Sep 2021 05:48:31 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10094"; a="206273283" X-IronPort-AV: E=Sophos;i="5.84,371,1620716400"; d="scan'208";a="206273283" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2021 02:47:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,371,1620716400"; d="scan'208";a="532969607" Received: from pl-dbox.sh.intel.com (HELO pl-dbox) ([10.239.159.39]) by FMSMGA003.fm.intel.com with ESMTP; 02 Sep 2021 02:47:30 -0700 Date: Thu, 2 Sep 2021 17:39:18 +0800 From: Philip Li To: Li Zhijian Cc: bamv2005@gmail.com, shuah@kernel.org, linux-gpio@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, kernel test robot Subject: Re: [PATCH] selftests/gpio: Fix gpio compiling error Message-ID: <20210902093918.GA411030@pl-dbox> References: <20210902084635.103622-1-lizhijian@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210902084635.103622-1-lizhijian@cn.fujitsu.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org applied On Thu, Sep 02, 2021 at 04:46:35PM +0800, Li Zhijian wrote: > [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 > > >