* [mkp-scsi:for-next 100/112] drivers/scsi/arm/fas216.c:2056:20: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'struct scsi_cmnd *'
@ 2021-05-29 10:53 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-29 10:53 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 10712 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
head: 46ded13dd3821d96fee65f0cef4bd8f0184607ab
commit: 8f8713fab638d1a1dc5e5525cb307068b26a2c84 [100/112] scsi: fas216: Translate message to host byte status
config: arm-randconfig-r036-20210528 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 6505c630407c5feec818f0bb1c284f9eeebf2071)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/commit/?id=8f8713fab638d1a1dc5e5525cb307068b26a2c84
git remote add mkp-scsi https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git
git fetch --no-tags mkp-scsi for-next
git checkout 8f8713fab638d1a1dc5e5525cb307068b26a2c84
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/scsi/arm/fas216.c:2056:20: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'struct scsi_cmnd *' [-Wint-conversion]
if (get_host_byte(SCpnt->result) != DID_OK)
^~~~~~~~~~~~~
include/scsi/scsi_cmnd.h:333:50: note: passing argument to parameter 'cmd' here
static inline u8 get_host_byte(struct scsi_cmnd *cmd)
^
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
1 warning generated.
/tmp/fas216-6042e7.s: Assembler messages:
/tmp/fas216-6042e7.s:517: Error: selected processor does not support `ldrsb r0,[sp,#17]' in ARM mode
/tmp/fas216-6042e7.s:2055: Error: selected processor does not support `ldrh r1,[r7,#172]' in ARM mode
/tmp/fas216-6042e7.s:2091: Error: selected processor does not support `ldrh r3,[r7,#172]' in ARM mode
/tmp/fas216-6042e7.s:4861: Error: selected processor does not support `ldrh r0,[r7,#172]' in ARM mode
/tmp/fas216-6042e7.s:4895: Error: selected processor does not support `ldrh r1,[r7,#172]' in ARM mode
clang-13: error: assembler command failed with exit code 1 (use -v to see invocation)
--
>> drivers/scsi/arm/fas216.c:2056:20: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'struct scsi_cmnd *' [-Wint-conversion]
if (get_host_byte(SCpnt->result) != DID_OK)
^~~~~~~~~~~~~
include/scsi/scsi_cmnd.h:333:50: note: passing argument to parameter 'cmd' here
static inline u8 get_host_byte(struct scsi_cmnd *cmd)
^
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
'arm7m' is not a recognized processor for this target (ignoring processor)
1 warning generated.
/tmp/fas216-c82b53.s: Assembler messages:
/tmp/fas216-c82b53.s:517: Error: selected processor does not support `ldrsb r0,[sp,#17]' in ARM mode
/tmp/fas216-c82b53.s:2055: Error: selected processor does not support `ldrh r1,[r7,#172]' in ARM mode
/tmp/fas216-c82b53.s:2091: Error: selected processor does not support `ldrh r3,[r7,#172]' in ARM mode
/tmp/fas216-c82b53.s:4861: Error: selected processor does not support `ldrh r0,[r7,#172]' in ARM mode
/tmp/fas216-c82b53.s:4895: Error: selected processor does not support `ldrh r1,[r7,#172]' in ARM mode
clang-13: error: assembler command failed with exit code 1 (use -v to see invocation)
vim +2056 drivers/scsi/arm/fas216.c
2031
2032 /**
2033 * fas216_std_done - finish processing of standard command
2034 * @info: interface that completed
2035 * @SCpnt: command that completed
2036 * @result: driver byte of result
2037 *
2038 * Finish processing of standard command
2039 */
2040 static void
2041 fas216_std_done(FAS216_Info *info, struct scsi_cmnd *SCpnt, unsigned int result)
2042 {
2043 info->stats.fins += 1;
2044
2045 set_host_byte(SCpnt, result);
2046 if (result == DID_OK)
2047 scsi_msg_to_host_byte(SCpnt, info->scsi.SCp.Message);
2048 set_status_byte(SCpnt, info->scsi.SCp.Status);
2049
2050 fas216_log_command(info, LOG_CONNECT, SCpnt,
2051 "command complete, result=0x%08x", SCpnt->result);
2052
2053 /*
2054 * If the driver detected an error, we're all done.
2055 */
> 2056 if (get_host_byte(SCpnt->result) != DID_OK)
2057 goto done;
2058
2059 /*
2060 * If the command returned CHECK_CONDITION or COMMAND_TERMINATED
2061 * status, request the sense information.
2062 */
2063 if (status_byte(SCpnt->result) == CHECK_CONDITION ||
2064 status_byte(SCpnt->result) == COMMAND_TERMINATED)
2065 goto request_sense;
2066
2067 /*
2068 * If the command did not complete with GOOD status,
2069 * we are all done here.
2070 */
2071 if (status_byte(SCpnt->result) != GOOD)
2072 goto done;
2073
2074 /*
2075 * We have successfully completed a command. Make sure that
2076 * we do not have any buffers left to transfer. The world
2077 * is not perfect, and we seem to occasionally hit this.
2078 * It can be indicative of a buggy driver, target or the upper
2079 * levels of the SCSI code.
2080 */
2081 if (info->scsi.SCp.ptr) {
2082 switch (SCpnt->cmnd[0]) {
2083 case INQUIRY:
2084 case START_STOP:
2085 case MODE_SENSE:
2086 break;
2087
2088 default:
2089 scmd_printk(KERN_ERR, SCpnt,
2090 "incomplete data transfer detected: res=%08X ptr=%p len=%X\n",
2091 SCpnt->result, info->scsi.SCp.ptr,
2092 info->scsi.SCp.this_residual);
2093 scsi_print_command(SCpnt);
2094 set_host_byte(SCpnt, DID_ERROR);
2095 goto request_sense;
2096 }
2097 }
2098
2099 done:
2100 if (SCpnt->scsi_done) {
2101 SCpnt->scsi_done(SCpnt);
2102 return;
2103 }
2104
2105 panic("scsi%d.H: null scsi_done function in fas216_done",
2106 info->host->host_no);
2107
2108
2109 request_sense:
2110 if (SCpnt->cmnd[0] == REQUEST_SENSE)
2111 goto done;
2112
2113 scsi_eh_prep_cmnd(SCpnt, &info->ses, NULL, 0, ~0);
2114 fas216_log_target(info, LOG_CONNECT, SCpnt->device->id,
2115 "requesting sense");
2116 init_SCp(SCpnt);
2117 SCpnt->SCp.Message = 0;
2118 SCpnt->SCp.Status = 0;
2119 SCpnt->tag = 0;
2120 SCpnt->host_scribble = (void *)fas216_rq_sns_done;
2121
2122 /*
2123 * Place this command into the high priority "request
2124 * sense" slot. This will be the very next command
2125 * executed, unless a target connects to us.
2126 */
2127 if (info->reqSCpnt)
2128 printk(KERN_WARNING "scsi%d.%c: losing request command\n",
2129 info->host->host_no, '0' + SCpnt->device->id);
2130 info->reqSCpnt = SCpnt;
2131 }
2132
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 24386 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-29 10:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-29 10:53 [mkp-scsi:for-next 100/112] drivers/scsi/arm/fas216.c:2056:20: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'struct scsi_cmnd *' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.