From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 87CAEA2EDB for ; Fri, 6 Sep 2019 16:07:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0524B1F407; Fri, 6 Sep 2019 16:07:14 +0200 (CEST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 8E7BE1F3E9 for ; Fri, 6 Sep 2019 16:07:12 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7CDD985A07; Fri, 6 Sep 2019 14:07:11 +0000 (UTC) Received: from dhcp-25.97.bos.redhat.com (unknown [10.18.25.8]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9AE88600C4; Fri, 6 Sep 2019 14:07:01 +0000 (UTC) From: Aaron Conole To: Andrew Rybchenko Cc: "John W. Linville" , Xiaolong Ye , Qi Zhang , Shepard Siegel , Ed Czeck , "John Miller" , Igor Russkikh , Pavel Belous , Allain Legacy , Matt Peters , Ravi Kumar , Rasesh Mody , Shahed Shaikh , Ajit Khaparde , Somnath Kotur , Chas Williams , Rahul Lakkireddy , Hemant Agrawal , Sachin Saxena , Wenzhuo Lu , Marcin Wojtas , Michal Krawczyk , "Guy Tzalik" , Evgeny Schemeilin , Gagandeep Singh , John Daley , "Hyong Youb Kim" , Gaetan Rivet , "Xiao Wang" , Ziyang Xuan , "Xiaoyun Wang" , Guoyang Zhou , Beilei Xing , Jingjing Wu , Qiming Yang , Rosen Xu , Konstantin Ananyev , Ferruh Yigit , Shijith Thotton , Srisivasubramanian Srinivasan , Jakub Grajciar , Matan Azrad , Shahaf Shuler , Yongseok Koh , "Viacheslav Ovsiienko" , Zyta Szpak , "Liron Himi" , Tomasz Duszynski , "Stephen Hemminger" , "K. Y. Srinivasan" , Haiyang Zhang , Rastislav Cernay , Jan Remes , Alejandro Lucero , Tetsuya Mukawa , "Jerin Jacob" , Nithin Dabilpuram , Kiran Kumar K , Bruce Richardson , Jasvinder Singh , Cristian Dumitrescu , Keith Wiles , Maciej Czekaj , Maxime Coquelin , Tiwei Bie , Zhihong Wang , Yong Wang , Thomas Monjalon , , Ivan Ilchenko References: <1566915962-5472-1-git-send-email-arybchenko@solarflare.com> <1567755066-31389-1-git-send-email-arybchenko@solarflare.com> <1567755066-31389-18-git-send-email-arybchenko@solarflare.com> <6772b880-c445-787b-f954-1dbc477281a0@solarflare.com> Date: Fri, 06 Sep 2019 10:07:00 -0400 In-Reply-To: <6772b880-c445-787b-f954-1dbc477281a0@solarflare.com> (Andrew Rybchenko's message of "Fri, 6 Sep 2019 16:33:09 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Fri, 06 Sep 2019 14:07:12 +0000 (UTC) Subject: Re: [dpdk-dev] [PATCH v3 17/54] ethdev: change device info get callback to return int X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Andrew Rybchenko writes: > On 9/6/19 4:29 PM, Aaron Conole wrote: >> Andrew Rybchenko writes: >> >>> From: Ivan Ilchenko >>> >>> Change eth_dev_infos_get_t return value from void to int. >>> Make eth_dev_infos_get_t implementations across all drivers to return >>> negative errno values if case of error conditions. >>> >>> Signed-off-by: Ivan Ilchenko >>> Signed-off-by: Andrew Rybchenko >>> --- >> This patch needs a respin. >> >> ../drivers/net/atlantic/atl_ethdev.c >> ../drivers/net/atlantic/atl_ethdev.c:123:12: error: conflicting type= s for =E2=80=98atl_dev_info_get=E2=80=99 >> static int atl_dev_info_get(struct rte_eth_dev *dev, >> ^ >> ../drivers/net/atlantic/atl_ethdev.c:48:13: note: previous declarati= on of =E2=80=98atl_dev_info_get=E2=80=99 was here >> static void atl_dev_info_get(struct rte_eth_dev *dev, >> >> Looks like the function prototype appears twice in the .c file - I >> suggest removing one of them. > > It is already done: > http://git.dpdk.org/next/dpdk-next-net/commit/?id=3D2c9202612408baf748609= d3ee4e49cc183e0366c Ahh okay. I wonder if it's possible to get this patch on mainline? Strange that it went through -next since it's really a fix.