From: Damien Lespiau Subject: [PATCH i-g-t 09/43] kms_rotation_crc: Make more functions static Date: Thu, 10 Jul 2014 19:00:10 +0100 Message-ID: <1405015244-11370-10-git-send-email-damien.lespiau@intel.com> References: <1405015244-11370-1-git-send-email-damien.lespiau@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by gabe.freedesktop.org (Postfix) with ESMTP id A2FC46E3A4 for ; Thu, 10 Jul 2014 11:01:19 -0700 (PDT) In-Reply-To: <1405015244-11370-1-git-send-email-damien.lespiau@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org More of the same. This time no need to move code around, just adding static. Signed-off-by: Damien Lespiau --- tests/kms_rotation_crc.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index 6249e0f..b079376 100644 --- a/tests/kms_rotation_crc.c +++ b/tests/kms_rotation_crc.c @@ -65,13 +65,7 @@ typedef struct { int rotate; } data_t; -int set_plane_property(data_t *data, int plane_id, const char *prop_name, int - val, igt_crc_t *crc_output); -void test_sprite_rotation(data_t *data); -void test_primary_rotation(data_t *data); -bool prepare_crtc(data_t *data); - -bool prepare_crtc(data_t *data) +static bool prepare_crtc(data_t *data) { drmModeModeInfo *mode; igt_display_t *display = &data->display; @@ -249,7 +243,7 @@ static int connector_find_plane(int gfx_fd, uint32_t pipe, uint32_t type) return 0; } -int set_plane_property(data_t *data, int plane_id, const char *prop_name, int +static int set_plane_property(data_t *data, int plane_id, const char *prop_name, int val, igt_crc_t *crc_output) { int i = 0, ret = 0; @@ -313,7 +307,7 @@ static void cleanup_crtc(data_t *data, igt_output_t *output) igt_display_commit(display); } -void test_sprite_rotation(data_t *data) +static void test_sprite_rotation(data_t *data) { igt_display_t *display = &data->display; igt_output_t *output; @@ -355,7 +349,7 @@ void test_sprite_rotation(data_t *data) } -void test_primary_rotation(data_t *data) +static void test_primary_rotation(data_t *data) { igt_display_t *display = &data->display; igt_output_t *output; -- 1.8.3.1