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:
.config.gz
Description: application/gzip