Skip to content

Commit

Permalink
parisc: Delete redundant register definitions in <asm/assembly.h>
Browse files Browse the repository at this point in the history
We define sp and ipsw in <asm/asmregs.h> using ".reg", and when using
current binutils (snapshot 2.40.50.20230611) the definitions in
<asm/assembly.h> using "=" conflict with those:

arch/parisc/include/asm/assembly.h: Assembler messages:
arch/parisc/include/asm/assembly.h:93: Error: symbol `sp' is already defined
arch/parisc/include/asm/assembly.h:95: Error: symbol `ipsw' is already defined

Delete the duplicate definitions in <asm/assembly.h>.

Also delete the definition of gp, which isn't used anywhere.

Signed-off-by: Ben Hutchings <benh@debian.org>
Cc: stable@vger.kernel.org # v6.0+
Signed-off-by: Helge Deller <deller@gmx.de>
  • Loading branch information
Ben Hutchings authored and Helge Deller committed Jun 17, 2023
1 parent 858fd16 commit b5b2a02
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/parisc/include/asm/assembly.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@
#include <asm/asmregs.h>
#include <asm/psw.h>

sp = 30
gp = 27
ipsw = 22

/*
* We provide two versions of each macro to convert from physical
* to virtual and vice versa. The "_r1" versions take one argument
Expand Down

0 comments on commit b5b2a02

Please sign in to comment.