linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [scsi:misc 15/138] drivers/scsi/lpfc/lpfc_ct.c:3015:1: warning: no previous prototype for function 'lpfc_fdmi_vendor_attr_mi'
@ 2020-11-21 17:42 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-11-21 17:42 UTC (permalink / raw)
  To: James Smart
  Cc: kbuild-all, clang-built-linux, linux-scsi, Martin K. Petersen,
	Dick Kennedy

[-- Attachment #1: Type: text/plain, Size: 2678 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git misc
head:   cf4d4d8ebdb838ee996e09e3ee18deb9a7737dea
commit: 8aaa7bcf07a2eea5ffb6d4ee776379c0e0154f6d [15/138] scsi: lpfc: Add FDMI Vendor MIB support
config: powerpc64-randconfig-r032-20201121 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project bec968cbb367dd03439c89c1d4ef968ef662d7c0)
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 powerpc64 cross compiling tool for clang build
        # apt-get install binutils-powerpc64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git/commit/?id=8aaa7bcf07a2eea5ffb6d4ee776379c0e0154f6d
        git remote add scsi https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git
        git fetch --no-tags scsi misc
        git checkout 8aaa7bcf07a2eea5ffb6d4ee776379c0e0154f6d
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64 

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/lpfc/lpfc_ct.c:3015:1: warning: no previous prototype for function 'lpfc_fdmi_vendor_attr_mi' [-Wmissing-prototypes]
   lpfc_fdmi_vendor_attr_mi(struct lpfc_vport *vport,
   ^
   drivers/scsi/lpfc/lpfc_ct.c:3014:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int
   ^
   static 
   1 warning generated.

vim +/lpfc_fdmi_vendor_attr_mi +3015 drivers/scsi/lpfc/lpfc_ct.c

  3013	
  3014	int
> 3015	lpfc_fdmi_vendor_attr_mi(struct lpfc_vport *vport,
  3016				  struct lpfc_fdmi_attr_def *ad)
  3017	{
  3018		struct lpfc_hba *phba = vport->phba;
  3019		struct lpfc_fdmi_attr_entry *ae;
  3020		uint32_t len, size;
  3021		char mibrevision[16];
  3022	
  3023		ae = (struct lpfc_fdmi_attr_entry *)&ad->AttrValue;
  3024		memset(ae, 0, 256);
  3025		sprintf(mibrevision, "ELXE2EM:%04d",
  3026			phba->sli4_hba.pc_sli4_params.mi_value);
  3027		strncpy(ae->un.AttrString, &mibrevision[0], sizeof(ae->un.AttrString));
  3028		len = strnlen(ae->un.AttrString, sizeof(ae->un.AttrString));
  3029		len += (len & 3) ? (4 - (len & 3)) : 4;
  3030		size = FOURBYTES + len;
  3031		ad->AttrLen = cpu_to_be16(size);
  3032		ad->AttrType = cpu_to_be16(RPRT_VENDOR_MI);
  3033		return size;
  3034	}
  3035	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36986 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-21 17:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-21 17:42 [scsi:misc 15/138] drivers/scsi/lpfc/lpfc_ct.c:3015:1: warning: no previous prototype for function 'lpfc_fdmi_vendor_attr_mi' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).