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>] [day] [month] [year] [list]
Message-ID: <202204061929.5OKjyPph-lkp@intel.com>
Date:   Wed, 6 Apr 2022 19:53:28 +0800
From:   kernel test robot <lkp@...el.com>
To:     Walker Chen <walker.chen@...rfivetech.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Emil Renner Berthing <kernel@...il.dk>,
        Michael Yan <michael.yan@...rfivetech.com>,
        Jenny Zhang <jenny.zhang@...rfivetech.com>
Subject: [esmil:visionfive 39/55] sound/soc/starfive/pwmdac.h:145:6: warning:
 no previous prototype for 'sf_pwmdac_pcm_push_tx'

tree:   https://github.com/esmil/linux visionfive
head:   7ff84520cb688edd6028a4ac3de3ed684eb22794
commit: 46f456a9a328b4f2904920484bb3cf5afb654cdc [39/55] ASoC: starfive: Add StarFive JH7100 audio drivers
config: h8300-randconfig-r004-20220406 (https://download.01.org/0day-ci/archive/20220406/202204061929.5OKjyPph-lkp@intel.com/config)
compiler: h8300-linux-gcc (GCC) 11.2.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/esmil/linux/commit/46f456a9a328b4f2904920484bb3cf5afb654cdc
        git remote add esmil https://github.com/esmil/linux
        git fetch --no-tags esmil visionfive
        git checkout 46f456a9a328b4f2904920484bb3cf5afb654cdc
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=h8300 SHELL=/bin/bash sound/soc/

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

All warnings (new ones prefixed by >>):

   In file included from include/linux/err.h:5,
                    from include/linux/clk.h:12,
                    from sound/soc/starfive/pwmdac.c:7:
   include/linux/scatterlist.h: In function 'sg_set_buf':
   include/asm-generic/page.h:89:51: warning: ordered comparison of pointer with null pointer [-Wextra]
      89 | #define virt_addr_valid(kaddr)  (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
         |                                                   ^~
   include/linux/compiler.h:78:45: note: in definition of macro 'unlikely'
      78 | # define unlikely(x)    __builtin_expect(!!(x), 0)
         |                                             ^
   include/linux/scatterlist.h:160:9: note: in expansion of macro 'BUG_ON'
     160 |         BUG_ON(!virt_addr_valid(buf));
         |         ^~~~~~
   include/linux/scatterlist.h:160:17: note: in expansion of macro 'virt_addr_valid'
     160 |         BUG_ON(!virt_addr_valid(buf));
         |                 ^~~~~~~~~~~~~~~
   In file included from sound/soc/starfive/pwmdac.c:19:
   sound/soc/starfive/pwmdac.h: At top level:
>> sound/soc/starfive/pwmdac.h:145:6: warning: no previous prototype for 'sf_pwmdac_pcm_push_tx' [-Wmissing-prototypes]
     145 | void sf_pwmdac_pcm_push_tx(struct sf_pwmdac_dev *dev) { }
         |      ^~~~~~~~~~~~~~~~~~~~~
>> sound/soc/starfive/pwmdac.h:146:6: warning: no previous prototype for 'sf_pwmdac_pcm_pop_rx' [-Wmissing-prototypes]
     146 | void sf_pwmdac_pcm_pop_rx(struct sf_pwmdac_dev *dev) { }
         |      ^~~~~~~~~~~~~~~~~~~~
>> sound/soc/starfive/pwmdac.h:147:5: warning: no previous prototype for 'sf_pwmdac_pcm_register' [-Wmissing-prototypes]
     147 | int sf_pwmdac_pcm_register(struct platform_device *pdev)
         |     ^~~~~~~~~~~~~~~~~~~~~~

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for DRM_GEM_SHMEM_HELPER
   Depends on HAS_IOMEM && DRM && MMU
   Selected by
   - DRM_SSD130X && HAS_IOMEM && DRM


vim +/sf_pwmdac_pcm_push_tx +145 sound/soc/starfive/pwmdac.h

   137	
   138	
   139	
   140	#if IS_ENABLED(CONFIG_SND_STARFIVE_PWMDAC_PCM)
   141	void sf_pwmdac_pcm_push_tx(struct sf_pwmdac_dev *dev);
   142	void sf_pwmdac_pcm_pop_rx(struct sf_pwmdac_dev *dev);
   143	int sf_pwmdac_pcm_register(struct platform_device *pdev);
   144	#else
 > 145	void sf_pwmdac_pcm_push_tx(struct sf_pwmdac_dev *dev) { }
 > 146	void sf_pwmdac_pcm_pop_rx(struct sf_pwmdac_dev *dev) { }
 > 147	int sf_pwmdac_pcm_register(struct platform_device *pdev)
   148	{
   149		return -EINVAL;
   150	}
   151	#endif
   152	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ