Skip to contentSkip to conversation

Fix mistake in strcmp() for skipping in aarch64

PATCH Superseded [email protected] 2 participants 3 messages Dec 17, 2016 – Jan 11, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 Fix mistake in strcmp() for skipping in aarch64

From: Vertigo <[email protected]>

Fix mistake in strcmp() for skipping in aarch64. And there is the same error in aarch64be, so add it.

---
 testcases/kernel/mem/tunable/max_map_count.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
testcases/kernel/mem/tunable/max_map_count.c +2 -1
index eb7486f..75a5098 100644
@@ -139,7 +139,8 @@ static bool filter_map(const char *line)
 		return true;
 #elif defined(__arm__)
 	/* Skip it when run it in aarch64 */
-	if (strcmp(un.machine, "aarch64"))
+	if ((!strcmp(un.machine, "aarch64"))
+	|| (!strcmp(un.machine, "aarch64_be")))
 		return false;
 
 	/* Older arm kernels didn't label their vdso maps */
Signature · 1 line
2.10.1.windows.1
#2 lore raw

PATCH v3 1/1 Fix mistake in strcmp() for skipping in aarch64

Hi Cyril,
Sorry for my late response. I rarely check mails recent days.Thanks a lot for your help. Best regards,
Hoang

From: Cyril Hrubis <[email protected]>
To: [email protected]
Cc: [email protected]
Sent: Wednesday, 11 January 2017, 16:48
Subject: Re: [LTP] [PATCH v3] Fix mistake in strcmp() for skipping in aarch64

Hi!
Pushed, thanks.

Signature · 8 lines
Cyril Hrubis
[email protected]


   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20170111/2d40ad59/attachment.html>