Commit 6e780cf5 authored by Mark Salter's avatar Mark Salter

C6X: remove dead code from entry.S

The ENDPROC() on sys_fadvise64_c6x() in arch/c6x/kernel/entry.S is
outside of the conditional block with the matching ENTRY() macro. This
leads a newer (v2.22 vs. v2.20) assembler to complain:

  /tmp/ccGZBaPT.s: Assembler messages:
  /tmp/ccGZBaPT.s: Error: .size expression for sys_fadvise64_c6x does not evaluate to a constant

The conditional block became dead code when c6x switched to generic
unistd.h and should be removed along with the offending ENDPROC().
Signed-off-by: default avatarMark Salter <>
Acked-by: default avatarDavid Howells <>
parent fde7d904
......@@ -717,33 +717,6 @@ ENTRY(sys_ftruncate64_c6x)
;; On Entry
;; A4 - fd
;; B4 - offset_lo (LE), offset_hi (BE)
;; A6 - offset_lo (BE), offset_hi (LE)
;; B6 - len
;; A8 - advice
MVKL .S1 sys_fadvise64,A0
MVKH .S1 sys_fadvise64,A0
BNOP .S2X A0,2
B .S2 sys_fadvise64
MV .L2 B4,B5
|| MV .D2X A6,B4
MV .D2X A6,B5
MV .D1X B6,A6
MV .D2X A8,B6
;; On Entry
;; A4 - fd
;; B4 - offset_lo (LE), offset_hi (BE)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment