All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Zichar Zhang <zichar.zhang@linaro.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org
Subject: Re: [PATCH 1/1] [RFC] wakeup_reason: Add infrastructure to log and report why the system resumed from suspend.
Date: Fri, 28 Jan 2022 16:45:29 +0800	[thread overview]
Message-ID: <202201281645.eC7tWb3B-lkp@intel.com> (raw)
In-Reply-To: <20220128045522.3505336-1-zichar.zhang@linaro.org>

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH 1/1] [RFC] wakeup_reason: Add infrastructure to log and report why the system resumed from suspend.
Date: Fri, 28 Jan 2022 16:45:29 +0800	[thread overview]
Message-ID: <202201281645.eC7tWb3B-lkp@intel.com> (raw)
In-Reply-To: <20220128045522.3505336-1-zichar.zhang@linaro.org>

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

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(a)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(a)lists.01.org

  parent reply	other threads:[~2022-01-28  8:46 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-10 18:49 [RFC] PM: suspend: Upstreaming wakeup reason capture support Kelly Rossmoyer
2022-01-24 17:37 ` John Stultz
2022-01-26  5:09   ` Zichar Zhang
2022-01-28  4:55     ` [PATCH 1/1] [RFC] wakeup_reason: Add infrastructure to log and report why the system resumed from suspend Zichar Zhang
2022-01-28  6:56       ` kernel test robot
2022-01-28  7:01       ` Greg KH
2022-01-28  8:43         ` Zichar Zhang
2022-01-28  8:45       ` kernel test robot [this message]
2022-01-28  8:45         ` kernel test robot
2022-01-28  9:32       ` Lee Jones
2022-01-29  7:52     ` [RFC] PM: suspend: Upstreaming wakeup reason capture support Kelly Rossmoyer
2022-01-27 19:54 ` Rafael J. Wysocki
2022-01-27 20:10   ` Rafael J. Wysocki
2022-01-29  8:26     ` Kelly Rossmoyer
2022-01-30 14:46       ` Rafael J. Wysocki
2022-02-02  7:59         ` Kelly Rossmoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202201281645.eC7tWb3B-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=llvm@lists.linux.dev \
    --cc=zichar.zhang@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.