From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751317AbdJWHmq (ORCPT ); Mon, 23 Oct 2017 03:42:46 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:50672 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750756AbdJWHmp (ORCPT ); Mon, 23 Oct 2017 03:42:45 -0400 X-Google-Smtp-Source: ABhQp+QVt83mTnsUnLyygUgBU2CPObHPiljTuEUt8IYXCYTg8B/febaAA5twQu6jrMwzNQS+Tpe4nw== From: Sumit Semwal To: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, shuah@kernel.org Cc: will.deacon@arm.com, panand@redhat.com, paul.elder@pitt.edu, Sumit Semwal Subject: [PATCH] selftests: breakpoints: fix compile error on breakpoint_test_arm64 Date: Mon, 23 Oct 2017 13:12:22 +0530 Message-Id: <1508744542-11181-1-git-send-email-sumit.semwal@linaro.org> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The current mainline breakpoints test for arm64 fails to compile with breakpoint_test_arm64.c: In function ‘set_watchpoint’: breakpoint_test_arm64.c:97:28: error: storage size of ‘dreg_state’ isn’t known struct user_hwdebug_state dreg_state; Adding a direct include for asm/ptrace.h helps it to build, and passes the test on mainline on hikey. Signed-off-by: Sumit Semwal --- tools/testing/selftests/breakpoints/breakpoint_test_arm64.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/breakpoints/breakpoint_test_arm64.c b/tools/testing/selftests/breakpoints/breakpoint_test_arm64.c index 960d02100c26..2d95e5adde72 100644 --- a/tools/testing/selftests/breakpoints/breakpoint_test_arm64.c +++ b/tools/testing/selftests/breakpoints/breakpoint_test_arm64.c @@ -19,6 +19,7 @@ #define _GNU_SOURCE +#include #include #include #include -- 2.7.4