Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Mario Limonciello <superm1@kernel.org>,
	mario.limonciello@amd.com, rafael@kernel.org, pavel@kernel.org,
	len.brown@intel.com
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	linux-pm@vger.kernel.org
Subject: Re: [PATCH v2] PM: hibernate: Explicitly set `PM_SUSPEND_MAX` at hibernate entry
Date: Fri, 9 May 2025 16:22:07 +0800	[thread overview]
Message-ID: <202505091658.9UZSCXpa-lkp@intel.com> (raw)
In-Reply-To: <20250508211822.2698678-1-superm1@kernel.org>

Hi Mario,

kernel test robot noticed the following build errors:

[auto build test ERROR on amd-pstate/linux-next]
[also build test ERROR on amd-pstate/bleeding-edge linus/master v6.15-rc5 next-20250508]
[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#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Mario-Limonciello/PM-hibernate-Explicitly-set-PM_SUSPEND_MAX-at-hibernate-entry/20250509-051901
base:   https://git.kernel.org/pub/scm/linux/kernel/git/superm1/linux.git linux-next
patch link:    https://lore.kernel.org/r/20250508211822.2698678-1-superm1%40kernel.org
patch subject: [PATCH v2] PM: hibernate: Explicitly set `PM_SUSPEND_MAX` at hibernate entry
config: i386-buildonly-randconfig-004-20250509 (https://download.01.org/0day-ci/archive/20250509/202505091658.9UZSCXpa-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250509/202505091658.9UZSCXpa-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/202505091658.9UZSCXpa-lkp@intel.com/

All errors (new ones prefixed by >>):

>> kernel/power/main.c:23:17: error: expected ')'
      23 | suspend_state_t pm_suspend_target_state;
         |                 ^
   include/linux/suspend.h:148:34: note: expanded from macro 'pm_suspend_target_state'
     148 | #define pm_suspend_target_state (PM_SUSPEND_ON)
         |                                  ^
   include/linux/suspend.h:36:51: note: expanded from macro 'PM_SUSPEND_ON'
      36 | #define PM_SUSPEND_ON           ((__force suspend_state_t) 0)
         |                                                            ^
   kernel/power/main.c:23:17: note: to match this '('
   include/linux/suspend.h:148:34: note: expanded from macro 'pm_suspend_target_state'
     148 | #define pm_suspend_target_state (PM_SUSPEND_ON)
         |                                  ^
   include/linux/suspend.h:36:24: note: expanded from macro 'PM_SUSPEND_ON'
      36 | #define PM_SUSPEND_ON           ((__force suspend_state_t) 0)
         |                                 ^
>> kernel/power/main.c:23:17: error: redefinition of 'suspend_state_t' as different kind of symbol
      23 | suspend_state_t pm_suspend_target_state;
         |                 ^
   include/linux/suspend.h:148:34: note: expanded from macro 'pm_suspend_target_state'
     148 | #define pm_suspend_target_state (PM_SUSPEND_ON)
         |                                  ^
   include/linux/suspend.h:36:34: note: expanded from macro 'PM_SUSPEND_ON'
      36 | #define PM_SUSPEND_ON           ((__force suspend_state_t) 0)
         |                                           ^
   include/linux/suspend.h:34:23: note: previous definition is here
      34 | typedef int __bitwise suspend_state_t;
         |                       ^
   kernel/power/main.c:24:19: error: expected ')'
      24 | EXPORT_SYMBOL_GPL(pm_suspend_target_state);
         |                   ^
   include/linux/suspend.h:148:34: note: expanded from macro 'pm_suspend_target_state'
     148 | #define pm_suspend_target_state (PM_SUSPEND_ON)
         |                                  ^
   include/linux/suspend.h:36:51: note: expanded from macro 'PM_SUSPEND_ON'
      36 | #define PM_SUSPEND_ON           ((__force suspend_state_t) 0)
         |                                                            ^
   kernel/power/main.c:24:19: note: to match this '('
   include/linux/suspend.h:148:34: note: expanded from macro 'pm_suspend_target_state'
     148 | #define pm_suspend_target_state (PM_SUSPEND_ON)
         |                                  ^
   include/linux/suspend.h:36:24: note: expanded from macro 'PM_SUSPEND_ON'
      36 | #define PM_SUSPEND_ON           ((__force suspend_state_t) 0)
         |                                 ^
   kernel/power/main.c:24:19: error: redefinition of 'suspend_state_t' as different kind of symbol
      24 | EXPORT_SYMBOL_GPL(pm_suspend_target_state);
         |                   ^
   include/linux/suspend.h:148:34: note: expanded from macro 'pm_suspend_target_state'
     148 | #define pm_suspend_target_state (PM_SUSPEND_ON)
         |                                  ^
   include/linux/suspend.h:36:34: note: expanded from macro 'PM_SUSPEND_ON'
      36 | #define PM_SUSPEND_ON           ((__force suspend_state_t) 0)
         |                                           ^
   include/linux/suspend.h:34:23: note: previous definition is here
      34 | typedef int __bitwise suspend_state_t;
         |                       ^
>> kernel/power/main.c:24:1: error: pasting formed '__addressable_(', an invalid preprocessing token
      24 | EXPORT_SYMBOL_GPL(pm_suspend_target_state);
         | ^
   include/linux/export.h:84:33: note: expanded from macro 'EXPORT_SYMBOL_GPL'
      84 | #define EXPORT_SYMBOL_GPL(sym)          _EXPORT_SYMBOL(sym, "GPL")
         |                                         ^
   include/linux/export.h:80:38: note: expanded from macro '_EXPORT_SYMBOL'
      80 | #define _EXPORT_SYMBOL(sym, license)    __EXPORT_SYMBOL(sym, license, "")
         |                                         ^
   include/linux/export.h:71:2: note: expanded from macro '__EXPORT_SYMBOL'
      71 |         __ADDRESSABLE(sym)                                      \
         |         ^
   note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler.h:286:14: note: expanded from macro '___ADDRESSABLE'
     286 |         __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)(uintptr_t)&sym;
         |                     ^
   include/linux/compiler_types.h:84:22: note: expanded from macro '__PASTE'
      84 | #define __PASTE(a,b) ___PASTE(a,b)
         |                      ^
   include/linux/compiler_types.h:83:24: note: expanded from macro '___PASTE'
      83 | #define ___PASTE(a,b) a##b
         |                        ^
   kernel/power/main.c:24:19: error: expected ')'
      24 | EXPORT_SYMBOL_GPL(pm_suspend_target_state);
         |                   ^
   include/linux/suspend.h:148:34: note: expanded from macro 'pm_suspend_target_state'
     148 | #define pm_suspend_target_state (PM_SUSPEND_ON)
         |                                  ^
   include/linux/suspend.h:36:51: note: expanded from macro 'PM_SUSPEND_ON'
      36 | #define PM_SUSPEND_ON           ((__force suspend_state_t) 0)
         |                                                            ^
   kernel/power/main.c:24:19: note: to match this '('
   include/linux/suspend.h:148:34: note: expanded from macro 'pm_suspend_target_state'
     148 | #define pm_suspend_target_state (PM_SUSPEND_ON)
         |                                  ^
   include/linux/suspend.h:36:24: note: expanded from macro 'PM_SUSPEND_ON'
      36 | #define PM_SUSPEND_ON           ((__force suspend_state_t) 0)
         |                                 ^
>> kernel/power/main.c:24:1: error: pasting formed ')417', an invalid preprocessing token
      24 | EXPORT_SYMBOL_GPL(pm_suspend_target_state);
         | ^
   include/linux/export.h:84:33: note: expanded from macro 'EXPORT_SYMBOL_GPL'
      84 | #define EXPORT_SYMBOL_GPL(sym)          _EXPORT_SYMBOL(sym, "GPL")
         |                                         ^
   include/linux/export.h:80:38: note: expanded from macro '_EXPORT_SYMBOL'
      80 | #define _EXPORT_SYMBOL(sym, license)    __EXPORT_SYMBOL(sym, license, "")
         |                                         ^
   include/linux/export.h:71:2: note: expanded from macro '__EXPORT_SYMBOL'
      71 |         __ADDRESSABLE(sym)                                      \
         |         ^
   note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler.h:166:29: note: expanded from macro '__UNIQUE_ID'
     166 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
         |                             ^
   include/linux/compiler_types.h:84:22: note: expanded from macro '__PASTE'
      84 | #define __PASTE(a,b) ___PASTE(a,b)
         |                      ^
   include/linux/compiler_types.h:83:24: note: expanded from macro '___PASTE'
      83 | #define ___PASTE(a,b) a##b
         |                        ^
>> kernel/power/main.c:24:19: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
      24 | EXPORT_SYMBOL_GPL(pm_suspend_target_state);
         |                   ^
   include/linux/suspend.h:148:34: note: expanded from macro 'pm_suspend_target_state'
     148 | #define pm_suspend_target_state (PM_SUSPEND_ON)
         |                                  ^
   include/linux/suspend.h:36:34: note: expanded from macro 'PM_SUSPEND_ON'
      36 | #define PM_SUSPEND_ON           ((__force suspend_state_t) 0)
         |                                           ^
>> kernel/power/main.c:24:1: error: expected function body after function declarator
      24 | EXPORT_SYMBOL_GPL(pm_suspend_target_state);
         | ^
   include/linux/export.h:84:33: note: expanded from macro 'EXPORT_SYMBOL_GPL'
      84 | #define EXPORT_SYMBOL_GPL(sym)          _EXPORT_SYMBOL(sym, "GPL")
         |                                         ^
   include/linux/export.h:80:38: note: expanded from macro '_EXPORT_SYMBOL'
      80 | #define _EXPORT_SYMBOL(sym, license)    __EXPORT_SYMBOL(sym, license, "")
         |                                         ^
   include/linux/export.h:71:2: note: expanded from macro '__EXPORT_SYMBOL'
      71 |         __ADDRESSABLE(sym)                                      \
         |         ^
   note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler.h:286:2: note: expanded from macro '___ADDRESSABLE'
     286 |         __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)(uintptr_t)&sym;
         |         ^
   include/linux/compiler.h:166:68: note: expanded from macro '__UNIQUE_ID'
     166 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
         |                                                                    ^
   <scratch space>:210:1: note: expanded from here
     210 | 417
         | ^
>> kernel/power/main.c:24:1: error: pasting formed '__export_symbol_(', an invalid preprocessing token
   include/linux/export.h:84:33: note: expanded from macro 'EXPORT_SYMBOL_GPL'
      84 | #define EXPORT_SYMBOL_GPL(sym)          _EXPORT_SYMBOL(sym, "GPL")
         |                                         ^
   include/linux/export.h:80:38: note: expanded from macro '_EXPORT_SYMBOL'
      80 | #define _EXPORT_SYMBOL(sym, license)    __EXPORT_SYMBOL(sym, license, "")
         |                                         ^
   include/linux/export.h:73:18: note: expanded from macro '__EXPORT_SYMBOL'
      73 |         asm(__stringify(___EXPORT_SYMBOL(sym, license, ns)))
         |                         ^
   include/linux/export.h:29:18: note: expanded from macro '___EXPORT_SYMBOL'
      29 |         __export_symbol_##sym:                  ASM_NL  \
         |                         ^
   10 errors generated.


vim +23 kernel/power/main.c

    22	
  > 23	suspend_state_t pm_suspend_target_state;
  > 24	EXPORT_SYMBOL_GPL(pm_suspend_target_state);
    25	

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

           reply	other threads:[~2025-05-09  8:22 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20250508211822.2698678-1-superm1@kernel.org>]

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=202505091658.9UZSCXpa-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=len.brown@intel.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=mario.limonciello@amd.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pavel@kernel.org \
    --cc=rafael@kernel.org \
    --cc=superm1@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox