Thread (24 messages) 24 messages, 4 authors, 2019-09-18

Re: [PATCH v7 3/6] powerpc/perf: consolidate read_user_stack_32

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2019-09-02 04:01:25
Also in: linux-fsdevel, lkml

Michael Ellerman [off-list ref] writes:
Michal Suchanek [off-list ref] writes:
...
quoted
@@ -295,6 +279,12 @@ static inline int current_is_64bit(void)
 }
 
 #else  /* CONFIG_PPC64 */
+static int read_user_stack_slow(void __user *ptr, void *buf, int nb)
+{
+	return 0;
+}
+#endif /* CONFIG_PPC64 */
Ending the PPC64 else case here, and then restarting it below with an
ifndef means we end up with two parts of the file that define 32-bit
code, with a common chunk in the middle, which I dislike.

I'd rather you add the empty read_user_stack_slow() in the existing
#else section and then move read_user_stack_32() below the whole ifdef
PPC64/else/endif section.

Is there some reason that doesn't work?
Gah, I missed that you split the whole file later in the series. Any
reason you did it in two steps rather than moving patch 6 earlier in the
series?

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help