llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 1/1] [RFC] wakeup_reason: Add infrastructure to log and report why the system resumed from suspend.
       [not found] <20220128045522.3505336-1-zichar.zhang@linaro.org>
@ 2022-01-28  8:45 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-28  8:45 UTC (permalink / raw)
  To: Zichar Zhang; +Cc: llvm, kbuild-all

Hi Zichar,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on rafael-pm/linux-next]
[also build test WARNING on linux/master linus/master v5.17-rc1 next-20220127]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Zichar-Zhang/wakeup_reason-Add-infrastructure-to-log-and-report-why-the-system-resumed-from-suspend/20220128-125627
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
config: i386-randconfig-a014-20220124 (https://download.01.org/0day-ci/archive/20220128/202201281645.eC7tWb3B-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 33b45ee44b1f32ffdbc995e6fec806271b4b3ba4)
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/b932c9637e3e3a14497ff60caedfc67608d93c13
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Zichar-Zhang/wakeup_reason-Add-infrastructure-to-log-and-report-why-the-system-resumed-from-suspend/20220128-125627
        git checkout b932c9637e3e3a14497ff60caedfc67608d93c13
        # 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=i386 SHELL=/bin/bash kernel/power/

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 >>):

   In file included from kernel/power/main.c:19:
>> include/linux/wakeup_reason.h:29:9: warning: no previous prototype for function 'log_ws_wakeup_reason' [-Wmissing-prototypes]
   ssize_t log_ws_wakeup_reason(void) { }
           ^
   include/linux/wakeup_reason.h:29:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   ssize_t log_ws_wakeup_reason(void) { }
   ^
   static 
   include/linux/wakeup_reason.h:29:38: error: non-void function does not return a value [-Werror,-Wreturn-type]
   ssize_t log_ws_wakeup_reason(void) { }
                                        ^
>> include/linux/wakeup_reason.h:30:9: warning: no previous prototype for function 'log_irq_wakeup_reason' [-Wmissing-prototypes]
   ssize_t log_irq_wakeup_reason(unsigned int irq_number) { }
           ^
   include/linux/wakeup_reason.h:30:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   ssize_t log_irq_wakeup_reason(unsigned int irq_number) { }
   ^
   static 
   include/linux/wakeup_reason.h:30:58: error: non-void function does not return a value [-Werror,-Wreturn-type]
   ssize_t log_irq_wakeup_reason(unsigned int irq_number) { }
                                                            ^
>> include/linux/wakeup_reason.h:31:6: warning: no previous prototype for function 'clear_wakeup_reason' [-Wmissing-prototypes]
   void clear_wakeup_reason(void) { }
        ^
   include/linux/wakeup_reason.h:31:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void clear_wakeup_reason(void) { }
   ^
   static 
>> include/linux/wakeup_reason.h:32:9: warning: no previous prototype for function 'last_wakeup_reason_get' [-Wmissing-prototypes]
   ssize_t last_wakeup_reason_get(char *buf, ssize_t max) { }
           ^
   include/linux/wakeup_reason.h:32:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   ssize_t last_wakeup_reason_get(char *buf, ssize_t max) { }
   ^
   static 
   include/linux/wakeup_reason.h:32:58: error: non-void function does not return a value [-Werror,-Wreturn-type]
   ssize_t last_wakeup_reason_get(char *buf, ssize_t max) { }
                                                            ^
   4 warnings and 3 errors generated.


vim +/log_ws_wakeup_reason +29 include/linux/wakeup_reason.h

    22	
    23	#ifdef CONFIG_SUSPEND
    24	ssize_t log_ws_wakeup_reason(void);
    25	ssize_t log_irq_wakeup_reason(unsigned int irq_number);
    26	void clear_wakeup_reason(void);
    27	ssize_t last_wakeup_reason_get(char *buf, ssize_t max);
    28	#else
  > 29	ssize_t log_ws_wakeup_reason(void) { }
  > 30	ssize_t log_irq_wakeup_reason(unsigned int irq_number) { }
  > 31	void clear_wakeup_reason(void) { }
  > 32	ssize_t last_wakeup_reason_get(char *buf, ssize_t max) { }
    33	#endif
    34	

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

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

only message in thread, other threads:[~2022-01-28  8:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20220128045522.3505336-1-zichar.zhang@linaro.org>
2022-01-28  8:45 ` [PATCH 1/1] [RFC] wakeup_reason: Add infrastructure to log and report why the system resumed from suspend kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).