[tj-cgroup:tmp 13/16] include/asm-generic/rwonce.h:59:1: error: expected ';' before 'do'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git tmp
head:   153926208f7777e220dec1156a44a5fa06623ac1
commit: c359863bfd828fd03999c17d9bad87e767708fa0 [13/16] mm: Add transformation message for per-memcg swappiness
config: sparc64-randconfig-002-20250312 (https://download.01.org/0day-ci/archive/20250312/202503120719.47sOvfVx-lkp@xxxxxxxxx/config)
compiler: sparc64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250312/202503120719.47sOvfVx-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503120719.47sOvfVx-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   In file included from ./arch/sparc/include/generated/asm/rwonce.h:1,
                    from include/linux/compiler.h:339,
                    from include/asm-generic/bug.h:5,
                    from arch/sparc/include/asm/bug.h:25,
                    from include/linux/bug.h:5,
                    from include/linux/thread_info.h:13,
                    from arch/sparc/include/asm/current.h:15,
                    from include/linux/sched.h:12,
                    from include/linux/cgroup.h:12,
                    from include/linux/memcontrol.h:13,
                    from mm/memcontrol-v1.c:3:
   mm/memcontrol-v1.c: In function 'mem_cgroup_swappiness_write':
>> include/asm-generic/rwonce.h:59:1: error: expected ';' before 'do'
      59 | do {                                                                    \
         | ^~
   mm/memcontrol-v1.c:1861:17: note: in expansion of macro 'WRITE_ONCE'
    1861 |                 WRITE_ONCE(memcg->swappiness, val);
         |                 ^~~~~~~~~~


vim +59 include/asm-generic/rwonce.h

e506ea451254ab1 Will Deacon 2019-10-15  57  
e506ea451254ab1 Will Deacon 2019-10-15  58  #define WRITE_ONCE(x, val)						\
e506ea451254ab1 Will Deacon 2019-10-15 @59  do {									\
e506ea451254ab1 Will Deacon 2019-10-15  60  	compiletime_assert_rwonce_type(x);				\
e506ea451254ab1 Will Deacon 2019-10-15  61  	__WRITE_ONCE(x, val);						\
e506ea451254ab1 Will Deacon 2019-10-15  62  } while (0)
e506ea451254ab1 Will Deacon 2019-10-15  63  

:::::: The code at line 59 was first introduced by commit
:::::: e506ea451254ab17e0bf918ca36232fec2a9b10c compiler.h: Split {READ,WRITE}_ONCE definitions out into rwonce.h

:::::: TO: Will Deacon <will@xxxxxxxxxx>
:::::: CC: Will Deacon <will@xxxxxxxxxx>

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux