Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp227405pxb; Thu, 2 Sep 2021 02:50:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8GT5AHXvhxuOzoa0dT6FyrNplQC4ZYV9GBOiEkSqZqCinY8FgLfPdlQ1f3SBowJIK+bzs X-Received: by 2002:a02:bb14:: with SMTP id y20mr2096071jan.130.1630576212354; Thu, 02 Sep 2021 02:50:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630576212; cv=none; d=google.com; s=arc-20160816; b=GjYx9DzwdG8+BeYRij/4N+0OLCxId9I4xqnTQYoaBJb/EABxIl/YEEg5zp7afuRcsU H2WwB3D/VopTQHtzM1qrRJoYOrx0qkQ4qM+VUzaMHrsacjegOu25lBv/mXoKyVtEHd2h TEjoUIrc4plXgmwIEqrB1QOP/hNazdsLmGWSm2GosN1naFqn/Vx0ZYUoUoR0D95akQe4 ZQWP4Kg7E6hb25N0eWj+Ui05WcHhB1P/IFIgAFNaIU5e8uKO0jl55o7YRFlRHi/pxu/G 1OkqGApMfh1Y2lTj+eYNLqiSw3eyZRpgN8v/aGQzg3P48/U6mAtzRZaKlpMUENH31dJW 3DJA== 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=KzWhJDO+pzlBEoOsPLuYw0F+0t4H/LXDk43A7ywEJjQ=; b=RkbTosvW7yqUjbIh2zcbEeRbn4cHHwxMJAP9F1RQod1sIC04djvl1DxRVuiAspvQ1C XeGTk1NGBXbYDnZgwZMYXsd7QYl3ilCkKul/B6B/znAGG3TxyAcPgc7+jfIVTcj/lsoW m0YPiRN3ZonzxnOjwlQP9Aj/t9AhvYWaqcAqVEtRZgI/+8f9eIayyphVdZLD8NUIlH2Z dyZtCrMxxc3Lb9s/RRkPbNBatHpcaw0+WuvtyuvHITraaFZ3LudWUW380OL5mSPcS0LQ YOT6KAV743B7pNT/502LXXah9oTYN4AIOy6BCW87GX/RfgVr8IowOrA8cDZE+VXKyrxK CYoA== 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 m62si1016279ioa.15.2021.09.02.02.49.58; Thu, 02 Sep 2021 02:50:12 -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 S1343735AbhIBJtU (ORCPT + 99 others); Thu, 2 Sep 2021 05:49:20 -0400 Received: from mga17.intel.com ([192.55.52.151]:20905 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343716AbhIBJtT (ORCPT ); Thu, 2 Sep 2021 05:49:19 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10094"; a="199282799" X-IronPort-AV: E=Sophos;i="5.84,371,1620716400"; d="scan'208";a="199282799" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2021 02:48:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,371,1620716400"; d="scan'208";a="467317751" Received: from pl-dbox.sh.intel.com (HELO pl-dbox) ([10.239.159.39]) by orsmga007.jf.intel.com with ESMTP; 02 Sep 2021 02:48:18 -0700 Date: Thu, 2 Sep 2021 17:40:06 +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: <20210902094006.GA411314@pl-dbox> References: <20210902084635.103622-1-lizhijian@cn.fujitsu.com> <20210902093918.GA411030@pl-dbox> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210902093918.GA411030@pl-dbox> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 02, 2021 at 05:39:18PM +0800, Philip Li wrote: > applied sorry, reply the wrong mail, kindly ignore > 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 > > > > > >