From mboxrd@z Thu Jan 1 00:00:00 1970 From: Or Gerlitz Subject: Re: [PATCH net-next 2/4] net/mlx5_core: Add pci error handlers to mlx5_core driver Date: Wed, 14 Oct 2015 07:34:30 +0300 Message-ID: <561DDB56.3020908@mellanox.com> References: <201510140139.d9CDDacp%fengguang.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Cc: , Eli Cohen , Amir Vadai To: Majd Dibbiny Return-path: Received: from mail-am1on0074.outbound.protection.outlook.com ([157.56.112.74]:10297 "EHLO emea01-am1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750815AbbJNEfL (ORCPT ); Wed, 14 Oct 2015 00:35:11 -0400 In-Reply-To: <201510140139.d9CDDacp%fengguang.wu@intel.com> Sender: netdev-owner@vger.kernel.org List-ID: On 10/13/2015 8:04 PM, kbuild test robot wrote: > Hi Majd, > > [auto build test WARNING on net-next/master -- if it's inappropriate base, please suggest rules for selecting the more suitable base] > > url: https://github.com/0day-ci/linux/commits/Or-Gerlitz/net-mlx5_core-Fix-internal-error-detection-conditions/20151013-234855 > reproduce: > # apt-get install sparse > make ARCH=x86_64 allmodconfig > make C=1 CF=-D__CHECK_ENDIAN__ > > > sparse warnings: (new ones prefixed by >>) Hi Majd, Please address and push fix to Gerrit, IM me when this is ready. Or. > >>> drivers/net/ethernet/mellanox/mlx5/core/cmd.c:1383:36: sparse: incorrect type in assignment (different base types) > drivers/net/ethernet/mellanox/mlx5/core/cmd.c:1383:36: expected restricted __be32 [usertype] > drivers/net/ethernet/mellanox/mlx5/core/cmd.c:1383:36: got unsigned int [unsigned] [addressable] [usertype] drv_synd > > vim +1383 drivers/net/ethernet/mellanox/mlx5/core/cmd.c > > 1367 } > 1368 > 1369 static int cmd_exec(struct mlx5_core_dev *dev, void *in, int in_size, void *out, > 1370 int out_size, mlx5_cmd_cbk_t callback, void *context) > 1371 { > 1372 struct mlx5_cmd_msg *inb; > 1373 struct mlx5_cmd_msg *outb; > 1374 int pages_queue; > 1375 gfp_t gfp; > 1376 int err; > 1377 u8 status = 0; > 1378 u32 drv_synd; > 1379 > 1380 if (pci_channel_offline(dev->pdev) || > 1381 dev->state == MLX5_DEVICE_STATE_INTERNAL_ERROR) { > 1382 err = mlx5_internal_err_ret_value(dev, opcode_from_in(in), &drv_synd, &status); >> 1383 *get_synd_ptr(out) = drv_synd; > 1384 *get_status_ptr(out) = status; > 1385 return err; > 1386 } > 1387 >