From: kbuild test robot <lkp@intel.com>
Cc: kbuild-all@01.org, netdev@vger.kernel.org, davem@davemloft.net,
linux-rdma@vger.kernel.org, linux-scsi@vger.kernel.org,
Yuval Mintz <Yuval.Mintz@cavium.com>,
Tomer Tayar <Tomer.Tayar@cavium.com>,
Ram Amrani <Ram.Amrani@cavium.com>,
Manish Rangankar <Manish.Rangankar@cavium.com>,
Chad Dupuis <Chad.Dupuis@cavium.com>
Subject: Re: [PATCH net-next] qed*: Utilize Firmware 8.15.3.0
Date: Fri, 10 Mar 2017 16:44:41 +0800 [thread overview]
Message-ID: <201703101657.J0FFVI72%fengguang.wu@intel.com> (raw)
In-Reply-To: <1489091851-1282-1-git-send-email-Yuval.Mintz@cavium.com>
[-- Attachment #1: Type: text/plain, Size: 5270 bytes --]
Hi Yuval,
[auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/Yuval-Mintz/qed-Utilize-Firmware-8-15-3-0/20170310-154337
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 4.9.0
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=xtensa
All warnings (new ones prefixed by >>):
In file included from include/linux/byteorder/big_endian.h:4:0,
from arch/xtensa/include/uapi/asm/byteorder.h:7,
from include/linux/qed/common_hsi.h:36,
from drivers/scsi/qedf/drv_scsi_fw_funcs.h:11,
from drivers/scsi/qedf/drv_fcoe_fw_funcs.h:11,
from drivers/scsi/qedf/drv_fcoe_fw_funcs.c:9:
drivers/scsi/qedf/drv_fcoe_fw_funcs.c: In function 'init_initiator_rw_fcoe_task':
include/uapi/linux/byteorder/big_endian.h:32:26: warning: large integer implicitly truncated to unsigned type [-Woverflow]
#define __cpu_to_le32(x) ((__force __le32)__swab32((x)))
^
include/linux/byteorder/generic.h:87:21: note: in expansion of macro '__cpu_to_le32'
#define cpu_to_le32 __cpu_to_le32
^
>> drivers/scsi/qedf/drv_fcoe_fw_funcs.c:63:31: note: in expansion of macro 'cpu_to_le32'
t_st_ctx->read_write.rx_id = cpu_to_le32(FCOE_RX_ID);
^
drivers/scsi/qedf/drv_fcoe_fw_funcs.c: In function 'init_initiator_midpath_unsolicited_fcoe_task':
include/uapi/linux/byteorder/big_endian.h:32:26: warning: large integer implicitly truncated to unsigned type [-Woverflow]
#define __cpu_to_le32(x) ((__force __le32)__swab32((x)))
^
include/linux/byteorder/generic.h:87:21: note: in expansion of macro '__cpu_to_le32'
#define cpu_to_le32 __cpu_to_le32
^
drivers/scsi/qedf/drv_fcoe_fw_funcs.c:155:31: note: in expansion of macro 'cpu_to_le32'
t_st_ctx->read_write.rx_id = cpu_to_le32(FCOE_RX_ID);
^
vim +/cpu_to_le32 +63 drivers/scsi/qedf/drv_fcoe_fw_funcs.c
3 * Copyright (c) 2016 Cavium Inc.
4 *
5 * This software is available under the terms of the GNU General Public License
6 * (GPL) Version 2, available from the file COPYING in the main directory of
7 * this source tree.
8 */
> 9 #include "drv_fcoe_fw_funcs.h"
10 #include "drv_scsi_fw_funcs.h"
11
12 #define FCOE_RX_ID 0xFFFF
13
14 static inline void init_common_sqe(struct fcoe_task_params *task_params,
15 enum fcoe_sqe_request_type request_type)
16 {
17 memset(task_params->sqe, 0, sizeof(*(task_params->sqe)));
18 SET_FIELD(task_params->sqe->flags, FCOE_WQE_REQ_TYPE,
19 request_type);
20 task_params->sqe->task_id = task_params->itid;
21 }
22
23 int init_initiator_rw_fcoe_task(struct fcoe_task_params *task_params,
24 struct scsi_sgl_task_params *sgl_task_params,
25 struct regpair sense_data_buffer_phys_addr,
26 u32 task_retry_id,
27 u8 fcp_cmd_payload[32])
28 {
29 struct fcoe_task_context *ctx = task_params->context;
30 struct ystorm_fcoe_task_st_ctx *y_st_ctx;
31 struct tstorm_fcoe_task_st_ctx *t_st_ctx;
32 struct ustorm_fcoe_task_ag_ctx *u_ag_ctx;
33 struct mstorm_fcoe_task_st_ctx *m_st_ctx;
34 u32 io_size, val;
35 bool slow_sgl;
36
37 memset(ctx, 0, sizeof(*(ctx)));
38 slow_sgl = scsi_is_slow_sgl(sgl_task_params->num_sges,
39 sgl_task_params->small_mid_sge);
40 io_size = (task_params->task_type == FCOE_TASK_TYPE_WRITE_INITIATOR ?
41 task_params->tx_io_size : task_params->rx_io_size);
42
43 /* Ystorm ctx */
44 y_st_ctx = &ctx->ystorm_st_context;
45 y_st_ctx->data_2_trns_rem = cpu_to_le32(io_size);
46 y_st_ctx->task_rety_identifier = cpu_to_le32(task_retry_id);
47 y_st_ctx->task_type = task_params->task_type;
48 memcpy((void *)&y_st_ctx->tx_info_union.fcp_cmd_payload,
49 fcp_cmd_payload, sizeof(struct fcoe_fcp_cmd_payload));
50
51 /* Tstorm ctx */
52 t_st_ctx = &ctx->tstorm_st_context;
53 t_st_ctx->read_only.dev_type = (task_params->is_tape_device == 1 ?
54 FCOE_TASK_DEV_TYPE_TAPE :
55 FCOE_TASK_DEV_TYPE_DISK);
56 t_st_ctx->read_only.cid = cpu_to_le32(task_params->conn_cid);
57 val = cpu_to_le32(task_params->cq_rss_number);
58 t_st_ctx->read_only.glbl_q_num = val;
59 t_st_ctx->read_only.fcp_cmd_trns_size = cpu_to_le32(io_size);
60 t_st_ctx->read_only.task_type = task_params->task_type;
61 SET_FIELD(t_st_ctx->read_write.flags,
62 FCOE_TSTORM_FCOE_TASK_ST_CTX_READ_WRITE_EXP_FIRST_FRAME, 1);
> 63 t_st_ctx->read_write.rx_id = cpu_to_le32(FCOE_RX_ID);
64
65 /* Ustorm ctx */
66 u_ag_ctx = &ctx->ustorm_ag_context;
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 49105 bytes --]
prev parent reply other threads:[~2017-03-10 8:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-09 20:37 [PATCH net-next] qed*: Utilize Firmware 8.15.3.0 Yuval Mintz
[not found] ` <1489091851-1282-1-git-send-email-Yuval.Mintz-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
2017-03-09 21:45 ` Christoph Hellwig
2017-03-10 5:44 ` Mintz, Yuval
2017-03-10 5:49 ` Mintz, Yuval
2017-03-10 8:44 ` kbuild test robot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201703101657.J0FFVI72%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=Chad.Dupuis@cavium.com \
--cc=Manish.Rangankar@cavium.com \
--cc=Ram.Amrani@cavium.com \
--cc=Tomer.Tayar@cavium.com \
--cc=Yuval.Mintz@cavium.com \
--cc=davem@davemloft.net \
--cc=kbuild-all@01.org \
--cc=linux-rdma@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox