[staging:staging-next 961/1005] drivers/staging//ccree/ssi_driver.c:298:10: note: in expansion of macro 'KERN_INFO'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-next
head:   11270059e8d0b6f80801fac910c4ef751ca05c4c
commit: abefd6741d540fc624e73a2a3bdef2397bcbd064 [961/1005] staging: ccree: introduce CryptoCell HW driver
config: m32r-allyesconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout abefd6741d540fc624e73a2a3bdef2397bcbd064
        # save the attached .config to linux build tree
        make.cross ARCH=m32r 

All warnings (new ones prefixed by >>):

   In file included from drivers/staging//ccree/ssi_driver.c:60:0:
   drivers/staging//ccree/ssi_driver.c: In function 'init_cc_resources':
   include/linux/kern_levels.h:4:18: warning: format '%X' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=]
    #define KERN_SOH "\001"  /* ASCII Start Of Header */
                     ^
   drivers/staging//ccree/ssi_driver.h:92:9: note: in definition of macro 'SSI_LOG'
     printk(level "cc715ree::%s: " format , __func__, ##__VA_ARGS__)
            ^~~~~
   include/linux/kern_levels.h:13:19: note: in expansion of macro 'KERN_SOH'
    #define KERN_INFO KERN_SOH "6" /* informational */
                      ^~~~~~~~
>> drivers/staging//ccree/ssi_driver.c:298:10: note: in expansion of macro 'KERN_INFO'
     SSI_LOG(KERN_INFO, "ARM CryptoCell %s Driver: HW version 0x%08X, Driver version %s\n", SSI_DEV_NAME_STR,
             ^~~~~~~~~

vim +/KERN_INFO +298 drivers/staging//ccree/ssi_driver.c

   282		if (!new_drvdata->plat_dev->dev.coherent_dma_mask)
   283		{
   284			new_drvdata->plat_dev->dev.coherent_dma_mask = DMA_BIT_MASK(DMA_BIT_MASK_LEN);
   285		}
   286	
   287		/* Verify correct mapping */
   288		signature_val = CC_HAL_READ_REGISTER(CC_REG_OFFSET(HOST_RGF, HOST_SIGNATURE));
   289		if (signature_val != DX_DEV_SIGNATURE) {
   290			SSI_LOG_ERR("Invalid CC signature: SIGNATURE=0x%08X != expected=0x%08X\n",
   291				signature_val, (uint32_t)DX_DEV_SIGNATURE);
   292			rc = -EINVAL;
   293			goto init_cc_res_err;
   294		}
   295		SSI_LOG_DEBUG("CC SIGNATURE=0x%08X\n", signature_val);
   296	
   297		/* Display HW versions */
 > 298		SSI_LOG(KERN_INFO, "ARM CryptoCell %s Driver: HW version 0x%08X, Driver version %s\n", SSI_DEV_NAME_STR,
   299			CC_HAL_READ_REGISTER(CC_REG_OFFSET(HOST_RGF, HOST_VERSION)), DRV_MODULE_VERSION);
   300	
   301		rc = init_cc_regs(new_drvdata, true);
   302		if (unlikely(rc != 0)) {
   303			SSI_LOG_ERR("init_cc_regs failed\n");
   304			goto init_cc_res_err;
   305		}
   306	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux