linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* arch/x86/include/asm/cmpxchg.h:245:2: error: 'asm' operand has impossible constraints
@ 2018-11-30  6:44 kbuild test robot
  2018-11-30  6:55 ` Juergen Gross
  0 siblings, 1 reply; 7+ messages in thread
From: kbuild test robot @ 2018-11-30  6:44 UTC (permalink / raw)
  To: Juergen Gross; +Cc: kbuild-all, linux-kernel, Thomas Gleixner

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

Hi Juergen,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   94f371cb73944b410a269d570d6946c042f2ddd0
commit: 6da63eb241a05b0e676d68975e793c0521387141 x86/paravirt: Move the pv_irq_ops under the PARAVIRT_XXL umbrella
date:   3 months ago
config: i386-randconfig-sb0-11301144 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        git checkout 6da63eb241a05b0e676d68975e793c0521387141
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from arch/x86/include/asm/atomic.h:8:0,
                    from arch/x86/include/asm/msr.h:67,
                    from arch/x86/include/asm/processor.h:21,
                    from arch/x86/include/asm/cpufeature.h:5,
                    from arch/x86/include/asm/thread_info.h:53,
                    from include/linux/thread_info.h:38,
                    from arch/x86/include/asm/preempt.h:7,
                    from include/linux/preempt.h:81,
                    from include/linux/spinlock.h:51,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:6,
                    from include/linux/mm.h:10,
                    from mm/slub.c:13:
   mm/slub.c: In function '__slab_free':
>> arch/x86/include/asm/cmpxchg.h:245:2: error: 'asm' operand has impossible constraints
     asm volatile(pfx "cmpxchg%c4b %2; sete %0"   \
     ^
   arch/x86/include/asm/cmpxchg.h:254:2: note: in expansion of macro '__cmpxchg_double'
     __cmpxchg_double(LOCK_PREFIX, p1, p2, o1, o2, n1, n2)
     ^
   include/asm-generic/atomic-instrumented.h:457:2: note: in expansion of macro 'arch_cmpxchg_double'
     arch_cmpxchg_double(__ai_p1, (p2), (o1), (o2), (n1), (n2)); \
     ^
   mm/slub.c:403:7: note: in expansion of macro 'cmpxchg_double'
      if (cmpxchg_double(&page->freelist, &page->counters,
          ^

vim +/asm +245 arch/x86/include/asm/cmpxchg.h

3d94ae0c Jeremy Fitzhardinge 2011-09-28  235  
cdcd6298 Jan Beulich         2012-01-02  236  #define __cmpxchg_double(pfx, p1, p2, o1, o2, n1, n2)			\
cdcd6298 Jan Beulich         2012-01-02  237  ({									\
cdcd6298 Jan Beulich         2012-01-02  238  	bool __ret;							\
cdcd6298 Jan Beulich         2012-01-02  239  	__typeof__(*(p1)) __old1 = (o1), __new1 = (n1);			\
cdcd6298 Jan Beulich         2012-01-02  240  	__typeof__(*(p2)) __old2 = (o2), __new2 = (n2);			\
cdcd6298 Jan Beulich         2012-01-02  241  	BUILD_BUG_ON(sizeof(*(p1)) != sizeof(long));			\
cdcd6298 Jan Beulich         2012-01-02  242  	BUILD_BUG_ON(sizeof(*(p2)) != sizeof(long));			\
cdcd6298 Jan Beulich         2012-01-02  243  	VM_BUG_ON((unsigned long)(p1) % (2 * sizeof(long)));		\
cdcd6298 Jan Beulich         2012-01-02  244  	VM_BUG_ON((unsigned long)((p1) + 1) != (unsigned long)(p2));	\
cdcd6298 Jan Beulich         2012-01-02 @245  	asm volatile(pfx "cmpxchg%c4b %2; sete %0"			\
cdcd6298 Jan Beulich         2012-01-02  246  		     : "=a" (__ret), "+d" (__old2),			\
cdcd6298 Jan Beulich         2012-01-02  247  		       "+m" (*(p1)), "+m" (*(p2))			\
cdcd6298 Jan Beulich         2012-01-02  248  		     : "i" (2 * sizeof(long)), "a" (__old1),		\
cdcd6298 Jan Beulich         2012-01-02  249  		       "b" (__new1), "c" (__new2));			\
cdcd6298 Jan Beulich         2012-01-02  250  	__ret;								\
cdcd6298 Jan Beulich         2012-01-02  251  })
cdcd6298 Jan Beulich         2012-01-02  252  

:::::: The code at line 245 was first introduced by commit
:::::: cdcd629869fabcd38ebd24a03b0a05ec1cbcafb0 x86: Fix and improve cmpxchg_double{,_local}()

:::::: TO: Jan Beulich <JBeulich@suse.com>
:::::: CC: Ingo Molnar <mingo@elte.hu>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28201 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: arch/x86/include/asm/cmpxchg.h:245:2: error: 'asm' operand has impossible constraints
  2018-11-30  6:44 arch/x86/include/asm/cmpxchg.h:245:2: error: 'asm' operand has impossible constraints kbuild test robot
@ 2018-11-30  6:55 ` Juergen Gross
  0 siblings, 0 replies; 7+ messages in thread
From: Juergen Gross @ 2018-11-30  6:55 UTC (permalink / raw)
  To: kbuild test robot; +Cc: kbuild-all, linux-kernel, Thomas Gleixner

On 30/11/2018 07:44, kbuild test robot wrote:
> Hi Juergen,
> 
> FYI, the error/warning still remains.

This problem is one of gcc. It is in no way the (direct) result of my
patch. Please see my gcc bug report:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=908154


Juergen

> 
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   94f371cb73944b410a269d570d6946c042f2ddd0
> commit: 6da63eb241a05b0e676d68975e793c0521387141 x86/paravirt: Move the pv_irq_ops under the PARAVIRT_XXL umbrella
> date:   3 months ago
> config: i386-randconfig-sb0-11301144 (attached as .config)
> compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
> reproduce:
>         git checkout 6da63eb241a05b0e676d68975e793c0521387141
>         # save the attached .config to linux build tree
>         make ARCH=i386 
> 
> All errors (new ones prefixed by >>):
> 
>    In file included from arch/x86/include/asm/atomic.h:8:0,
>                     from arch/x86/include/asm/msr.h:67,
>                     from arch/x86/include/asm/processor.h:21,
>                     from arch/x86/include/asm/cpufeature.h:5,
>                     from arch/x86/include/asm/thread_info.h:53,
>                     from include/linux/thread_info.h:38,
>                     from arch/x86/include/asm/preempt.h:7,
>                     from include/linux/preempt.h:81,
>                     from include/linux/spinlock.h:51,
>                     from include/linux/mmzone.h:8,
>                     from include/linux/gfp.h:6,
>                     from include/linux/mm.h:10,
>                     from mm/slub.c:13:
>    mm/slub.c: In function '__slab_free':
>>> arch/x86/include/asm/cmpxchg.h:245:2: error: 'asm' operand has impossible constraints
>      asm volatile(pfx "cmpxchg%c4b %2; sete %0"   \
>      ^
>    arch/x86/include/asm/cmpxchg.h:254:2: note: in expansion of macro '__cmpxchg_double'
>      __cmpxchg_double(LOCK_PREFIX, p1, p2, o1, o2, n1, n2)
>      ^
>    include/asm-generic/atomic-instrumented.h:457:2: note: in expansion of macro 'arch_cmpxchg_double'
>      arch_cmpxchg_double(__ai_p1, (p2), (o1), (o2), (n1), (n2)); \
>      ^
>    mm/slub.c:403:7: note: in expansion of macro 'cmpxchg_double'
>       if (cmpxchg_double(&page->freelist, &page->counters,
>           ^
> 
> vim +/asm +245 arch/x86/include/asm/cmpxchg.h
> 
> 3d94ae0c Jeremy Fitzhardinge 2011-09-28  235  
> cdcd6298 Jan Beulich         2012-01-02  236  #define __cmpxchg_double(pfx, p1, p2, o1, o2, n1, n2)			\
> cdcd6298 Jan Beulich         2012-01-02  237  ({									\
> cdcd6298 Jan Beulich         2012-01-02  238  	bool __ret;							\
> cdcd6298 Jan Beulich         2012-01-02  239  	__typeof__(*(p1)) __old1 = (o1), __new1 = (n1);			\
> cdcd6298 Jan Beulich         2012-01-02  240  	__typeof__(*(p2)) __old2 = (o2), __new2 = (n2);			\
> cdcd6298 Jan Beulich         2012-01-02  241  	BUILD_BUG_ON(sizeof(*(p1)) != sizeof(long));			\
> cdcd6298 Jan Beulich         2012-01-02  242  	BUILD_BUG_ON(sizeof(*(p2)) != sizeof(long));			\
> cdcd6298 Jan Beulich         2012-01-02  243  	VM_BUG_ON((unsigned long)(p1) % (2 * sizeof(long)));		\
> cdcd6298 Jan Beulich         2012-01-02  244  	VM_BUG_ON((unsigned long)((p1) + 1) != (unsigned long)(p2));	\
> cdcd6298 Jan Beulich         2012-01-02 @245  	asm volatile(pfx "cmpxchg%c4b %2; sete %0"			\
> cdcd6298 Jan Beulich         2012-01-02  246  		     : "=a" (__ret), "+d" (__old2),			\
> cdcd6298 Jan Beulich         2012-01-02  247  		       "+m" (*(p1)), "+m" (*(p2))			\
> cdcd6298 Jan Beulich         2012-01-02  248  		     : "i" (2 * sizeof(long)), "a" (__old1),		\
> cdcd6298 Jan Beulich         2012-01-02  249  		       "b" (__new1), "c" (__new2));			\
> cdcd6298 Jan Beulich         2012-01-02  250  	__ret;								\
> cdcd6298 Jan Beulich         2012-01-02  251  })
> cdcd6298 Jan Beulich         2012-01-02  252  
> 
> :::::: The code at line 245 was first introduced by commit
> :::::: cdcd629869fabcd38ebd24a03b0a05ec1cbcafb0 x86: Fix and improve cmpxchg_double{,_local}()
> 
> :::::: TO: Jan Beulich <JBeulich@suse.com>
> :::::: CC: Ingo Molnar <mingo@elte.hu>
> 
> ---
> 0-DAY kernel test infrastructure                Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
> 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: arch/x86/include/asm/cmpxchg.h:245:2: error: 'asm' operand has impossible constraints
       [not found] <201901221204.ZqZgxRnA%fengguang.wu@intel.com>
@ 2019-01-22 10:08 ` Borislav Petkov
  0 siblings, 0 replies; 7+ messages in thread
From: Borislav Petkov @ 2019-01-22 10:08 UTC (permalink / raw)
  To: kbuild test robot; +Cc: Ingo Molnar, kbuild-all, linux-kernel, Thomas Gleixner

On Tue, Jan 22, 2019 at 12:53:11PM +0800, kbuild test robot wrote:
> Hi Ingo,
> 
> FYI, the error/warning still remains.

Guys,

we already discussed this:

https://lists.01.org/pipermail/kbuild-all/2018-December/056206.html

but you keep reporting it.

You need to fix your reported issues tracking or otherwise no one will
bother anymore.

Thx.

-- 
Regards/Gruss,
    Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* arch/x86/include/asm/cmpxchg.h:245:2: error: 'asm' operand has impossible constraints
@ 2019-01-01 14:02 kbuild test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kbuild test robot @ 2019-01-01 14:02 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: kbuild-all, linux-kernel, Borislav Petkov, Thomas Gleixner

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

Hi Ingo,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   e1ef035d272ef4dbfdda98e58699698305138856
commit: ffb61c6346d0f02b2a03377a3edac838c1f09b45 Revert "x86/bug: Macrofy the BUG table section handling, to work around GCC inlining bugs"
date:   13 days ago
config: i386-randconfig-sb0-01012038 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        git checkout ffb61c6346d0f02b2a03377a3edac838c1f09b45
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from arch/x86/include/asm/atomic.h:8:0,
                    from include/linux/atomic.h:7,
                    from include/linux/jump_label.h:250,
                    from include/linux/static_key.h:1,
                    from arch/x86/include/asm/nospec-branch.h:6,
                    from arch/x86/include/asm/paravirt_types.h:46,
                    from arch/x86/include/asm/ptrace.h:94,
                    from arch/x86/include/asm/math_emu.h:5,
                    from arch/x86/include/asm/processor.h:12,
                    from arch/x86/include/asm/cpufeature.h:5,
                    from arch/x86/include/asm/thread_info.h:53,
                    from include/linux/thread_info.h:38,
                    from arch/x86/include/asm/preempt.h:7,
                    from include/linux/preempt.h:81,
                    from include/linux/spinlock.h:51,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:6,
                    from include/linux/mm.h:10,
                    from mm/slub.c:13:
   mm/slub.c: In function '__slab_free':
>> arch/x86/include/asm/cmpxchg.h:245:2: error: 'asm' operand has impossible constraints
     asm volatile(pfx "cmpxchg%c5b %1"    \
     ^
   arch/x86/include/asm/cmpxchg.h:256:2: note: in expansion of macro '__cmpxchg_double'
     __cmpxchg_double(LOCK_PREFIX, p1, p2, o1, o2, n1, n2)
     ^
   include/asm-generic/atomic-instrumented.h:457:2: note: in expansion of macro 'arch_cmpxchg_double'
     arch_cmpxchg_double(__ai_p1, (p2), (o1), (o2), (n1), (n2)); \
     ^
   mm/slub.c:403:7: note: in expansion of macro 'cmpxchg_double'
      if (cmpxchg_double(&page->freelist, &page->counters,
          ^

vim +/asm +245 arch/x86/include/asm/cmpxchg.h

3d94ae0c Jeremy Fitzhardinge 2011-09-28  235  
cdcd6298 Jan Beulich         2012-01-02  236  #define __cmpxchg_double(pfx, p1, p2, o1, o2, n1, n2)			\
cdcd6298 Jan Beulich         2012-01-02  237  ({									\
cdcd6298 Jan Beulich         2012-01-02  238  	bool __ret;							\
cdcd6298 Jan Beulich         2012-01-02  239  	__typeof__(*(p1)) __old1 = (o1), __new1 = (n1);			\
cdcd6298 Jan Beulich         2012-01-02  240  	__typeof__(*(p2)) __old2 = (o2), __new2 = (n2);			\
cdcd6298 Jan Beulich         2012-01-02  241  	BUILD_BUG_ON(sizeof(*(p1)) != sizeof(long));			\
cdcd6298 Jan Beulich         2012-01-02  242  	BUILD_BUG_ON(sizeof(*(p2)) != sizeof(long));			\
cdcd6298 Jan Beulich         2012-01-02  243  	VM_BUG_ON((unsigned long)(p1) % (2 * sizeof(long)));		\
cdcd6298 Jan Beulich         2012-01-02  244  	VM_BUG_ON((unsigned long)((p1) + 1) != (unsigned long)(p2));	\
c808c09b Uros Bizjak         2018-09-28 @245  	asm volatile(pfx "cmpxchg%c5b %1"				\
c808c09b Uros Bizjak         2018-09-28  246  		     CC_SET(e)						\
c808c09b Uros Bizjak         2018-09-28  247  		     : CC_OUT(e) (__ret),				\
c808c09b Uros Bizjak         2018-09-28  248  		       "+m" (*(p1)), "+m" (*(p2)),			\
c808c09b Uros Bizjak         2018-09-28  249  		       "+a" (__old1), "+d" (__old2)			\
c808c09b Uros Bizjak         2018-09-28  250  		     : "i" (2 * sizeof(long)),				\
cdcd6298 Jan Beulich         2012-01-02  251  		       "b" (__new1), "c" (__new2));			\
cdcd6298 Jan Beulich         2012-01-02  252  	__ret;								\
cdcd6298 Jan Beulich         2012-01-02  253  })
cdcd6298 Jan Beulich         2012-01-02  254  

:::::: The code at line 245 was first introduced by commit
:::::: c808c09b527cd60d9a0d53799935f75e2452174d x86/asm: Use CC_SET()/CC_OUT() in __cmpxchg_double()

:::::: TO: Uros Bizjak <ubizjak@gmail.com>
:::::: CC: Borislav Petkov <bp@suse.de>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29209 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* arch/x86/include/asm/cmpxchg.h:245:2: error: 'asm' operand has impossible constraints
@ 2018-12-12 12:46 kbuild test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kbuild test robot @ 2018-12-12 12:46 UTC (permalink / raw)
  To: Juergen Gross; +Cc: kbuild-all, linux-kernel, Thomas Gleixner

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

Hi Juergen,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f5d582777bcb1c7ff19a5a2343f66ea01de401c6
commit: 6da63eb241a05b0e676d68975e793c0521387141 x86/paravirt: Move the pv_irq_ops under the PARAVIRT_XXL umbrella
date:   3 months ago
config: i386-randconfig-sb0-12121832 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        git checkout 6da63eb241a05b0e676d68975e793c0521387141
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from arch/x86/include/asm/atomic.h:8:0,
                    from arch/x86/include/asm/msr.h:67,
                    from arch/x86/include/asm/processor.h:21,
                    from arch/x86/include/asm/cpufeature.h:5,
                    from arch/x86/include/asm/thread_info.h:53,
                    from include/linux/thread_info.h:38,
                    from arch/x86/include/asm/preempt.h:7,
                    from include/linux/preempt.h:81,
                    from include/linux/spinlock.h:51,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:6,
                    from include/linux/mm.h:10,
                    from mm/slub.c:13:
   mm/slub.c: In function '__slab_free.isra.84':
>> arch/x86/include/asm/cmpxchg.h:245:2: error: 'asm' operand has impossible constraints
     asm volatile(pfx "cmpxchg%c4b %2; sete %0"   \
     ^
   arch/x86/include/asm/cmpxchg.h:254:2: note: in expansion of macro '__cmpxchg_double'
     __cmpxchg_double(LOCK_PREFIX, p1, p2, o1, o2, n1, n2)
     ^
   include/asm-generic/atomic-instrumented.h:457:2: note: in expansion of macro 'arch_cmpxchg_double'
     arch_cmpxchg_double(__ai_p1, (p2), (o1), (o2), (n1), (n2)); \
     ^
   mm/slub.c:403:7: note: in expansion of macro 'cmpxchg_double'
      if (cmpxchg_double(&page->freelist, &page->counters,
          ^

vim +/asm +245 arch/x86/include/asm/cmpxchg.h

3d94ae0c Jeremy Fitzhardinge 2011-09-28  235  
cdcd6298 Jan Beulich         2012-01-02  236  #define __cmpxchg_double(pfx, p1, p2, o1, o2, n1, n2)			\
cdcd6298 Jan Beulich         2012-01-02  237  ({									\
cdcd6298 Jan Beulich         2012-01-02  238  	bool __ret;							\
cdcd6298 Jan Beulich         2012-01-02  239  	__typeof__(*(p1)) __old1 = (o1), __new1 = (n1);			\
cdcd6298 Jan Beulich         2012-01-02  240  	__typeof__(*(p2)) __old2 = (o2), __new2 = (n2);			\
cdcd6298 Jan Beulich         2012-01-02  241  	BUILD_BUG_ON(sizeof(*(p1)) != sizeof(long));			\
cdcd6298 Jan Beulich         2012-01-02  242  	BUILD_BUG_ON(sizeof(*(p2)) != sizeof(long));			\
cdcd6298 Jan Beulich         2012-01-02  243  	VM_BUG_ON((unsigned long)(p1) % (2 * sizeof(long)));		\
cdcd6298 Jan Beulich         2012-01-02  244  	VM_BUG_ON((unsigned long)((p1) + 1) != (unsigned long)(p2));	\
cdcd6298 Jan Beulich         2012-01-02 @245  	asm volatile(pfx "cmpxchg%c4b %2; sete %0"			\
cdcd6298 Jan Beulich         2012-01-02  246  		     : "=a" (__ret), "+d" (__old2),			\
cdcd6298 Jan Beulich         2012-01-02  247  		       "+m" (*(p1)), "+m" (*(p2))			\
cdcd6298 Jan Beulich         2012-01-02  248  		     : "i" (2 * sizeof(long)), "a" (__old1),		\
cdcd6298 Jan Beulich         2012-01-02  249  		       "b" (__new1), "c" (__new2));			\
cdcd6298 Jan Beulich         2012-01-02  250  	__ret;								\
cdcd6298 Jan Beulich         2012-01-02  251  })
cdcd6298 Jan Beulich         2012-01-02  252  

:::::: The code at line 245 was first introduced by commit
:::::: cdcd629869fabcd38ebd24a03b0a05ec1cbcafb0 x86: Fix and improve cmpxchg_double{,_local}()

:::::: TO: Jan Beulich <JBeulich@suse.com>
:::::: CC: Ingo Molnar <mingo@elte.hu>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 24538 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* arch/x86/include/asm/cmpxchg.h:245:2: error: 'asm' operand has impossible constraints
@ 2018-12-08  5:37 kbuild test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kbuild test robot @ 2018-12-08  5:37 UTC (permalink / raw)
  To: Juergen Gross; +Cc: kbuild-all, linux-kernel, Thomas Gleixner

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

Hi Juergen,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   5f179793f0a73965681db6a3203fa1baabd9b3c3
commit: 6da63eb241a05b0e676d68975e793c0521387141 x86/paravirt: Move the pv_irq_ops under the PARAVIRT_XXL umbrella
date:   3 months ago
config: i386-randconfig-sb0-12081226 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        git checkout 6da63eb241a05b0e676d68975e793c0521387141
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from arch/x86/include/asm/atomic.h:8:0,
                    from arch/x86/include/asm/msr.h:67,
                    from arch/x86/include/asm/processor.h:21,
                    from arch/x86/include/asm/cpufeature.h:5,
                    from arch/x86/include/asm/thread_info.h:53,
                    from include/linux/thread_info.h:38,
                    from arch/x86/include/asm/preempt.h:7,
                    from include/linux/preempt.h:81,
                    from include/linux/spinlock.h:51,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:6,
                    from include/linux/mm.h:10,
                    from mm/slub.c:13:
   mm/slub.c: In function '__slab_free.isra.74':
>> arch/x86/include/asm/cmpxchg.h:245:2: error: 'asm' operand has impossible constraints
     asm volatile(pfx "cmpxchg%c4b %2; sete %0"   \
     ^
   arch/x86/include/asm/cmpxchg.h:254:2: note: in expansion of macro '__cmpxchg_double'
     __cmpxchg_double(LOCK_PREFIX, p1, p2, o1, o2, n1, n2)
     ^
   include/asm-generic/atomic-instrumented.h:457:2: note: in expansion of macro 'arch_cmpxchg_double'
     arch_cmpxchg_double(__ai_p1, (p2), (o1), (o2), (n1), (n2)); \
     ^
   mm/slub.c:403:7: note: in expansion of macro 'cmpxchg_double'
      if (cmpxchg_double(&page->freelist, &page->counters,
          ^

vim +/asm +245 arch/x86/include/asm/cmpxchg.h

3d94ae0c Jeremy Fitzhardinge 2011-09-28  235  
cdcd6298 Jan Beulich         2012-01-02  236  #define __cmpxchg_double(pfx, p1, p2, o1, o2, n1, n2)			\
cdcd6298 Jan Beulich         2012-01-02  237  ({									\
cdcd6298 Jan Beulich         2012-01-02  238  	bool __ret;							\
cdcd6298 Jan Beulich         2012-01-02  239  	__typeof__(*(p1)) __old1 = (o1), __new1 = (n1);			\
cdcd6298 Jan Beulich         2012-01-02  240  	__typeof__(*(p2)) __old2 = (o2), __new2 = (n2);			\
cdcd6298 Jan Beulich         2012-01-02  241  	BUILD_BUG_ON(sizeof(*(p1)) != sizeof(long));			\
cdcd6298 Jan Beulich         2012-01-02  242  	BUILD_BUG_ON(sizeof(*(p2)) != sizeof(long));			\
cdcd6298 Jan Beulich         2012-01-02  243  	VM_BUG_ON((unsigned long)(p1) % (2 * sizeof(long)));		\
cdcd6298 Jan Beulich         2012-01-02  244  	VM_BUG_ON((unsigned long)((p1) + 1) != (unsigned long)(p2));	\
cdcd6298 Jan Beulich         2012-01-02 @245  	asm volatile(pfx "cmpxchg%c4b %2; sete %0"			\
cdcd6298 Jan Beulich         2012-01-02  246  		     : "=a" (__ret), "+d" (__old2),			\
cdcd6298 Jan Beulich         2012-01-02  247  		       "+m" (*(p1)), "+m" (*(p2))			\
cdcd6298 Jan Beulich         2012-01-02  248  		     : "i" (2 * sizeof(long)), "a" (__old1),		\
cdcd6298 Jan Beulich         2012-01-02  249  		       "b" (__new1), "c" (__new2));			\
cdcd6298 Jan Beulich         2012-01-02  250  	__ret;								\
cdcd6298 Jan Beulich         2012-01-02  251  })
cdcd6298 Jan Beulich         2012-01-02  252  

:::::: The code at line 245 was first introduced by commit
:::::: cdcd629869fabcd38ebd24a03b0a05ec1cbcafb0 x86: Fix and improve cmpxchg_double{,_local}()

:::::: TO: Jan Beulich <JBeulich@suse.com>
:::::: CC: Ingo Molnar <mingo@elte.hu>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33205 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* arch/x86/include/asm/cmpxchg.h:245:2: error: 'asm' operand has impossible constraints
@ 2018-11-20 10:26 kbuild test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kbuild test robot @ 2018-11-20 10:26 UTC (permalink / raw)
  To: Juergen Gross; +Cc: kbuild-all, linux-kernel, Thomas Gleixner

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

Hi Juergen,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f2ce1065e767fc7da106a5f5381d1e8f842dc6f4
commit: 6da63eb241a05b0e676d68975e793c0521387141 x86/paravirt: Move the pv_irq_ops under the PARAVIRT_XXL umbrella
date:   3 months ago
config: i386-randconfig-h0-11201559 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
reproduce:
        git checkout 6da63eb241a05b0e676d68975e793c0521387141
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from arch/x86/include/asm/atomic.h:8:0,
                    from arch/x86/include/asm/msr.h:67,
                    from arch/x86/include/asm/processor.h:21,
                    from arch/x86/include/asm/cpufeature.h:5,
                    from arch/x86/include/asm/thread_info.h:53,
                    from include/linux/thread_info.h:38,
                    from arch/x86/include/asm/preempt.h:7,
                    from include/linux/preempt.h:81,
                    from include/linux/spinlock.h:51,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:6,
                    from include/linux/mm.h:10,
                    from mm/slub.c:13:
   mm/slub.c: In function '__slab_free':
>> arch/x86/include/asm/cmpxchg.h:245:2: error: 'asm' operand has impossible constraints
     asm volatile(pfx "cmpxchg%c4b %2; sete %0"   \
     ^
   arch/x86/include/asm/cmpxchg.h:254:2: note: in expansion of macro '__cmpxchg_double'
     __cmpxchg_double(LOCK_PREFIX, p1, p2, o1, o2, n1, n2)
     ^
   include/asm-generic/atomic-instrumented.h:457:2: note: in expansion of macro 'arch_cmpxchg_double'
     arch_cmpxchg_double(__ai_p1, (p2), (o1), (o2), (n1), (n2)); \
     ^
   mm/slub.c:403:7: note: in expansion of macro 'cmpxchg_double'
      if (cmpxchg_double(&page->freelist, &page->counters,
          ^

vim +/asm +245 arch/x86/include/asm/cmpxchg.h

3d94ae0c Jeremy Fitzhardinge 2011-09-28  235  
cdcd6298 Jan Beulich         2012-01-02  236  #define __cmpxchg_double(pfx, p1, p2, o1, o2, n1, n2)			\
cdcd6298 Jan Beulich         2012-01-02  237  ({									\
cdcd6298 Jan Beulich         2012-01-02  238  	bool __ret;							\
cdcd6298 Jan Beulich         2012-01-02  239  	__typeof__(*(p1)) __old1 = (o1), __new1 = (n1);			\
cdcd6298 Jan Beulich         2012-01-02  240  	__typeof__(*(p2)) __old2 = (o2), __new2 = (n2);			\
cdcd6298 Jan Beulich         2012-01-02  241  	BUILD_BUG_ON(sizeof(*(p1)) != sizeof(long));			\
cdcd6298 Jan Beulich         2012-01-02  242  	BUILD_BUG_ON(sizeof(*(p2)) != sizeof(long));			\
cdcd6298 Jan Beulich         2012-01-02  243  	VM_BUG_ON((unsigned long)(p1) % (2 * sizeof(long)));		\
cdcd6298 Jan Beulich         2012-01-02  244  	VM_BUG_ON((unsigned long)((p1) + 1) != (unsigned long)(p2));	\
cdcd6298 Jan Beulich         2012-01-02 @245  	asm volatile(pfx "cmpxchg%c4b %2; sete %0"			\
cdcd6298 Jan Beulich         2012-01-02  246  		     : "=a" (__ret), "+d" (__old2),			\
cdcd6298 Jan Beulich         2012-01-02  247  		       "+m" (*(p1)), "+m" (*(p2))			\
cdcd6298 Jan Beulich         2012-01-02  248  		     : "i" (2 * sizeof(long)), "a" (__old1),		\
cdcd6298 Jan Beulich         2012-01-02  249  		       "b" (__new1), "c" (__new2));			\
cdcd6298 Jan Beulich         2012-01-02  250  	__ret;								\
cdcd6298 Jan Beulich         2012-01-02  251  })
cdcd6298 Jan Beulich         2012-01-02  252  

:::::: The code at line 245 was first introduced by commit
:::::: cdcd629869fabcd38ebd24a03b0a05ec1cbcafb0 x86: Fix and improve cmpxchg_double{,_local}()

:::::: TO: Jan Beulich <JBeulich@suse.com>
:::::: CC: Ingo Molnar <mingo@elte.hu>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33425 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-01-22 10:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-30  6:44 arch/x86/include/asm/cmpxchg.h:245:2: error: 'asm' operand has impossible constraints kbuild test robot
2018-11-30  6:55 ` Juergen Gross
     [not found] <201901221204.ZqZgxRnA%fengguang.wu@intel.com>
2019-01-22 10:08 ` Borislav Petkov
  -- strict thread matches above, loose matches on Subject: below --
2019-01-01 14:02 kbuild test robot
2018-12-12 12:46 kbuild test robot
2018-12-08  5:37 kbuild test robot
2018-11-20 10:26 kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).