From patchwork Mon Oct 23 07:42:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sumit Semwal X-Patchwork-Id: 116641 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4349215qgn; Mon, 23 Oct 2017 00:42:49 -0700 (PDT) X-Received: by 10.84.128.72 with SMTP id 66mr9532329pla.250.1508744569533; Mon, 23 Oct 2017 00:42:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508744569; cv=none; d=google.com; s=arc-20160816; b=PwEf/kmfi9j8ZVUDvlbp5vYUkRkElrmKP6iBau8Sm7wjC0ysMrQh4gmrlfDYIFFwbK qLxJxvL+Y5DSfnEmFvxhv6XbxNcdtYHtK2DNNR4EcpEQ7ZFol8S9ySI6eCGzd5HA2yUp VXzpT/cdu86ERuGWgp0soHZjbCbLYrPEilEe5kLFSfd1eV50SpXGEZhFyWtCUJaRw1Vc N+qusN1x1bNUhjN+gFfnN97z8DZJWmZt/Bn6DLuoYDrpksesnPj6NMhMdAl7cG2mm+p6 L8km3l+s49f2bnBtu6E761pSBAJvypqeJ9RSLmgksVIWGhPG7YtayecEd4m0vM2xarqL gyiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=6BW7oPLdHkKTMNhMDR2BJhOHVcIVCG77nQz9yySFNTE=; b=iM5oY0A46oD/+m6PcpIUZZMCkFkYJuVgL3o/eLNPLqsT2xD38aPAbFdPu+Ug74zp2q 5yo+1vgjkZ6K6OkVlowhPZSxXcM138K4OsZ9vsViR4MlvrItrjFkCslamhvZetaZrGAg JHJ7U6a91642ha+kpuGk6umN5juPmqs8GUubQsaKhZFYAB+i4jK8b6MXZDRwObQVQo+y zlbxhrqN+23STqIhw1R5ne0RdPdapVg/iuvYPQVWerRavANfnKVRr2H+FFL04LVoTk++ atp40uy1DIRHilbCgcgckPp7gA7IGKQInAZWqdlR+kkGsxIZibwV5+M7oV3Io43CbPLn bjzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VNBRJ8MJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r3si4577323pgn.171.2017.10.23.00.42.49; Mon, 23 Oct 2017 00:42:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VNBRJ8MJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932088AbdJWHmr (ORCPT + 27 others); Mon, 23 Oct 2017 03:42:47 -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 Received: by mail-pg0-f66.google.com with SMTP id y5so3301668pgq.7 for ; Mon, 23 Oct 2017 00:42:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6BW7oPLdHkKTMNhMDR2BJhOHVcIVCG77nQz9yySFNTE=; b=VNBRJ8MJW9OceXexpI6GUF8iz/oHHooIWcDBrn0AEPMYO0vOK0xlYEcR9KvwbujV89 Z5yxTi8UIWvDBpu6G6A7fbDLbyPZgigTp6mMRXJS/Oy0sldmfkfXIq44CxF+DzCjleqp fmo5uNnTTHQNiiAU7XVYYbk2oIBd3apnfr9h4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6BW7oPLdHkKTMNhMDR2BJhOHVcIVCG77nQz9yySFNTE=; b=H86gAfnem5Uft6+7sStWH80ZJaa8xSdslnbF0tPTWlnuYV97xh4aP+5f+UhcyPOWUH Pd/I6k8uNMr7P9TWQ+QbqP/J0UDqi8p4wtcUIGb9wW7rLQ4oeyyMGtEyH2mYabni4MIo CoJ0SZ596pH4n+lTxg2doHFjlz4biOwujAE1g4icBllqoA153KB/BXuVKduMLVmiA5Ru Maf+6Wbf+uDqPyGUzHurIT6Y53/cA0bYUldg8mFxNwEI5V8uAbnmIXF2UPVhA8jNADvn 1hR2pk/EyWDyBJ45t7yYaMAC2bExdRkVCp4+s2BGtv6vX0XP9t9XjbP0YYE0Y7I9W07Z WSkA== X-Gm-Message-State: AMCzsaW4rjw2ZVpQiwqoAX/OWn2W3q56mkMgcxYx7eQYd8h6RYgQqHuJ jw/BLMkJX+WPXyFih3JklFHlnGnQ9gI= X-Google-Smtp-Source: ABhQp+QVt83mTnsUnLyygUgBU2CPObHPiljTuEUt8IYXCYTg8B/febaAA5twQu6jrMwzNQS+Tpe4nw== X-Received: by 10.98.245.153 with SMTP id b25mr12293468pfm.296.1508744564999; Mon, 23 Oct 2017 00:42:44 -0700 (PDT) Received: from phantom.lan ([106.51.116.52]) by smtp.gmail.com with ESMTPSA id i89sm11682320pfj.144.2017.10.23.00.42.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Oct 2017 00:42:43 -0700 (PDT) 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk 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(+) -- 2.7.4 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