drivers/scsi/mpt3sas/mpt3sas_base.c:5487: warning: Function parameter or member 'sas_addr' not described in 'mpt3sas_atto_get_sas_addr'

From: kernel test robot
Date: Thu Aug 17 2023 - 07:43:39 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4853c74bd7ab7fdb83f319bd9ace8a08c031e9b6
commit: 91cf186aa1bfea06c7438b16eb40a612a4c3b87a scsi: mpt3sas: Add support for ATTO ExpressSAS H12xx GT devices
date: 12 months ago
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20230817/202308171957.Z6vvWcGO-lkp@xxxxxxxxx/config)
compiler: alpha-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230817/202308171957.Z6vvWcGO-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308171957.Z6vvWcGO-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/scsi/mpt3sas/mpt3sas_base.c:5487: warning: Function parameter or member 'sas_addr' not described in 'mpt3sas_atto_get_sas_addr'


vim +5487 drivers/scsi/mpt3sas/mpt3sas_base.c

5477
5478 /**
5479 * mpt3sas_atto_get_sas_addr - get the ATTO SAS address from mfg page 1
5480 *
5481 * @ioc : per adapter object
5482 * @*sas_addr : return sas address
5483 * Return: 0 for success, non-zero for failure.
5484 */
5485 static int
5486 mpt3sas_atto_get_sas_addr(struct MPT3SAS_ADAPTER *ioc, union ATTO_SAS_ADDRESS *sas_addr)
> 5487 {
5488 Mpi2ManufacturingPage1_t mfg_pg1;
5489 Mpi2ConfigReply_t mpi_reply;
5490 struct ATTO_SAS_NVRAM *nvram;
5491 int r;
5492 __be64 addr;
5493
5494 r = mpt3sas_config_get_manufacturing_pg1(ioc, &mpi_reply, &mfg_pg1);
5495 if (r) {
5496 ioc_err(ioc, "Failed to read manufacturing page 1\n");
5497 return r;
5498 }
5499
5500 /* validate nvram */
5501 nvram = (struct ATTO_SAS_NVRAM *) mfg_pg1.VPD;
5502 r = mpt3sas_atto_validate_nvram(ioc, nvram);
5503 if (r)
5504 return r;
5505
5506 addr = *((__be64 *) nvram->SasAddr);
5507 sas_addr->q = cpu_to_le64(be64_to_cpu(addr));
5508 return r;
5509 }
5510

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki