Geert Uytterhoeven
87d93029fe
m68k: Fix asm register constraints for atomic ops
...
Depending on register assignment by the compiler:
{standard input}:3084: Error: operands mismatch -- statement `andl %a1,%d1' ignored
{standard input}:3145: Error: operands mismatch -- statement `orl %a1,%d1' ignored
{standard input}:3195: Error: operands mismatch -- statement `eorl %a1,%d1' ignored
Indeed, the first operand must not be an address register. However, it
can be an immediate value. Fix this by adjusting the register
constraint from "g" (general purpose register) to "di" (data register or
immediate).
Fixes: e39d88ea3c ("locking/atomic, arch/m68k: Implement atomic_fetch_{add,sub,and,or,xor}()")
Fixes: d839bae426 ("locking,arch,m68k: Fold atomic_ops")
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Reported-by: kernel test robot <lkp@intel.com >
Reported-by: Arnd Bergmann <arnd@arndb.de >
Reported-by: Alexander Viro <viro@zeniv.linux.org.uk >
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org >
Tested-by: Arnd Bergmann <arnd@arndb.de >
Link: https://lore.kernel.org/r/20210809112903.3898660-1-geert@linux-m68k.org
2021-08-23 13:23:57 +02:00
..
2020-07-26 23:34:24 +10:00
2013-11-26 11:09:17 +01:00
2009-01-16 21:58:10 +10:00
2010-05-26 19:51:09 +02:00
2009-01-16 21:58:10 +10:00
2017-11-02 11:10:55 +01:00
2009-12-12 13:08:14 +01:00
2017-08-21 11:52:55 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-08-19 13:24:10 +02:00
2015-01-15 13:44:51 +01:00
2011-05-19 18:19:11 +02:00
2021-08-23 13:23:57 +02:00
2021-05-06 19:24:11 -07:00
2011-12-10 19:52:48 +01:00
2016-09-26 12:02:59 +10:00
2017-11-02 11:10:55 +01:00
2018-02-21 15:35:43 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-06-08 11:05:58 -07:00
2020-06-08 11:05:57 -07:00
2017-11-02 11:10:55 +01:00
2020-08-20 15:45:15 -04:00
2021-05-26 13:20:51 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-22 10:31:52 +02:00
2017-11-02 11:10:55 +01:00
2018-07-30 09:15:01 +10:00
2009-01-16 21:58:10 +10:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-09-10 10:30:09 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-06-24 09:16:47 +10:00
2020-05-12 19:34:52 +03:00
2017-11-02 11:10:55 +01:00
2009-03-02 16:49:37 -05:00
2019-06-05 17:36:37 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-05-07 00:26:34 -07:00
2020-07-27 12:32:00 +10:00
2018-07-29 10:48:18 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-12-29 15:36:49 -08:00
2017-11-02 11:10:55 +01:00
2020-01-06 09:45:59 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-07-27 12:32:00 +10:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2014-09-29 09:56:19 +10:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-05-28 11:22:15 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-13 12:10:24 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-05-25 10:55:56 +02:00
2020-12-16 00:07:17 -08:00
2017-11-02 11:10:55 +01:00
2010-02-27 18:31:09 +01:00
2019-08-19 13:24:10 +02:00
2019-01-21 10:36:53 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-07-01 11:06:03 -07:00
2021-07-01 11:06:03 -07:00
2021-06-08 17:00:09 +02:00
2017-11-02 11:10:55 +01:00
2019-06-05 17:36:37 +02:00
2017-11-02 11:10:55 +01:00
2017-11-06 08:25:20 +10:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:26:41 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-05-26 13:20:51 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-09-25 00:36:41 +09:00
2021-07-01 11:06:03 -07:00
2021-07-08 11:48:22 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-04-06 09:33:20 +02:00
2017-02-24 17:46:56 -08:00
2017-11-02 11:10:55 +01:00
2018-05-28 09:45:26 +10:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-06-29 10:53:55 -07:00
2021-06-04 19:32:21 +01:00
2017-11-02 11:10:55 +01:00
2021-06-29 10:53:55 -07:00
2017-11-02 11:10:55 +01:00
2018-05-07 07:15:41 +02:00
2017-11-02 11:10:55 +01:00
2021-07-01 11:06:02 -07:00
2020-06-09 09:39:13 -07:00
2017-11-02 11:10:55 +01:00
2018-10-31 08:54:12 -07:00
2017-11-02 11:10:55 +01:00
2018-05-28 09:45:26 +10:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-07-13 11:39:13 +02:00
2020-08-12 10:57:58 -07:00
2017-11-02 11:10:55 +01:00
2013-11-26 11:09:16 +01:00
2017-11-02 11:10:55 +01:00
2009-01-16 21:58:10 +10:00
2017-11-02 11:10:55 +01:00
2021-07-01 11:06:03 -07:00
2020-06-09 09:39:14 -07:00
2017-11-02 11:10:55 +01:00
2009-01-16 21:58:10 +10:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-04-19 12:11:55 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-03-20 21:12:36 -04:00
2020-11-09 08:16:55 -07:00
2017-11-02 11:10:55 +01:00
2019-04-03 10:32:54 +02:00
2021-06-29 10:53:52 -07:00
2011-12-24 21:47:57 +10:00
2020-10-05 21:51:31 +10:00
2017-11-02 11:10:55 +01:00
2020-01-12 16:49:20 +01:00
2017-11-02 11:10:55 +01:00
2018-05-28 09:45:26 +10:00
2020-12-15 12:13:43 -08:00
2019-12-10 10:12:55 +01:00
2018-05-28 09:45:26 +10:00