All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20210302233925.081075e0@sf>

diff --git a/a/1.txt b/N1/1.txt
index 91ca987..f6fbf1d 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -9,7 +9,7 @@ Sergei Trofimovich <slyfox@gentoo.org> wrote:
 > static inline long syscall_get_error(struct task_struct *task,
 >                                      struct pt_regs *regs)
 > {
->         return regs->r10 = -1 ? regs->r8:0;
+>         return regs->r10 == -1 ? regs->r8:0;
 > }
 > 
 > static inline long syscall_get_return_value(struct task_struct *task,
@@ -52,8 +52,8 @@ Sergei Trofimovich <slyfox@gentoo.org> wrote:
 >  static inline long syscall_get_error(struct task_struct *task,
 >  				     struct pt_regs *regs)
 >  {
-> -	return regs->r10 = -1 ? regs->r8:0;
-> +	return regs->r10 = -1 ? -regs->r8:0;
+> -	return regs->r10 == -1 ? regs->r8:0;
+> +	return regs->r10 == -1 ? -regs->r8:0;
 >  }
 >  
 >  static inline long syscall_get_return_value(struct task_struct *task,
diff --git a/a/content_digest b/N1/content_digest
index 48195cd..d4d54a2 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -2,7 +2,7 @@
  "ref\020210221002554.333076-2-slyfox@gentoo.org\0"
  "From\0Sergei Trofimovich <slyfox@gentoo.org>\0"
  "Subject\0Re: [PATCH] ia64: fix ptrace(PTRACE_SYSCALL_INFO_EXIT) sign\0"
- "Date\0Tue, 02 Mar 2021 23:39:25 +0000\0"
+ "Date\0Tue, 2 Mar 2021 23:39:25 +0000\0"
  "To\0Andrew Morton <akpm@linux-foundation.org>\0"
  "Cc\0linux-kernel@vger.kernel.org"
   linux-ia64@vger.kernel.org
@@ -21,7 +21,7 @@
  "> static inline long syscall_get_error(struct task_struct *task,\n"
  ">                                      struct pt_regs *regs)\n"
  "> {\n"
- ">         return regs->r10 = -1 ? regs->r8:0;\n"
+ ">         return regs->r10 == -1 ? regs->r8:0;\n"
  "> }\n"
  "> \n"
  "> static inline long syscall_get_return_value(struct task_struct *task,\n"
@@ -64,8 +64,8 @@
  ">  static inline long syscall_get_error(struct task_struct *task,\n"
  ">  \t\t\t\t     struct pt_regs *regs)\n"
  ">  {\n"
- "> -\treturn regs->r10 = -1 ? regs->r8:0;\n"
- "> +\treturn regs->r10 = -1 ? -regs->r8:0;\n"
+ "> -\treturn regs->r10 == -1 ? regs->r8:0;\n"
+ "> +\treturn regs->r10 == -1 ? -regs->r8:0;\n"
  ">  }\n"
  ">  \n"
  ">  static inline long syscall_get_return_value(struct task_struct *task,\n"
@@ -80,4 +80,4 @@
  "\n"
    Sergei
 
-73fa4c74fbea59b4cbd8572a885b9227ab841642e884639459c0458e54c82a01
+e0c8e7788b9697ce1c68697d7c8dd57f0bbd723bcf3f25663fdcec3d3a1420f4

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.