* [akpm-mm:mm-unstable 300/300] include/linux/mmdebug.h:114:35: error: expected expression before 'do'
@ 2024-04-04 11:31 kernel test robot
2024-04-04 17:53 ` Andrew Morton
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2024-04-04 11:31 UTC (permalink / raw)
To: Andrew Morton; +Cc: oe-kbuild-all, Linux Memory Management List, Dan Schatzberg
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
head: e04f729678f630b7304f9a8d5d22819fe589681a
commit: e04f729678f630b7304f9a8d5d22819fe589681a [300/300] __mod_memcg_lruvec_state(): enhance diagnostics
config: arm64-defconfig (https://download.01.org/0day-ci/archive/20240404/202404041924.UiccBz3l-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240404/202404041924.UiccBz3l-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/202404041924.UiccBz3l-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/arm64/include/asm/memory.h:213,
from arch/arm64/include/asm/page.h:46,
from include/linux/page_counter.h:8,
from mm/memcontrol.c:28:
mm/memcontrol.c: In function '__mod_memcg_lruvec_state':
>> include/linux/mmdebug.h:114:35: error: expected expression before 'do'
114 | #define VM_WARN_ON_IRQS_ENABLED() do { } while (0)
| ^~
mm/memcontrol.c:867:29: note: in expansion of macro 'VM_WARN_ON_IRQS_ENABLED'
867 | if (VM_WARN_ON_IRQS_ENABLED())
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +/do +114 include/linux/mmdebug.h
59ea746337c69f Jiri Slaby 2008-06-12 110
a738e9bad6030d Thomas Gleixner 2022-08-25 111 #ifdef CONFIG_DEBUG_VM_IRQSOFF
a738e9bad6030d Thomas Gleixner 2022-08-25 112 #define VM_WARN_ON_IRQS_ENABLED() WARN_ON_ONCE(!irqs_disabled())
a738e9bad6030d Thomas Gleixner 2022-08-25 113 #else
a738e9bad6030d Thomas Gleixner 2022-08-25 @114 #define VM_WARN_ON_IRQS_ENABLED() do { } while (0)
a738e9bad6030d Thomas Gleixner 2022-08-25 115 #endif
a738e9bad6030d Thomas Gleixner 2022-08-25 116
:::::: The code at line 114 was first introduced by commit
:::::: a738e9bad6030d4fd33bfd7db3399a250b7e94d8 mm/debug: Provide VM_WARN_ON_IRQS_ENABLED()
:::::: TO: Thomas Gleixner <tglx@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [akpm-mm:mm-unstable 300/300] include/linux/mmdebug.h:114:35: error: expected expression before 'do'
2024-04-04 11:31 [akpm-mm:mm-unstable 300/300] include/linux/mmdebug.h:114:35: error: expected expression before 'do' kernel test robot
@ 2024-04-04 17:53 ` Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2024-04-04 17:53 UTC (permalink / raw)
To: kernel test robot
Cc: oe-kbuild-all, Linux Memory Management List, Dan Schatzberg
On Thu, 4 Apr 2024 19:31:40 +0800 kernel test robot <lkp@intel.com> wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
> head: e04f729678f630b7304f9a8d5d22819fe589681a
> commit: e04f729678f630b7304f9a8d5d22819fe589681a [300/300] __mod_memcg_lruvec_state(): enhance diagnostics
> config: arm64-defconfig (https://download.01.org/0day-ci/archive/20240404/202404041924.UiccBz3l-lkp@intel.com/config)
> compiler: aarch64-linux-gcc (GCC) 13.2.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240404/202404041924.UiccBz3l-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/202404041924.UiccBz3l-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
> In file included from arch/arm64/include/asm/memory.h:213,
> from arch/arm64/include/asm/page.h:46,
> from include/linux/page_counter.h:8,
> from mm/memcontrol.c:28:
> mm/memcontrol.c: In function '__mod_memcg_lruvec_state':
> >> include/linux/mmdebug.h:114:35: error: expected expression before 'do'
> 114 | #define VM_WARN_ON_IRQS_ENABLED() do { } while (0)
> | ^~
> mm/memcontrol.c:867:29: note: in expansion of macro 'VM_WARN_ON_IRQS_ENABLED'
> 867 | if (VM_WARN_ON_IRQS_ENABLED())
> | ^~~~~~~~~~~~~~~~~~~~~~~
Thanks. Macro is annoying.
--- a/mm/memcontrol.c~__mod_memcg_lruvec_state-enhance-diagnostics-fix
+++ a/mm/memcontrol.c
@@ -864,7 +864,8 @@ void __mod_memcg_lruvec_state(struct lru
pr_warn("stat item index: %d\n", idx);
break;
default:
- if (VM_WARN_ON_IRQS_ENABLED())
+ VM_WARN_ON_IRQS_ENABLED();
+ if (!irqs_disabled())
pr_warn("stat item index: %d\n", idx);
}
}
_
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-04 17:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-04 11:31 [akpm-mm:mm-unstable 300/300] include/linux/mmdebug.h:114:35: error: expected expression before 'do' kernel test robot
2024-04-04 17:53 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox