[linux-next:master 11052/11963] arch/powerpc/include/asm/reg_fsl_emb.h:18:9: error: impossible constraint in 'asm'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   11afac187274a6177a7ac82997f8691c0f469e41
commit: f01dbd73ccf122486ad4b52e74f5505985dd6af4 [11052/11963] powerpc/fsl: Modernise mt/mfpmr
config: powerpc-randconfig-r016-20220116 (https://download.01.org/0day-ci/archive/20240305/202403051835.iqLGz996-lkp@xxxxxxxxx/config)
compiler: powerpc-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240305/202403051835.iqLGz996-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/202403051835.iqLGz996-lkp@xxxxxxxxx/

All error/warnings (new ones prefixed by >>):

   In file included from arch/powerpc/include/asm/reg.h:26,
                    from arch/powerpc/include/asm/processor.h:11,
                    from include/linux/sched.h:13,
                    from arch/powerpc/perf/core-fsl-emb.c:9:
   arch/powerpc/include/asm/reg_fsl_emb.h: In function 'mfpmr':
>> arch/powerpc/include/asm/reg_fsl_emb.h:18:9: warning: 'asm' operand 1 probably does not match constraints
      18 |         asm (".machine push; "
         |         ^~~
>> arch/powerpc/include/asm/reg_fsl_emb.h:18:9: error: impossible constraint in 'asm'


vim +/asm +18 arch/powerpc/include/asm/reg_fsl_emb.h

    11	
    12	#ifndef __ASSEMBLY__
    13	/* Performance Monitor Registers */
    14	static inline unsigned int mfpmr(unsigned int rn)
    15	{
    16		unsigned int rval;
    17	
  > 18		asm (".machine push; "
    19		     ".machine e300; "
    20		     "mfpmr %[rval], %[rn];"
    21		     ".machine pop;"
    22		     : [rval] "=r" (rval) : [rn] "i" (rn));
    23	
    24		return rval;
    25	}
    26	

-- 
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]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux