[gabbayo:habanalabs-next 35/38] drivers/misc/habanalabs/gaudi/gaudi_coresight.c:833:6: warning: variable 'val' set but not used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://people.freedesktop.org/~gabbayo/linux habanalabs-next
head:   addd4be0a770e4cf5607310459cb7c8d11c8ae57
commit: af3bef8b2782bfe3eeb32c8f1f264b5064a27f81 [35/38] habanalabs: add gaudi profiler module
config: m68k-randconfig-r012-20200519 (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout af3bef8b2782bfe3eeb32c8f1f264b5064a27f81
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>, old ones prefixed by <<):

drivers/misc/habanalabs/gaudi/gaudi_coresight.c: In function 'gaudi_debug_coresight':
>> drivers/misc/habanalabs/gaudi/gaudi_coresight.c:833:6: warning: variable 'val' set but not used [-Wunused-but-set-variable]
833 |  u32 val;
|      ^~~

vim +/val +833 drivers/misc/habanalabs/gaudi/gaudi_coresight.c

   829	
   830	int gaudi_debug_coresight(struct hl_device *hdev, void *data)
   831	{
   832		struct hl_debug_params *params = data;
 > 833		u32 val;
   834		int rc = 0;
   835	
   836		switch (params->op) {
   837		case HL_DEBUG_OP_STM:
   838			rc = gaudi_config_stm(hdev, params);
   839			break;
   840		case HL_DEBUG_OP_ETF:
   841			rc = gaudi_config_etf(hdev, params);
   842			break;
   843		case HL_DEBUG_OP_ETR:
   844			rc = gaudi_config_etr(hdev, params);
   845			break;
   846		case HL_DEBUG_OP_FUNNEL:
   847			rc = gaudi_config_funnel(hdev, params);
   848			break;
   849		case HL_DEBUG_OP_BMON:
   850			rc = gaudi_config_bmon(hdev, params);
   851			break;
   852		case HL_DEBUG_OP_SPMU:
   853			rc = gaudi_config_spmu(hdev, params);
   854			break;
   855		case HL_DEBUG_OP_TIMESTAMP:
   856			/* Do nothing as this opcode is deprecated */
   857			break;
   858	
   859		default:
   860			dev_err(hdev->dev, "Unknown coresight id %d\n", params->op);
   861			return -EINVAL;
   862		}
   863	
   864		/* Perform read from the device to flush all configuration */
   865		val = RREG32(mmPCIE_DBI_DEVICE_ID_VENDOR_ID_REG);
   866	
   867		return rc;
   868	}
   869	

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux