From patchwork Wed Apr 15 09:45:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Petter Selasky X-Patchwork-Id: 63071 X-Patchwork-Delegate: hverkuil@xs4all.nl Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1jOeZv-002fT0-1U; Wed, 15 Apr 2020 09:43:31 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2895786AbgDOJqY (ORCPT + 1 other); Wed, 15 Apr 2020 05:46:24 -0400 Received: from turbocat.net ([88.99.82.50]:60444 "EHLO mail.turbocat.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2895787AbgDOJqV (ORCPT ); Wed, 15 Apr 2020 05:46:21 -0400 Received: from hps2020.home.selasky.org (unknown [62.141.129.235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id C4129260282; Wed, 15 Apr 2020 11:46:17 +0200 (CEST) To: Linux Media Mailing List , Hans Verkuil From: Hans Petter Selasky Subject: [PATCH] [V4L-UTILS] Fix for mismatched class/struct tags Message-ID: <486af8b4-9feb-2f21-cfca-3f095db531f2@selasky.org> Date: Wed, 15 Apr 2020 11:45:17 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 Content-Language: en-US Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-LSpam-Score: -2.4 (--) X-LSpam-Report: No, score=-2.4 required=5.0 tests=BAYES_00=-1.9,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1 autolearn=ham autolearn_force=no Fix for mismatched class/struct tags. Signed-off-by: Hans Petter Selasky fail_on_test(g_memory() == 0); diff --git a/utils/v4l2-compliance/v4l2-test-buffers.cpp b/utils/v4l2-compliance/v4l2-test-buffers.cpp index 372bcfb8..a746410e 100644 --- a/utils/v4l2-compliance/v4l2-test-buffers.cpp +++ b/utils/v4l2-compliance/v4l2-test-buffers.cpp @@ -49,8 +49,8 @@ #define VIVID_CID_QUEUE_ERROR (VIVID_CID_VIVID_BASE + 70) #define VIVID_CID_REQ_VALIDATE_ERROR (VIVID_CID_VIVID_BASE + 72) -static struct cv4l_fmt cur_fmt; -static struct cv4l_fmt cur_m2m_fmt; +static cv4l_fmt cur_fmt; +static cv4l_fmt cur_m2m_fmt; static int stream_from_fd = -1; static bool stream_use_hdr; static unsigned max_bytesused[VIDEO_MAX_PLANES]; @@ -357,7 +357,7 @@ int buffer::check(unsigned type, unsigned memory, unsigned index, unsigned timestamp_src = g_timestamp_src(); unsigned frame_types = 0; unsigned buf_states = 0; - const struct cv4l_fmt &fmt = is_m2m ? cur_m2m_fmt : cur_fmt; + const cv4l_fmt &fmt = is_m2m ? cur_m2m_fmt : cur_fmt; fail_on_test(g_type() != type);