Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7221288ybi; Wed, 5 Jun 2019 13:25:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmyGxTElH9pbSpTPG0yUex9mf5qA9eDP5XFslXp3eh0usEZNbHU+kulr16oaM2dV80vhMx X-Received: by 2002:a62:1ec1:: with SMTP id e184mr49274275pfe.185.1559766307809; Wed, 05 Jun 2019 13:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559766307; cv=none; d=google.com; s=arc-20160816; b=Mw1Z5TVVmne/ZGVyZTURG8iGj4AGQ75VqYQc8iViaXf/yuko94zIGf7qaGcPI5vIE8 +QFBii3RzJceNOXOlh5xGVHR6jjPiZE4EbNrypF4TcDHIXWHaGpZ/wIGihppBoZ4gK2B SFinxsVP3d+yjbN+P/xMqTn6vrZoeZ777EkwNmjhwSXQ6Kipyzuu/uiABR+09vFeDues t0DLT+6WR8JMdz7sLIO0gGjXYiOWvUSZ73rc8oQ1aO5ldhUlRG1/a+nfEKPJ+VDrFpjd RuavWHJgiEsuWijVn7COELWzGplbCui+UdrweSr81VK0LBy9643DAdZvDdGTdgG7//3e sDvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:date:subject:cc:from :dkim-signature; bh=QJQbMka1MXUwYIt/ZO5sWq6DO1jrK8MhlctrAEsYl7o=; b=Rgf+ipQ2Sm3abmODPyAGULH+hmAQD6PUhcc5TDvwFhmpZlNX4wOktslbivWtX6L3Ft Cyq0BsL23Ac1NoqNezbKL7rQGsvtgJN+Ga1CZPHZIrGwjzmfbxFxnYddtD8DNRDikhP6 AiOe10GiN6J4d/ZrZEX0zaqYzQooYVCR0fs9nU+s3jC24PzzWvjzZwYK4RSndlp3ZDqk vBUNuxiwREmO4/TEgEWlLlssYZ5OE3hGRo1G2dcSvnvjB2EZ4Wvz7trbFAKq4dgUhfeR DVtG5BIlzyhi+VoEN6WtzReNKrcvqcuvEpcBWmaUYvxw+omJoOoMZHFRO+pPbkz/atKx cNQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@marek-ca.20150623.gappssmtp.com header.s=20150623 header.b="z/jx0n6r"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g12si26449352pla.322.2019.06.05.13.24.50; Wed, 05 Jun 2019 13:25:07 -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=fail header.i=@marek-ca.20150623.gappssmtp.com header.s=20150623 header.b="z/jx0n6r"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726704AbfFEUWy (ORCPT + 99 others); Wed, 5 Jun 2019 16:22:54 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:46799 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726561AbfFEUWy (ORCPT ); Wed, 5 Jun 2019 16:22:54 -0400 Received: by mail-qt1-f196.google.com with SMTP id z19so10249qtz.13 for ; Wed, 05 Jun 2019 13:22:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marek-ca.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=QJQbMka1MXUwYIt/ZO5sWq6DO1jrK8MhlctrAEsYl7o=; b=z/jx0n6rsGTbQSFzvt5ikx9wlxvOJwDIcrBdGcbuAJ/vYaJszYqgNGBH/ysXQVLZ9V 8Oq41zXAr8lov85dQndkojs6gARfWDm/dnN46Kzi/+47f94ktklVlvO4lfn/4dmqBz6e 415MTiIZ57QU/NAdAz5Ty0gXI4jQN05qF/kQ0Fe8rrLAbBZTkI1695u8eh4+qjhq41j2 5UsawJrak9nMB1MHo45kAXNfidWNFXSeTpuUu36BkKQIi3JimeYc4To6UromjR6erZsJ s8pVmhGSRnZazsg41G6BxAv3om6f5TdgWuHTSmOP1j93bQX9FetCg9b3PNZq4cyxclpl ZrrA== 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; bh=QJQbMka1MXUwYIt/ZO5sWq6DO1jrK8MhlctrAEsYl7o=; b=gVVZW2HYcl4OBm6LlcQIhwSeF7OVCo98Hvw0xzXr6JptmDVCnl3XlCjOQubHijooxI +fTGKQtb+wIhO4ytMovVn/XF2zAOrPH42JHAtLpwZQFleNgGNLOR4P2jYgqH+k6p53Et E29/Tg5LTl/0qxjGIZzi7fpFR7TQLsT4Vuma0WCweyySm31HY6hym7ZIdQsI2iHqYTvQ WMY58xonUrK7vJqB2gy/YU1SLkflAVVvxEwCzjXjfPQFc5MqF4+QK2RLnWDC30Aj/sME /yUvGrZ1MVf5A24SKiOZDO7zqt3atjOan63xOdfV6wyjZwNpjW76Ds67Eqz7R9U1AJwE l28Q== X-Gm-Message-State: APjAAAUVXTjuAZLAkC0zVLz0kwM2nbRKXXe564CMsTAaOzany58WmnKa AT7fUdb2JGNn5SkULB+DuOEijw== X-Received: by 2002:aed:378a:: with SMTP id j10mr37083052qtb.6.1559766173362; Wed, 05 Jun 2019 13:22:53 -0700 (PDT) Received: from localhost.localdomain ([147.253.86.153]) by smtp.gmail.com with ESMTPSA id d38sm7565318qtb.95.2019.06.05.13.22.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jun 2019 13:22:52 -0700 (PDT) From: Jonathan Marek Cc: Stanimir Varbanov , Andy Gross , David Brown , Mauro Carvalho Chehab , linux-media@vger.kernel.org (open list:QUALCOMM VENUS VIDEO ACCELERATOR DRIVER), linux-arm-msm@vger.kernel.org (open list:QUALCOMM VENUS VIDEO ACCELERATOR DRIVER), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] Revert "media: hfi_parser: don't trick gcc with a wrong expected size" Date: Wed, 5 Jun 2019 16:19:40 -0400 Message-Id: <20190605201941.4150-1-jonathan@marek.ca> X-Mailer: git-send-email 2.17.1 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit ded716267196862809e5926072adc962a611a1e3. This change doesn't make any sense and breaks the driver. Signed-off-by: Jonathan Marek --- drivers/media/platform/qcom/venus/hfi_helper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/qcom/venus/hfi_helper.h b/drivers/media/platform/qcom/venus/hfi_helper.h index 34ea503a9842..15804ad7e65d 100644 --- a/drivers/media/platform/qcom/venus/hfi_helper.h +++ b/drivers/media/platform/qcom/venus/hfi_helper.h @@ -569,7 +569,7 @@ struct hfi_capability { struct hfi_capabilities { u32 num_capabilities; - struct hfi_capability *data; + struct hfi_capability data[1]; }; #define HFI_DEBUG_MSG_LOW 0x01 @@ -726,7 +726,7 @@ struct hfi_profile_level { struct hfi_profile_level_supported { u32 profile_count; - struct hfi_profile_level *profile_level; + struct hfi_profile_level profile_level[1]; }; struct hfi_quality_vs_speed { -- 2.17.1