🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by kernel test robot Fri, 09 Oct 2026 23:47
Re: [PATCH net] udp_tunnel: drop packets when hibernating
#1515
Author: kernel test robot
Date: Fri, 09 Oct 2026 23:47
457 lines
33956 bytes
Hi Jason,

kernel test robot noticed the following build warnings:

[auto build test WARNING on net/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Jason-A-Donenfeld/udp_tunnel-drop-packets-when-hibernating/20261008-144021
base:   net/main
patch link:    https://lore.kernel.org/r/20261008124106.665014-1-Jason%40zx2c4.com
patch subject: [PATCH net] udp_tunnel: drop packets when hibernating
config: arm64-randconfig-1000-20261010 (https://download.01.org/0day-ci/archive/20261010/202610100745.bqMCEIml-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261010/202610100745.bqMCEIml-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/202610100745.bqMCEIml-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/char/virtio_console.c:636:33: note: in expansion of macro 'pm_freezing'
     if (smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
                                    ^~~~~~~~~~~
   include/linux/freezer.h:79:21: error: expected identifier before '(' token
    #define pm_freezing (false)
                        ^
   include/linux/compiler_types.h:682:9: note: in definition of macro '__compiletime_assert'
      if (!(condition))     \
            ^~~~~~~~~
   include/linux/compiler_types.h:702:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:705:2: note: in expansion of macro 'compiletime_assert'
     compiletime_assert(__native_word(t),    \
     ^~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:705:21: note: in expansion of macro '__native_word'
     compiletime_assert(__native_word(t),    \
                        ^~~~~~~~~~~~~
   arch/arm64/include/asm/barrier.h:169:2: note: in expansion of macro 'compiletime_assert_atomic_type'
     compiletime_assert_atomic_type(*p);    \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/barrier.h:176:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(p)
                                ^~~~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:636:6: note: in expansion of macro 'smp_load_acquire'
     if (smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:636:33: note: in expansion of macro 'pm_freezing'
     if (smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
                                    ^~~~~~~~~~~
   include/linux/freezer.h:79:21: error: expected identifier before '(' token
    #define pm_freezing (false)
                        ^
   include/linux/compiler_types.h:682:9: note: in definition of macro '__compiletime_assert'
      if (!(condition))     \
            ^~~~~~~~~
   include/linux/compiler_types.h:702:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:705:2: note: in expansion of macro 'compiletime_assert'
     compiletime_assert(__native_word(t),    \
     ^~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:705:21: note: in expansion of macro '__native_word'
     compiletime_assert(__native_word(t),    \
                        ^~~~~~~~~~~~~
   arch/arm64/include/asm/barrier.h:169:2: note: in expansion of macro 'compiletime_assert_atomic_type'
     compiletime_assert_atomic_type(*p);    \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/barrier.h:176:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(p)
                                ^~~~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:636:6: note: in expansion of macro 'smp_load_acquire'
     if (smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:636:33: note: in expansion of macro 'pm_freezing'
     if (smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
                                    ^~~~~~~~~~~
   include/linux/freezer.h:79:21: error: expected identifier before '(' token
    #define pm_freezing (false)
                        ^
   include/linux/compiler_types.h:682:9: note: in definition of macro '__compiletime_assert'
      if (!(condition))     \
            ^~~~~~~~~
   include/linux/compiler_types.h:702:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:705:2: note: in expansion of macro 'compiletime_assert'
     compiletime_assert(__native_word(t),    \
     ^~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:705:21: note: in expansion of macro '__native_word'
     compiletime_assert(__native_word(t),    \
                        ^~~~~~~~~~~~~
   arch/arm64/include/asm/barrier.h:169:2: note: in expansion of macro 'compiletime_assert_atomic_type'
     compiletime_assert_atomic_type(*p);    \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/barrier.h:176:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(p)
                                ^~~~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:636:6: note: in expansion of macro 'smp_load_acquire'
     if (smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:636:33: note: in expansion of macro 'pm_freezing'
     if (smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
                                    ^~~~~~~~~~~
   In file included from include/linux/list.h:11,
                    from include/linux/kobject.h:19,
                    from include/linux/cdev.h:5,
                    from drivers/char/virtio_console.c:7:
   include/linux/freezer.h:79:21: error: expected identifier before '(' token
    #define pm_freezing (false)
                        ^
   arch/arm64/include/asm/barrier.h:170:32: note: in definition of macro '__smp_load_acquire'
     kasan_check_read(__p, sizeof(*p));    \
                                   ^
   drivers/char/virtio_console.c:636:6: note: in expansion of macro 'smp_load_acquire'
     if (smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:636:33: note: in expansion of macro 'pm_freezing'
     if (smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
                                    ^~~~~~~~~~~
>> arch/arm64/include/asm/barrier.h:170:19: warning: passing argument 1 of 'kasan_check_read' makes pointer from integer without a cast [-Wint-conversion]
     kasan_check_read(__p, sizeof(*p));    \
                      ^~~
   include/asm-generic/barrier.h:176:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(p)
                                ^~~~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:636:6: note: in expansion of macro 'smp_load_acquire'
     if (smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   In file included from include/asm-generic/rwonce.h:26,
                    from arch/arm64/include/asm/rwonce.h:81,
                    from include/linux/compiler.h:369,
                    from include/linux/build_bug.h:5,
                    from include/linux/container_of.h:5,
                    from include/linux/list.h:5,
                    from include/linux/kobject.h:19,
                    from include/linux/cdev.h:5,
                    from drivers/char/virtio_console.c:7:
   include/linux/kasan-checks.h:40:58: note: expected 'const volatile void *' but argument is of type 'int'
    static inline bool kasan_check_read(const volatile void *p, unsigned int size)
                                        ~~~~~~~~~~~~~~~~~~~~~^
   In file included from include/linux/list.h:11,
                    from include/linux/kobject.h:19,
                    from include/linux/cdev.h:5,
                    from drivers/char/virtio_console.c:7:
   include/linux/freezer.h:79:21: error: expected identifier before '(' token
    #define pm_freezing (false)
                        ^
   arch/arm64/include/asm/barrier.h:171:18: note: in definition of macro '__smp_load_acquire'
     switch (sizeof(*p)) {      \
                     ^
   drivers/char/virtio_console.c:636:6: note: in expansion of macro 'smp_load_acquire'
     if (smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:636:33: note: in expansion of macro 'pm_freezing'
     if (smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
                                    ^~~~~~~~~~~
   arch/arm64/include/asm/barrier.h:175:11: error: invalid type argument of unary '*' (have 'int')
       : "Q" (*__p) : "memory");   \
              ^~~~
   include/asm-generic/barrier.h:176:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(p)
                                ^~~~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:636:6: note: in expansion of macro 'smp_load_acquire'
     if (smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   arch/arm64/include/asm/barrier.h:180:11: error: invalid type argument of unary '*' (have 'int')
       : "Q" (*__p) : "memory");   \
              ^~~~
   include/asm-generic/barrier.h:176:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(p)
                                ^~~~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:636:6: note: in expansion of macro 'smp_load_acquire'
     if (smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   arch/arm64/include/asm/barrier.h:185:11: error: invalid type argument of unary '*' (have 'int')
       : "Q" (*__p) : "memory");   \
              ^~~~
   include/asm-generic/barrier.h:176:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(p)
                                ^~~~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:636:6: note: in expansion of macro 'smp_load_acquire'
     if (smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   arch/arm64/include/asm/barrier.h:190:11: error: invalid type argument of unary '*' (have 'int')
       : "Q" (*__p) : "memory");   \
              ^~~~
   include/asm-generic/barrier.h:176:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(p)
                                ^~~~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:636:6: note: in expansion of macro 'smp_load_acquire'
     if (smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   include/linux/freezer.h:79:21: error: expected identifier before '(' token
    #define pm_freezing (false)
                        ^
   arch/arm64/include/asm/barrier.h:193:11: note: in definition of macro '__smp_load_acquire'
     (typeof(*p))__u.__val;      \
              ^
   drivers/char/virtio_console.c:636:6: note: in expansion of macro 'smp_load_acquire'
     if (smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:636:33: note: in expansion of macro 'pm_freezing'
     if (smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
                                    ^~~~~~~~~~~
   In file included from <command-line>:
   drivers/char/virtio_console.c: In function 'put_chars':
   include/linux/freezer.h:79:21: error: expected identifier before '(' token
    #define pm_freezing (false)
                        ^
   include/linux/compiler_types.h:626:13: note: in definition of macro '__unqual_scalar_typeof'
      _Generic((x),      \
                ^
   include/asm-generic/barrier.h:176:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(p)
                                ^~~~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:1173:6: note: in expansion of macro 'smp_load_acquire'
         smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:1173:33: note: in expansion of macro 'pm_freezing'
         smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
--
   drivers/char/virtio_console.c:1173:33: note: in expansion of macro 'pm_freezing'
         smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
                                    ^~~~~~~~~~~
   include/linux/freezer.h:79:21: error: expected identifier before '(' token
    #define pm_freezing (false)
                        ^
   include/linux/compiler_types.h:682:9: note: in definition of macro '__compiletime_assert'
      if (!(condition))     \
            ^~~~~~~~~
   include/linux/compiler_types.h:702:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:705:2: note: in expansion of macro 'compiletime_assert'
     compiletime_assert(__native_word(t),    \
     ^~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:705:21: note: in expansion of macro '__native_word'
     compiletime_assert(__native_word(t),    \
                        ^~~~~~~~~~~~~
   arch/arm64/include/asm/barrier.h:169:2: note: in expansion of macro 'compiletime_assert_atomic_type'
     compiletime_assert_atomic_type(*p);    \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/barrier.h:176:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(p)
                                ^~~~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:1173:6: note: in expansion of macro 'smp_load_acquire'
         smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:1173:33: note: in expansion of macro 'pm_freezing'
         smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
                                    ^~~~~~~~~~~
   include/linux/freezer.h:79:21: error: expected identifier before '(' token
    #define pm_freezing (false)
                        ^
   include/linux/compiler_types.h:682:9: note: in definition of macro '__compiletime_assert'
      if (!(condition))     \
            ^~~~~~~~~
   include/linux/compiler_types.h:702:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:705:2: note: in expansion of macro 'compiletime_assert'
     compiletime_assert(__native_word(t),    \
     ^~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:705:21: note: in expansion of macro '__native_word'
     compiletime_assert(__native_word(t),    \
                        ^~~~~~~~~~~~~
   arch/arm64/include/asm/barrier.h:169:2: note: in expansion of macro 'compiletime_assert_atomic_type'
     compiletime_assert_atomic_type(*p);    \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/barrier.h:176:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(p)
                                ^~~~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:1173:6: note: in expansion of macro 'smp_load_acquire'
         smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:1173:33: note: in expansion of macro 'pm_freezing'
         smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
                                    ^~~~~~~~~~~
   include/linux/freezer.h:79:21: error: expected identifier before '(' token
    #define pm_freezing (false)
                        ^
   include/linux/compiler_types.h:682:9: note: in definition of macro '__compiletime_assert'
      if (!(condition))     \
            ^~~~~~~~~
   include/linux/compiler_types.h:702:2: note: in expansion of macro '_compiletime_assert'
     _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
     ^~~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:705:2: note: in expansion of macro 'compiletime_assert'
     compiletime_assert(__native_word(t),    \
     ^~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:705:21: note: in expansion of macro '__native_word'
     compiletime_assert(__native_word(t),    \
                        ^~~~~~~~~~~~~
   arch/arm64/include/asm/barrier.h:169:2: note: in expansion of macro 'compiletime_assert_atomic_type'
     compiletime_assert_atomic_type(*p);    \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/barrier.h:176:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(p)
                                ^~~~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:1173:6: note: in expansion of macro 'smp_load_acquire'
         smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:1173:33: note: in expansion of macro 'pm_freezing'
         smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
                                    ^~~~~~~~~~~
   In file included from include/linux/list.h:11,
                    from include/linux/kobject.h:19,
                    from include/linux/cdev.h:5,
                    from drivers/char/virtio_console.c:7:
   include/linux/freezer.h:79:21: error: expected identifier before '(' token
    #define pm_freezing (false)
                        ^
   arch/arm64/include/asm/barrier.h:170:32: note: in definition of macro '__smp_load_acquire'
     kasan_check_read(__p, sizeof(*p));    \
                                   ^
   drivers/char/virtio_console.c:1173:6: note: in expansion of macro 'smp_load_acquire'
         smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:1173:33: note: in expansion of macro 'pm_freezing'
         smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
                                    ^~~~~~~~~~~
>> arch/arm64/include/asm/barrier.h:170:19: warning: passing argument 1 of 'kasan_check_read' makes pointer from integer without a cast [-Wint-conversion]
     kasan_check_read(__p, sizeof(*p));    \
                      ^~~
   include/asm-generic/barrier.h:176:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(p)
                                ^~~~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:1173:6: note: in expansion of macro 'smp_load_acquire'
         smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   In file included from include/asm-generic/rwonce.h:26,
                    from arch/arm64/include/asm/rwonce.h:81,
                    from include/linux/compiler.h:369,
                    from include/linux/build_bug.h:5,
                    from include/linux/container_of.h:5,
                    from include/linux/list.h:5,
                    from include/linux/kobject.h:19,
                    from include/linux/cdev.h:5,
                    from drivers/char/virtio_console.c:7:
   include/linux/kasan-checks.h:40:58: note: expected 'const volatile void *' but argument is of type 'int'
    static inline bool kasan_check_read(const volatile void *p, unsigned int size)
                                        ~~~~~~~~~~~~~~~~~~~~~^
   In file included from include/linux/list.h:11,
                    from include/linux/kobject.h:19,
                    from include/linux/cdev.h:5,
                    from drivers/char/virtio_console.c:7:
   include/linux/freezer.h:79:21: error: expected identifier before '(' token
    #define pm_freezing (false)
                        ^
   arch/arm64/include/asm/barrier.h:171:18: note: in definition of macro '__smp_load_acquire'
     switch (sizeof(*p)) {      \
                     ^
   drivers/char/virtio_console.c:1173:6: note: in expansion of macro 'smp_load_acquire'
         smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:1173:33: note: in expansion of macro 'pm_freezing'
         smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
                                    ^~~~~~~~~~~
   arch/arm64/include/asm/barrier.h:175:11: error: invalid type argument of unary '*' (have 'int')
       : "Q" (*__p) : "memory");   \
              ^~~~
   include/asm-generic/barrier.h:176:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(p)
                                ^~~~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:1173:6: note: in expansion of macro 'smp_load_acquire'
         smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   arch/arm64/include/asm/barrier.h:180:11: error: invalid type argument of unary '*' (have 'int')
       : "Q" (*__p) : "memory");   \
              ^~~~
   include/asm-generic/barrier.h:176:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(p)
                                ^~~~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:1173:6: note: in expansion of macro 'smp_load_acquire'
         smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   arch/arm64/include/asm/barrier.h:185:11: error: invalid type argument of unary '*' (have 'int')
       : "Q" (*__p) : "memory");   \
              ^~~~
   include/asm-generic/barrier.h:176:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(p)
                                ^~~~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:1173:6: note: in expansion of macro 'smp_load_acquire'
         smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   arch/arm64/include/asm/barrier.h:190:11: error: invalid type argument of unary '*' (have 'int')
       : "Q" (*__p) : "memory");   \
              ^~~~
   include/asm-generic/barrier.h:176:29: note: in expansion of macro '__smp_load_acquire'
    #define smp_load_acquire(p) __smp_load_acquire(p)
                                ^~~~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:1173:6: note: in expansion of macro 'smp_load_acquire'
         smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   include/linux/freezer.h:79:21: error: expected identifier before '(' token
    #define pm_freezing (false)
                        ^
   arch/arm64/include/asm/barrier.h:193:11: note: in definition of macro '__smp_load_acquire'
     (typeof(*p))__u.__val;      \
              ^
   drivers/char/virtio_console.c:1173:6: note: in expansion of macro 'smp_load_acquire'
         smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
         ^~~~~~~~~~~~~~~~
   drivers/char/virtio_console.c:1173:33: note: in expansion of macro 'pm_freezing'
         smp_load_acquire(&portdev->pm_freezing)) /* pairs with freeze/restore */
                                    ^~~~~~~~~~~
   In file included from drivers/char/virtio_console.c:12:
   drivers/char/virtio_console.c: In function 'virtcons_probe':
   include/linux/freezer.h:79:21: error: expected identifier before '(' token
    #define pm_freezing (false)
                        ^
   drivers/char/virtio_console.c:2071:11: note: in expansion of macro 'pm_freezing'
     portdev->pm_freezing = false;
              ^~~~~~~~~~~


vim +/kasan_check_read +170 arch/arm64/include/asm/barrier.h

47933ad41a86a4 Peter Zijlstra     2013-11-06  164  
fd072df850e536 Michael S. Tsirkin 2015-12-27  165  #define __smp_load_acquire(p)						\
47933ad41a86a4 Peter Zijlstra     2013-11-06  166  ({									\
10223c5286f738 Will Deacon        2019-12-19  167  	union { __unqual_scalar_typeof(*p) __val; char __c[1]; } __u;	\
131e135f7fd14b Mark Rutland       2019-04-09  168  	typeof(p) __p = (p);						\
47933ad41a86a4 Peter Zijlstra     2013-11-06  169  	compiletime_assert_atomic_type(*p);				\
131e135f7fd14b Mark Rutland       2019-04-09 @170  	kasan_check_read(__p, sizeof(*p));				\
47933ad41a86a4 Peter Zijlstra     2013-11-06  171  	switch (sizeof(*p)) {						\
878a84d5a8a18a Andre Przywara     2015-04-20  172  	case 1:								\
878a84d5a8a18a Andre Przywara     2015-04-20  173  		asm volatile ("ldarb %w0, %1"				\
c139aa60c10074 Will Deacon        2015-11-18  174  			: "=r" (*(__u8 *)__u.__c)			\
131e135f7fd14b Mark Rutland       2019-04-09  175  			: "Q" (*__p) : "memory");			\
878a84d5a8a18a Andre Przywara     2015-04-20  176  		break;							\
878a84d5a8a18a Andre Przywara     2015-04-20  177  	case 2:								\
878a84d5a8a18a Andre Przywara     2015-04-20  178  		asm volatile ("ldarh %w0, %1"				\
c139aa60c10074 Will Deacon        2015-11-18  179  			: "=r" (*(__u16 *)__u.__c)			\
131e135f7fd14b Mark Rutland       2019-04-09  180  			: "Q" (*__p) : "memory");			\
878a84d5a8a18a Andre Przywara     2015-04-20  181  		break;							\
47933ad41a86a4 Peter Zijlstra     2013-11-06  182  	case 4:								\
47933ad41a86a4 Peter Zijlstra     2013-11-06  183  		asm volatile ("ldar %w0, %1"				\
c139aa60c10074 Will Deacon        2015-11-18  184  			: "=r" (*(__u32 *)__u.__c)			\
131e135f7fd14b Mark Rutland       2019-04-09  185  			: "Q" (*__p) : "memory");			\
47933ad41a86a4 Peter Zijlstra     2013-11-06  186  		break;							\
47933ad41a86a4 Peter Zijlstra     2013-11-06  187  	case 8:								\
47933ad41a86a4 Peter Zijlstra     2013-11-06  188  		asm volatile ("ldar %0, %1"				\
c139aa60c10074 Will Deacon        2015-11-18  189  			: "=r" (*(__u64 *)__u.__c)			\
131e135f7fd14b Mark Rutland       2019-04-09  190  			: "Q" (*__p) : "memory");			\
47933ad41a86a4 Peter Zijlstra     2013-11-06  191  		break;							\
47933ad41a86a4 Peter Zijlstra     2013-11-06  192  	}								\
10223c5286f738 Will Deacon        2019-12-19  193  	(typeof(*p))__u.__val;						\
47933ad41a86a4 Peter Zijlstra     2013-11-06  194  })
47933ad41a86a4 Peter Zijlstra     2013-11-06  195  

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

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads