ARC: uacces: remove lp_start, lp_end from clobber list [Linux 5.0]

This Linux kernel change "ARC: uacces: remove lp_start, lp_end from clobber list" is included in the Linux 5.0 release. This change is authored by Vineet Gupta <vgupta [at] synopsys.com> on Tue Feb 5 10:07:07 2019 -0800. The commit for this change in Linux stable tree is d5e3c55 (patch).

ARC: uacces: remove lp_start, lp_end from clobber list

Newer ARC gcc handles lp_start, lp_end in a different way and doesn't
like them in the clobber list.

Signed-off-by: Vineet Gupta <[email protected]>

There are 8 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 arch/arc/include/asm/uaccess.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arc/include/asm/uaccess.h b/arch/arc/include/asm/uaccess.h
index c9173c0..eabc3ef 100644
--- a/arch/arc/include/asm/uaccess.h
+++ b/arch/arc/include/asm/uaccess.h
@@ -207,7 +207,7 @@
        */
          "=&r" (tmp), "+r" (to), "+r" (from)
        :
-       : "lp_count", "lp_start", "lp_end", "memory");
+       : "lp_count", "memory");

        return n;
    }
@@ -433,7 +433,7 @@
         */
          "=&r" (tmp), "+r" (to), "+r" (from)
        :
-       : "lp_count", "lp_start", "lp_end", "memory");
+       : "lp_count", "memory");

        return n;
    }
@@ -653,7 +653,7 @@ static inline unsigned long __arc_clear_user(void __user *to, unsigned long n)
    "   .previous           \n"
    : "+r"(d_char), "+r"(res)
    : "i"(0)
-   : "lp_count", "lp_start", "lp_end", "memory");
+   : "lp_count", "memory");

    return res;
 }
@@ -686,7 +686,7 @@ static inline unsigned long __arc_clear_user(void __user *to, unsigned long n)
    "   .previous           \n"
    : "+r"(res), "+r"(dst), "+r"(src), "=r"(val)
    : "g"(-EFAULT), "r"(count)
-   : "lp_count", "lp_start", "lp_end", "memory");
+   : "lp_count", "memory");

    return res;
 }

Leave a Reply

Your email address will not be published. Required fields are marked *