2021-07-26 09:09:25

by kernel test robot

[permalink] [raw]
Subject: [hch-block:blkdev.h-includes 10/16] drivers/scsi/lpfc/lpfc.h:563:2: error: type name requires a specifier or qualifier

tree: git://git.infradead.org/users/hch/block.git blkdev.h-includes
head: 3207cb9d0ef0032cac133372a2b3dd2472168558
commit: f3801c169a64e10d8894b9fb1f0f87e4448a14df [10/16] block: move elevator.h to block/
config: mips-randconfig-r001-20210726 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project c63dbd850182797bc4b76124d08e1c320ab2365d)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
git remote add hch-block git://git.infradead.org/users/hch/block.git
git fetch --no-tags hch-block blkdev.h-includes
git checkout f3801c169a64e10d8894b9fb1f0f87e4448a14df
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=mips SHELL=/bin/bash drivers/scsi/lpfc/ lib/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>

All error/warnings (new ones prefixed by >>):

In file included from drivers/scsi/lpfc/lpfc_mem.c:40:
>> drivers/scsi/lpfc/lpfc.h:563:2: error: type name requires a specifier or qualifier
DECLARE_HASHTABLE(hash_table, 8);
^
>> drivers/scsi/lpfc/lpfc.h:563:32: error: expected identifier
DECLARE_HASHTABLE(hash_table, 8);
^
>> drivers/scsi/lpfc/lpfc.h:563:19: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
DECLARE_HASHTABLE(hash_table, 8);
^
void
3 errors generated.
--
In file included from drivers/scsi/lpfc/lpfc_sli.c:49:
>> drivers/scsi/lpfc/lpfc.h:563:2: error: type name requires a specifier or qualifier
DECLARE_HASHTABLE(hash_table, 8);
^
>> drivers/scsi/lpfc/lpfc.h:563:32: error: expected identifier
DECLARE_HASHTABLE(hash_table, 8);
^
>> drivers/scsi/lpfc/lpfc.h:563:19: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
DECLARE_HASHTABLE(hash_table, 8);
^
void
drivers/scsi/lpfc/lpfc_sli.c:14946:6: warning: variable 'i' set but not used [-Wunused-but-set-variable]
int i = 0;
^
1 warning and 3 errors generated.
--
In file included from drivers/scsi/lpfc/lpfc_bsg.c:46:
>> drivers/scsi/lpfc/lpfc.h:563:2: error: type name requires a specifier or qualifier
DECLARE_HASHTABLE(hash_table, 8);
^
>> drivers/scsi/lpfc/lpfc.h:563:32: error: expected identifier
DECLARE_HASHTABLE(hash_table, 8);
^
>> drivers/scsi/lpfc/lpfc.h:563:19: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
DECLARE_HASHTABLE(hash_table, 8);
^
void
drivers/scsi/lpfc/lpfc_bsg.c:2864:11: warning: variable 'offset' set but not used [-Wunused-but-set-variable]
int cnt, offset = 0, i = 0;
^
1 warning and 3 errors generated.
--
In file included from drivers/scsi/lpfc/lpfc_ct.c:45:
>> drivers/scsi/lpfc/lpfc.h:563:2: error: type name requires a specifier or qualifier
DECLARE_HASHTABLE(hash_table, 8);
^
>> drivers/scsi/lpfc/lpfc.h:563:32: error: expected identifier
DECLARE_HASHTABLE(hash_table, 8);
^
>> drivers/scsi/lpfc/lpfc.h:563:19: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
DECLARE_HASHTABLE(hash_table, 8);
^
void
>> drivers/scsi/lpfc/lpfc_ct.c:3873:8: error: implicit declaration of function 'hash_empty' [-Werror,-Wimplicit-function-declaration]
if (!hash_empty(vport->hash_table))
^
>> drivers/scsi/lpfc/lpfc_ct.c:3873:26: error: no member named 'hash_table' in 'struct lpfc_vport'
if (!hash_empty(vport->hash_table))
~~~~~ ^
>> drivers/scsi/lpfc/lpfc_ct.c:3874:4: error: implicit declaration of function 'hash_for_each' [-Werror,-Wimplicit-function-declaration]
hash_for_each(vport->hash_table, bucket, cur, hnode)
^
drivers/scsi/lpfc/lpfc_ct.c:3874:4: note: did you mean 'idr_for_each'?
include/linux/idr.h:120:5: note: 'idr_for_each' declared here
int idr_for_each(const struct idr *,
^
drivers/scsi/lpfc/lpfc_ct.c:3874:25: error: no member named 'hash_table' in 'struct lpfc_vport'
hash_for_each(vport->hash_table, bucket, cur, hnode)
~~~~~ ^
>> drivers/scsi/lpfc/lpfc_ct.c:3874:56: error: expected ';' after expression
hash_for_each(vport->hash_table, bucket, cur, hnode)
^
;
>> drivers/scsi/lpfc/lpfc_ct.c:3874:50: error: use of undeclared identifier 'hnode'
hash_for_each(vport->hash_table, bucket, cur, hnode)
^
>> drivers/scsi/lpfc/lpfc_ct.c:3875:5: error: implicit declaration of function 'hash_del' [-Werror,-Wimplicit-function-declaration]
hash_del(&cur->hnode);
^
10 errors generated.
--
In file included from drivers/scsi/lpfc/lpfc_hbadisc.c:45:
>> drivers/scsi/lpfc/lpfc.h:563:2: error: type name requires a specifier or qualifier
DECLARE_HASHTABLE(hash_table, 8);
^
>> drivers/scsi/lpfc/lpfc.h:563:32: error: expected identifier
DECLARE_HASHTABLE(hash_table, 8);
^
>> drivers/scsi/lpfc/lpfc.h:563:19: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
DECLARE_HASHTABLE(hash_table, 8);
^
void
>> drivers/scsi/lpfc/lpfc_hbadisc.c:260:2: error: implicit declaration of function 'hash_for_each' [-Werror,-Wimplicit-function-declaration]
hash_for_each(vport->hash_table, bucket, vmp, hnode) {
^
drivers/scsi/lpfc/lpfc_hbadisc.c:260:2: note: did you mean 'idr_for_each'?
include/linux/idr.h:120:5: note: 'idr_for_each' declared here
int idr_for_each(const struct idr *,
^
>> drivers/scsi/lpfc/lpfc_hbadisc.c:260:23: error: no member named 'hash_table' in 'struct lpfc_vport'
hash_for_each(vport->hash_table, bucket, vmp, hnode) {
~~~~~ ^
>> drivers/scsi/lpfc/lpfc_hbadisc.c:260:54: error: expected ';' after expression
hash_for_each(vport->hash_table, bucket, vmp, hnode) {
^
;
>> drivers/scsi/lpfc/lpfc_hbadisc.c:260:48: error: use of undeclared identifier 'hnode'
hash_for_each(vport->hash_table, bucket, vmp, hnode) {
^
>> drivers/scsi/lpfc/lpfc_hbadisc.c:301:6: error: implicit declaration of function 'hash_del' [-Werror,-Wimplicit-function-declaration]
hash_del(&ht->hnode);
^
8 errors generated.
--
In file included from drivers/scsi/lpfc/lpfc_init.c:59:
>> drivers/scsi/lpfc/lpfc.h:563:2: error: type name requires a specifier or qualifier
DECLARE_HASHTABLE(hash_table, 8);
^
>> drivers/scsi/lpfc/lpfc.h:563:32: error: expected identifier
DECLARE_HASHTABLE(hash_table, 8);
^
>> drivers/scsi/lpfc/lpfc.h:563:19: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
DECLARE_HASHTABLE(hash_table, 8);
^
void
>> drivers/scsi/lpfc/lpfc_init.c:4359:3: error: implicit declaration of function 'hash_init' [-Werror,-Wimplicit-function-declaration]
hash_init(vport->hash_table);
^
>> drivers/scsi/lpfc/lpfc_init.c:4359:20: error: no member named 'hash_table' in 'struct lpfc_vport'
hash_init(vport->hash_table);
~~~~~ ^
>> drivers/scsi/lpfc/lpfc_init.c:7977:48: warning: shift count >= width of type [-Wshift-count-overflow]
error = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^ ~~~
drivers/scsi/lpfc/lpfc_init.c:10446:48: warning: shift count >= width of type [-Wshift-count-overflow]
error = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^ ~~~
2 warnings and 5 errors generated.
--
In file included from drivers/scsi/lpfc/lpfc_scsi.c:48:
>> drivers/scsi/lpfc/lpfc.h:563:2: error: type name requires a specifier or qualifier
DECLARE_HASHTABLE(hash_table, 8);
^
>> drivers/scsi/lpfc/lpfc.h:563:32: error: expected identifier
DECLARE_HASHTABLE(hash_table, 8);
^
>> drivers/scsi/lpfc/lpfc.h:563:19: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
DECLARE_HASHTABLE(hash_table, 8);
^
void
>> drivers/scsi/lpfc/lpfc_scsi.c:5185:2: error: implicit declaration of function 'hash_for_each_possible' [-Werror,-Wimplicit-function-declaration]
hash_for_each_possible(vport->hash_table, vmp, hnode, hash) {
^
>> drivers/scsi/lpfc/lpfc_scsi.c:5185:32: error: no member named 'hash_table' in 'struct lpfc_vport'
hash_for_each_possible(vport->hash_table, vmp, hnode, hash) {
~~~~~ ^
>> drivers/scsi/lpfc/lpfc_scsi.c:5185:61: error: expected ';' after expression
hash_for_each_possible(vport->hash_table, vmp, hnode, hash) {
^
;
>> drivers/scsi/lpfc/lpfc_scsi.c:5185:49: error: use of undeclared identifier 'hnode'
hash_for_each_possible(vport->hash_table, vmp, hnode, hash) {
^
>> drivers/scsi/lpfc/lpfc_scsi.c:5205:2: error: implicit declaration of function 'hash_add' [-Werror,-Wimplicit-function-declaration]
hash_add(vport->hash_table, &vmp->hnode, hash);
^
drivers/scsi/lpfc/lpfc_scsi.c:5205:18: error: no member named 'hash_table' in 'struct lpfc_vport'
hash_add(vport->hash_table, &vmp->hnode, hash);
~~~~~ ^
>> drivers/scsi/lpfc/lpfc_scsi.c:5381:4: error: implicit declaration of function 'hash_del' [-Werror,-Wimplicit-function-declaration]
hash_del(&vmp->hnode);
^
drivers/scsi/lpfc/lpfc_scsi.c:5401:4: error: implicit declaration of function 'hash_del' [-Werror,-Wimplicit-function-declaration]
hash_del(&vmp->hnode);
^
>> drivers/scsi/lpfc/lpfc_scsi.c:5710:7: error: implicit declaration of function 'hash_empty' [-Werror,-Wimplicit-function-declaration]
if (!hash_empty(vport->hash_table))
^
drivers/scsi/lpfc/lpfc_scsi.c:5710:25: error: no member named 'hash_table' in 'struct lpfc_vport'
if (!hash_empty(vport->hash_table))
~~~~~ ^
>> drivers/scsi/lpfc/lpfc_scsi.c:5711:3: error: implicit declaration of function 'hash_for_each' [-Werror,-Wimplicit-function-declaration]
hash_for_each(vport->hash_table, bucket, cur, hnode)
^
drivers/scsi/lpfc/lpfc_scsi.c:5711:3: note: did you mean 'idr_for_each'?
include/linux/idr.h:120:5: note: 'idr_for_each' declared here
int idr_for_each(const struct idr *,
^
drivers/scsi/lpfc/lpfc_scsi.c:5711:24: error: no member named 'hash_table' in 'struct lpfc_vport'
hash_for_each(vport->hash_table, bucket, cur, hnode)
~~~~~ ^
drivers/scsi/lpfc/lpfc_scsi.c:5711:55: error: expected ';' after expression
hash_for_each(vport->hash_table, bucket, cur, hnode)
^
;
drivers/scsi/lpfc/lpfc_scsi.c:5711:49: error: use of undeclared identifier 'hnode'
hash_for_each(vport->hash_table, bucket, cur, hnode)
^
drivers/scsi/lpfc/lpfc_scsi.c:5712:4: error: implicit declaration of function 'hash_del' [-Werror,-Wimplicit-function-declaration]
hash_del(&cur->hnode);
^
18 errors generated.


vim +563 drivers/scsi/lpfc/lpfc.h

858c9f6c19c6f9 James Smart 2007-06-17 497
858c9f6c19c6f9 James Smart 2007-06-17 498 #define WORKER_MBOX_TMO 0x100 /* hba: MBOX timeout */
858c9f6c19c6f9 James Smart 2007-06-17 499 #define WORKER_HB_TMO 0x200 /* hba: Heart beat timeout */
b1c118121ae372 Joe Perches 2008-02-03 500 #define WORKER_FABRIC_BLOCK_TMO 0x400 /* hba: fabric block timeout */
858c9f6c19c6f9 James Smart 2007-06-17 501 #define WORKER_RAMP_DOWN_QUEUE 0x800 /* hba: Decrease Q depth */
858c9f6c19c6f9 James Smart 2007-06-17 502 #define WORKER_RAMP_UP_QUEUE 0x1000 /* hba: Increase Q depth */
2a9bf3d011303d James Smart 2010-06-07 503 #define WORKER_SERVICE_TXQ 0x2000 /* hba: IOCBs on the txq */
02169e845da7ca Gaurav Srivastava 2021-06-08 504 #define WORKER_CHECK_INACTIVE_VMID 0x4000 /* hba: check inactive vmids */
02169e845da7ca Gaurav Srivastava 2021-06-08 505 #define WORKER_CHECK_VMID_ISSUE_QFPA 0x8000 /* vport: Check if qfpa needs
02169e845da7ca Gaurav Srivastava 2021-06-08 506 * to be issued */
2e0fef85e098f6 James Smart 2007-06-17 507
2e0fef85e098f6 James Smart 2007-06-17 508 struct timer_list els_tmofunc;
924941444b481f James Smart 2011-02-16 509 struct timer_list delayed_disc_tmo;
2e0fef85e098f6 James Smart 2007-06-17 510
2e0fef85e098f6 James Smart 2007-06-17 511 int unreg_vpi_cmpl;
2e0fef85e098f6 James Smart 2007-06-17 512
2e0fef85e098f6 James Smart 2007-06-17 513 uint8_t load_flag;
2e0fef85e098f6 James Smart 2007-06-17 514 #define FC_LOADING 0x1 /* HBA in process of loading drvr */
2e0fef85e098f6 James Smart 2007-06-17 515 #define FC_UNLOADING 0x2 /* HBA in process of unloading drvr */
4258e98ee3862c James Smart 2015-12-16 516 #define FC_ALLOW_FDMI 0x4 /* port is ready for FDMI requests */
02169e845da7ca Gaurav Srivastava 2021-06-08 517 #define FC_ALLOW_VMID 0x8 /* Allow VMID I/Os */
02169e845da7ca Gaurav Srivastava 2021-06-08 518 #define FC_DEREGISTER_ALL_APP_ID 0x10 /* Deregister all VMIDs */
3de2a653a127c4 James Smart 2007-08-02 519 /* Vport Config Parameters */
3de2a653a127c4 James Smart 2007-08-02 520 uint32_t cfg_scan_down;
3de2a653a127c4 James Smart 2007-08-02 521 uint32_t cfg_lun_queue_depth;
3de2a653a127c4 James Smart 2007-08-02 522 uint32_t cfg_nodev_tmo;
3de2a653a127c4 James Smart 2007-08-02 523 uint32_t cfg_devloss_tmo;
3de2a653a127c4 James Smart 2007-08-02 524 uint32_t cfg_restrict_login;
3de2a653a127c4 James Smart 2007-08-02 525 uint32_t cfg_peer_port_login;
3de2a653a127c4 James Smart 2007-08-02 526 uint32_t cfg_fcp_class;
3de2a653a127c4 James Smart 2007-08-02 527 uint32_t cfg_use_adisc;
3de2a653a127c4 James Smart 2007-08-02 528 uint32_t cfg_discovery_threads;
e8b62011d88d6f James Smart 2007-08-02 529 uint32_t cfg_log_verbose;
f6e84790520ac7 James Smart 2019-01-28 530 uint32_t cfg_enable_fc4_type;
3de2a653a127c4 James Smart 2007-08-02 531 uint32_t cfg_max_luns;
7ee5d43e2ea253 James Smart 2007-10-27 532 uint32_t cfg_enable_da_id;
977b5a0af6d22a James Smart 2008-09-07 533 uint32_t cfg_max_scsicmpl_time;
7dc517df3ace15 James Smart 2010-07-14 534 uint32_t cfg_tgt_queue_depth;
3cb01c57c981c8 James Smart 2013-07-15 535 uint32_t cfg_first_burst_size;
3de2a653a127c4 James Smart 2007-08-02 536 uint32_t dev_loss_tmo_changed;
02169e845da7ca Gaurav Srivastava 2021-06-08 537 /* VMID parameters */
02169e845da7ca Gaurav Srivastava 2021-06-08 538 u8 lpfc_vmid_host_uuid[LPFC_COMPRESS_VMID_SIZE];
02169e845da7ca Gaurav Srivastava 2021-06-08 539 u32 max_vmid; /* maximum VMIDs allowed per port */
02169e845da7ca Gaurav Srivastava 2021-06-08 540 u32 cur_vmid_cnt; /* Current VMID count */
02169e845da7ca Gaurav Srivastava 2021-06-08 541 #define LPFC_MIN_VMID 4
02169e845da7ca Gaurav Srivastava 2021-06-08 542 #define LPFC_MAX_VMID 255
02169e845da7ca Gaurav Srivastava 2021-06-08 543 u32 vmid_inactivity_timeout; /* Time after which the VMID */
02169e845da7ca Gaurav Srivastava 2021-06-08 544 /* deregisters from switch */
02169e845da7ca Gaurav Srivastava 2021-06-08 545 u32 vmid_priority_tagging;
02169e845da7ca Gaurav Srivastava 2021-06-08 546 #define LPFC_VMID_PRIO_TAG_DISABLE 0 /* Disable */
02169e845da7ca Gaurav Srivastava 2021-06-08 547 #define LPFC_VMID_PRIO_TAG_SUP_TARGETS 1 /* Allow supported targets only */
02169e845da7ca Gaurav Srivastava 2021-06-08 548 #define LPFC_VMID_PRIO_TAG_ALL_TARGETS 2 /* Allow all targets */
02169e845da7ca Gaurav Srivastava 2021-06-08 549 unsigned long *vmid_priority_range;
02169e845da7ca Gaurav Srivastava 2021-06-08 550 #define LPFC_VMID_MAX_PRIORITY_RANGE 256
02169e845da7ca Gaurav Srivastava 2021-06-08 551 #define LPFC_VMID_PRIORITY_BITMAP_SIZE 32
02169e845da7ca Gaurav Srivastava 2021-06-08 552 u8 vmid_flag;
02169e845da7ca Gaurav Srivastava 2021-06-08 553 #define LPFC_VMID_IN_USE 0x1
02169e845da7ca Gaurav Srivastava 2021-06-08 554 #define LPFC_VMID_ISSUE_QFPA 0x2
02169e845da7ca Gaurav Srivastava 2021-06-08 555 #define LPFC_VMID_QFPA_CMPL 0x4
02169e845da7ca Gaurav Srivastava 2021-06-08 556 #define LPFC_VMID_QOS_ENABLED 0x8
02169e845da7ca Gaurav Srivastava 2021-06-08 557 #define LPFC_VMID_TIMER_ENBLD 0x10
02169e845da7ca Gaurav Srivastava 2021-06-08 558 struct fc_qfpa_res *qfpa_res;
51ef4c26891a73 James Smart 2007-08-02 559
51ef4c26891a73 James Smart 2007-08-02 560 struct fc_vport *fc_vport;
51ef4c26891a73 James Smart 2007-08-02 561
02169e845da7ca Gaurav Srivastava 2021-06-08 562 struct lpfc_vmid *vmid;
02169e845da7ca Gaurav Srivastava 2021-06-08 @563 DECLARE_HASHTABLE(hash_table, 8);
02169e845da7ca Gaurav Srivastava 2021-06-08 564 rwlock_t vmid_lock;
02169e845da7ca Gaurav Srivastava 2021-06-08 565 struct lpfc_vmid_priority_info vmid_priority;
02169e845da7ca Gaurav Srivastava 2021-06-08 566

:::::: The code at line 563 was first introduced by commit
:::::: 02169e845da7ca9ae91c7228244bf160ffee8c72 scsi: lpfc: vmid: Add datastructure for supporting VMID in lpfc

:::::: TO: Gaurav Srivastava <[email protected]>
:::::: CC: Martin K. Petersen <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]


Attachments:
(No filename) (20.37 kB)
.config.gz (41.73 kB)
Download all attachments