All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android12-5.10 11720/13800] kernel/module.c:4792:6: warning: no previous prototype for function 'android_debug_for_each_module'
@ 2021-12-01 14:05 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-01 14:05 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2866 bytes --]

Hi Elliot,

FYI, the error/warning still remains.

tree:   https://android.googlesource.com/kernel/common android12-5.10
head:   f0a7e5394bd1776b115217b2e8bc04011933f27a
commit: 0bb433e0140efece0a1ce8124283cb68fda33a3f [11720/13800] ANDROID: debug_symbols: Add android_debug_for_each_module
config: x86_64-randconfig-a016-20211201 (https://download.01.org/0day-ci/archive/20211201/202112012249.hxk9kpZB-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 25eb7fa01d7ebbe67648ea03841cda55b4239ab2)
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
        git remote add android-common https://android.googlesource.com/kernel/common
        git fetch --no-tags android-common android12-5.10
        git checkout 0bb433e0140efece0a1ce8124283cb68fda33a3f
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

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

All warnings (new ones prefixed by >>):

>> kernel/module.c:4792:6: warning: no previous prototype for function 'android_debug_for_each_module' [-Wmissing-prototypes]
   void android_debug_for_each_module(int (*fn)(const char *mod_name, void *mod_addr, void *data),
        ^
   kernel/module.c:4792:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void android_debug_for_each_module(int (*fn)(const char *mod_name, void *mod_addr, void *data),
   ^
   static 
   1 warning generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for SND_PCM_IEC958
   Depends on SOUND && !UML && SND
   Selected by
   - GKI_HIDDEN_SND_SOC_CONFIGS
   WARNING: unmet direct dependencies detected for BALLOON_COMPACTION
   Depends on COMPACTION && MEMORY_BALLOON
   Selected by
   - GKI_HIDDEN_MM_CONFIGS


vim +/android_debug_for_each_module +4792 kernel/module.c

  4790	
  4791	#ifdef CONFIG_ANDROID_DEBUG_SYMBOLS
> 4792	void android_debug_for_each_module(int (*fn)(const char *mod_name, void *mod_addr, void *data),
  4793		void *data)
  4794	{
  4795		struct module *module;
  4796	
  4797		preempt_disable();
  4798		list_for_each_entry_rcu(module, &modules, list) {
  4799			if (fn(module->name, module->core_layout.base, data))
  4800				goto out;
  4801		}
  4802	out:
  4803		preempt_enable();
  4804	}
  4805	EXPORT_SYMBOL_GPL(android_debug_for_each_module);
  4806	#endif
  4807	

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

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

only message in thread, other threads:[~2021-12-01 14:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-01 14:05 [android-common:android12-5.10 11720/13800] kernel/module.c:4792:6: warning: no previous prototype for function 'android_debug_for_each_module' 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.