All of lore.kernel.org
 help / color / mirror / Atom feed
* [plbossart-sound:sdw/start-BRA-support 45/51] drivers/soundwire/cadence_master.c:1947:14: warning: no previous prototype for function 'sdw_write_pdi1_buffer_size'
@ 2023-11-21  2:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-11-21  2:32 UTC (permalink / raw)
  To: Pierre-Louis Bossart; +Cc: oe-kbuild-all

tree:   https://github.com/plbossart/sound sdw/start-BRA-support
head:   19d606a708d272594ed12ea8c4addd3392d0fe99
commit: 266c5b9196958d795f1a201e95222eec2a7bd6f6 [45/51] soundwire: cadence: add BTP/BRA helpers to format data
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20231121/202311211056.ntg6EYFM-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231121/202311211056.ntg6EYFM-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311211056.ntg6EYFM-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/soundwire/cadence_master.c:1947:14: warning: no previous prototype for function 'sdw_write_pdi1_buffer_size' [-Wmissing-prototypes]
    1947 | unsigned int sdw_write_pdi1_buffer_size(unsigned int actual_data_size)
         |              ^
   drivers/soundwire/cadence_master.c:1947:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    1947 | unsigned int sdw_write_pdi1_buffer_size(unsigned int actual_data_size)
         | ^
         | static 
   1 warning generated.


vim +/sdw_write_pdi1_buffer_size +1947 drivers/soundwire/cadence_master.c

  1946	
> 1947	unsigned int sdw_write_pdi1_buffer_size(unsigned int actual_data_size)
  1948	{
  1949		unsigned int total;
  1950	
  1951		total = SDW_CDNS_BRA_HDR_RESP +
  1952			SDW_CDNS_BRA_HDR_RESP_PAD;
  1953	
  1954		total += SDW_CDNS_BRA_FOOTER_RESP +
  1955			SDW_CDNS_BRA_FOOTER_RESP_PAD;
  1956	
  1957		return total * 2;
  1958	}
  1959	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-21  2:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-21  2:32 [plbossart-sound:sdw/start-BRA-support 45/51] drivers/soundwire/cadence_master.c:1947:14: warning: no previous prototype for function 'sdw_write_pdi1_buffer_size' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.