lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202104130223.71Zy16zw-lkp@intel.com>
Date:   Tue, 13 Apr 2021 02:08:57 +0800
From:   kernel test robot <lkp@...el.com>
To:     Aline Santana Cordeiro <alinesantanacordeiro@...il.com>,
        Laurent Pinchart <laurent.pinchart@...asonboard.com>,
        Mauro Carvalho Chehab <mchehab@...nel.org>,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc:     kbuild-all@...ts.01.org, linux-media@...r.kernel.org,
        linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org,
        outreachy-kernel@...glegroups.com
Subject: Re: [PATCH] staging: media: omap4iss: Remove unused macro functions

Hi Aline,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on staging/staging-testing]

url:    https://github.com/0day-ci/linux/commits/Aline-Santana-Cordeiro/staging-media-omap4iss-Remove-unused-macro-functions/20210412-214331
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git f2f560e1bdc055a6a306e6b7823ba589794e6564
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.0
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
        # https://github.com/0day-ci/linux/commit/6cadf4b043c1d68e2afb77278b7d0deaee3a5222
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Aline-Santana-Cordeiro/staging-media-omap4iss-Remove-unused-macro-functions/20210412-214331
        git checkout 6cadf4b043c1d68e2afb77278b7d0deaee3a5222
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

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

   drivers/staging/media/omap4iss/iss_ipipeif.c: In function 'ipipeif_print_status':
>> drivers/staging/media/omap4iss/iss_ipipeif.c:51:27: error: implicit declaration of function 'to_iss_device'; did you mean 'to_spi_device'? [-Werror=implicit-function-declaration]
      51 |  struct iss_device *iss = to_iss_device(ipipeif);
         |                           ^~~~~~~~~~~~~
         |                           to_spi_device
>> drivers/staging/media/omap4iss/iss_ipipeif.c:51:27: warning: initialization of 'struct iss_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   drivers/staging/media/omap4iss/iss_ipipeif.c: In function 'ipipeif_write_enable':
   drivers/staging/media/omap4iss/iss_ipipeif.c:80:27: warning: initialization of 'struct iss_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
      80 |  struct iss_device *iss = to_iss_device(ipipeif);
         |                           ^~~~~~~~~~~~~
   drivers/staging/media/omap4iss/iss_ipipeif.c: In function 'ipipeif_enable':
   drivers/staging/media/omap4iss/iss_ipipeif.c:93:27: warning: initialization of 'struct iss_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
      93 |  struct iss_device *iss = to_iss_device(ipipeif);
         |                           ^~~~~~~~~~~~~
   drivers/staging/media/omap4iss/iss_ipipeif.c: In function 'ipipeif_set_outaddr':
   drivers/staging/media/omap4iss/iss_ipipeif.c:112:27: warning: initialization of 'struct iss_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     112 |  struct iss_device *iss = to_iss_device(ipipeif);
         |                           ^~~~~~~~~~~~~
   drivers/staging/media/omap4iss/iss_ipipeif.c: In function 'ipipeif_configure':
   drivers/staging/media/omap4iss/iss_ipipeif.c:123:27: warning: initialization of 'struct iss_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     123 |  struct iss_device *iss = to_iss_device(ipipeif);
         |                           ^~~~~~~~~~~~~
   drivers/staging/media/omap4iss/iss_ipipeif.c: In function 'ipipeif_set_stream':
   drivers/staging/media/omap4iss/iss_ipipeif.c:305:27: warning: initialization of 'struct iss_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     305 |  struct iss_device *iss = to_iss_device(ipipeif);
         |                           ^~~~~~~~~~~~~
   drivers/staging/media/omap4iss/iss_ipipeif.c: In function 'ipipeif_link_setup':
   drivers/staging/media/omap4iss/iss_ipipeif.c:660:27: warning: initialization of 'struct iss_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     660 |  struct iss_device *iss = to_iss_device(ipipeif);
         |                           ^~~~~~~~~~~~~
   drivers/staging/media/omap4iss/iss_ipipeif.c: In function 'ipipeif_init_entities':
>> drivers/staging/media/omap4iss/iss_ipipeif.c:755:25: warning: assignment to 'struct iss_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     755 |  ipipeif->video_out.iss = to_iss_device(ipipeif);
         |                         ^
   cc1: some warnings being treated as errors
--
   drivers/staging/media/omap4iss/iss_ipipe.c: In function 'ipipe_print_status':
>> drivers/staging/media/omap4iss/iss_ipipe.c:47:27: error: implicit declaration of function 'to_iss_device'; did you mean 'to_spi_device'? [-Werror=implicit-function-declaration]
      47 |  struct iss_device *iss = to_iss_device(ipipe);
         |                           ^~~~~~~~~~~~~
         |                           to_spi_device
>> drivers/staging/media/omap4iss/iss_ipipe.c:47:27: warning: initialization of 'struct iss_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   drivers/staging/media/omap4iss/iss_ipipe.c: In function 'ipipe_enable':
   drivers/staging/media/omap4iss/iss_ipipe.c:72:27: warning: initialization of 'struct iss_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
      72 |  struct iss_device *iss = to_iss_device(ipipe);
         |                           ^~~~~~~~~~~~~
   drivers/staging/media/omap4iss/iss_ipipe.c: In function 'ipipe_configure':
   drivers/staging/media/omap4iss/iss_ipipe.c:84:27: warning: initialization of 'struct iss_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
      84 |  struct iss_device *iss = to_iss_device(ipipe);
         |                           ^~~~~~~~~~~~~
   drivers/staging/media/omap4iss/iss_ipipe.c: In function 'ipipe_set_stream':
   drivers/staging/media/omap4iss/iss_ipipe.c:131:27: warning: initialization of 'struct iss_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     131 |  struct iss_device *iss = to_iss_device(ipipe);
         |                           ^~~~~~~~~~~~~
   drivers/staging/media/omap4iss/iss_ipipe.c: In function 'ipipe_link_setup':
   drivers/staging/media/omap4iss/iss_ipipe.c:444:27: warning: initialization of 'struct iss_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     444 |  struct iss_device *iss = to_iss_device(ipipe);
         |                           ^~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   drivers/staging/media/omap4iss/iss_resizer.c: In function 'resizer_print_status':
>> drivers/staging/media/omap4iss/iss_resizer.c:43:27: error: implicit declaration of function 'to_iss_device'; did you mean 'to_spi_device'? [-Werror=implicit-function-declaration]
      43 |  struct iss_device *iss = to_iss_device(resizer);
         |                           ^~~~~~~~~~~~~
         |                           to_spi_device
>> drivers/staging/media/omap4iss/iss_resizer.c:43:27: warning: initialization of 'struct iss_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   drivers/staging/media/omap4iss/iss_resizer.c: In function 'resizer_enable':
   drivers/staging/media/omap4iss/iss_resizer.c:113:27: warning: initialization of 'struct iss_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     113 |  struct iss_device *iss = to_iss_device(resizer);
         |                           ^~~~~~~~~~~~~
   drivers/staging/media/omap4iss/iss_resizer.c: In function 'resizer_set_outaddr':
   drivers/staging/media/omap4iss/iss_resizer.c:136:27: warning: initialization of 'struct iss_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     136 |  struct iss_device *iss = to_iss_device(resizer);
         |                           ^~~~~~~~~~~~~
   drivers/staging/media/omap4iss/iss_resizer.c: In function 'resizer_configure':
   drivers/staging/media/omap4iss/iss_resizer.c:183:27: warning: initialization of 'struct iss_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     183 |  struct iss_device *iss = to_iss_device(resizer);
         |                           ^~~~~~~~~~~~~
   drivers/staging/media/omap4iss/iss_resizer.c: In function 'omap4iss_resizer_isr':
   drivers/staging/media/omap4iss/iss_resizer.c:288:27: warning: initialization of 'struct iss_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     288 |  struct iss_device *iss = to_iss_device(resizer);
         |                           ^~~~~~~~~~~~~
   drivers/staging/media/omap4iss/iss_resizer.c: In function 'resizer_set_stream':
   drivers/staging/media/omap4iss/iss_resizer.c:353:27: warning: initialization of 'struct iss_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     353 |  struct iss_device *iss = to_iss_device(resizer);
         |                           ^~~~~~~~~~~~~
   drivers/staging/media/omap4iss/iss_resizer.c: In function 'resizer_link_setup':
   drivers/staging/media/omap4iss/iss_resizer.c:714:27: warning: initialization of 'struct iss_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     714 |  struct iss_device *iss = to_iss_device(resizer);
         |                           ^~~~~~~~~~~~~
   drivers/staging/media/omap4iss/iss_resizer.c: In function 'resizer_init_entities':
>> drivers/staging/media/omap4iss/iss_resizer.c:797:25: warning: assignment to 'struct iss_device *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     797 |  resizer->video_out.iss = to_iss_device(resizer);
         |                         ^
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
   Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
   Selected by
   - SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
   - SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC


vim +51 drivers/staging/media/omap4iss/iss_ipipeif.c

714148260d0585 Sergio Aguirre   2011-01-24  30  
714148260d0585 Sergio Aguirre   2011-01-24  31  /*
714148260d0585 Sergio Aguirre   2011-01-24  32   * ipipeif_print_status - Print current IPIPEIF Module register values.
714148260d0585 Sergio Aguirre   2011-01-24  33   * @ipipeif: Pointer to ISS ISP IPIPEIF device.
714148260d0585 Sergio Aguirre   2011-01-24  34   *
714148260d0585 Sergio Aguirre   2011-01-24  35   * Also prints other debug information stored in the IPIPEIF module.
714148260d0585 Sergio Aguirre   2011-01-24  36   */
714148260d0585 Sergio Aguirre   2011-01-24  37  #define IPIPEIF_PRINT_REGISTER(iss, name)\
714148260d0585 Sergio Aguirre   2011-01-24  38  	dev_dbg(iss->dev, "###IPIPEIF " #name "=0x%08x\n", \
11abbfd30f74f7 Laurent Pinchart 2013-08-30  39  		iss_reg_read(iss, OMAP4_ISS_MEM_ISP_IPIPEIF, IPIPEIF_##name))
714148260d0585 Sergio Aguirre   2011-01-24  40  
714148260d0585 Sergio Aguirre   2011-01-24  41  #define ISIF_PRINT_REGISTER(iss, name)\
714148260d0585 Sergio Aguirre   2011-01-24  42  	dev_dbg(iss->dev, "###ISIF " #name "=0x%08x\n", \
11abbfd30f74f7 Laurent Pinchart 2013-08-30  43  		iss_reg_read(iss, OMAP4_ISS_MEM_ISP_ISIF, ISIF_##name))
714148260d0585 Sergio Aguirre   2011-01-24  44  
714148260d0585 Sergio Aguirre   2011-01-24  45  #define ISP5_PRINT_REGISTER(iss, name)\
714148260d0585 Sergio Aguirre   2011-01-24  46  	dev_dbg(iss->dev, "###ISP5 " #name "=0x%08x\n", \
11abbfd30f74f7 Laurent Pinchart 2013-08-30  47  		iss_reg_read(iss, OMAP4_ISS_MEM_ISP_SYS1, ISP5_##name))
714148260d0585 Sergio Aguirre   2011-01-24  48  
714148260d0585 Sergio Aguirre   2011-01-24  49  static void ipipeif_print_status(struct iss_ipipeif_device *ipipeif)
714148260d0585 Sergio Aguirre   2011-01-24  50  {
714148260d0585 Sergio Aguirre   2011-01-24 @51  	struct iss_device *iss = to_iss_device(ipipeif);
714148260d0585 Sergio Aguirre   2011-01-24  52  
714148260d0585 Sergio Aguirre   2011-01-24  53  	dev_dbg(iss->dev, "-------------IPIPEIF Register dump-------------\n");
714148260d0585 Sergio Aguirre   2011-01-24  54  
714148260d0585 Sergio Aguirre   2011-01-24  55  	IPIPEIF_PRINT_REGISTER(iss, CFG1);
714148260d0585 Sergio Aguirre   2011-01-24  56  	IPIPEIF_PRINT_REGISTER(iss, CFG2);
714148260d0585 Sergio Aguirre   2011-01-24  57  
714148260d0585 Sergio Aguirre   2011-01-24  58  	ISIF_PRINT_REGISTER(iss, SYNCEN);
714148260d0585 Sergio Aguirre   2011-01-24  59  	ISIF_PRINT_REGISTER(iss, CADU);
714148260d0585 Sergio Aguirre   2011-01-24  60  	ISIF_PRINT_REGISTER(iss, CADL);
714148260d0585 Sergio Aguirre   2011-01-24  61  	ISIF_PRINT_REGISTER(iss, MODESET);
714148260d0585 Sergio Aguirre   2011-01-24  62  	ISIF_PRINT_REGISTER(iss, CCOLP);
714148260d0585 Sergio Aguirre   2011-01-24  63  	ISIF_PRINT_REGISTER(iss, SPH);
714148260d0585 Sergio Aguirre   2011-01-24  64  	ISIF_PRINT_REGISTER(iss, LNH);
714148260d0585 Sergio Aguirre   2011-01-24  65  	ISIF_PRINT_REGISTER(iss, LNV);
54d0059c7bbc26 Laurent Pinchart 2013-08-28  66  	ISIF_PRINT_REGISTER(iss, VDINT(0));
714148260d0585 Sergio Aguirre   2011-01-24  67  	ISIF_PRINT_REGISTER(iss, HSIZE);
714148260d0585 Sergio Aguirre   2011-01-24  68  
714148260d0585 Sergio Aguirre   2011-01-24  69  	ISP5_PRINT_REGISTER(iss, SYSCONFIG);
714148260d0585 Sergio Aguirre   2011-01-24  70  	ISP5_PRINT_REGISTER(iss, CTRL);
714148260d0585 Sergio Aguirre   2011-01-24  71  	ISP5_PRINT_REGISTER(iss, IRQSTATUS(0));
714148260d0585 Sergio Aguirre   2011-01-24  72  	ISP5_PRINT_REGISTER(iss, IRQENABLE_SET(0));
714148260d0585 Sergio Aguirre   2011-01-24  73  	ISP5_PRINT_REGISTER(iss, IRQENABLE_CLR(0));
714148260d0585 Sergio Aguirre   2011-01-24  74  
714148260d0585 Sergio Aguirre   2011-01-24  75  	dev_dbg(iss->dev, "-----------------------------------------------\n");
714148260d0585 Sergio Aguirre   2011-01-24  76  }
714148260d0585 Sergio Aguirre   2011-01-24  77  

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

Download attachment ".config.gz" of type "application/gzip" (54268 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ