Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8631122ybi; Thu, 6 Jun 2019 16:16:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQC7VjzXjIhSjGJAf42TvIPNLjQvWUqgR5kKYTxn1ZnEM07Nn4CGbIfukTkZK+sZj8JCKm X-Received: by 2002:a65:5787:: with SMTP id b7mr260848pgr.148.1559862971637; Thu, 06 Jun 2019 16:16:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559862971; cv=none; d=google.com; s=arc-20160816; b=Q/6NCO3non+J5e/WdUoxcAdvNWFta+eiMz9zvdf4hMP77580BQy5RGUK+2Q59uD76U 5cnZDNDdGTAZkrsx9W0BtWNgiSqBgzIKcD+s+39R3/32jeCivRfMCkN4fwK7GQiOaItA 32o7bo+h6oByNxbgao+82bk4sVjKJUoixK1dOTQCEAw3I2N5uyAcn0FEe3qaNKBvHyKF cDSyMMBl1UncjkMX8sAzuxVzU3JAZ08RyyK8oBGLuzt7QXshgq5J3qLBbsse8V0IOKrr LA78obFWDhy3lO22AzO1MORbuKdqZqAi5VMMhutNDpHRnyL+dArLWFzq91y/IsNgs6EO HyMA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=yc3mIWAOmzHLsJR8ETFapoAFaIyvxuHseTv4ycdMJAA=; b=XS8A7NT12lC6oIjfg3e5S3SHmmT7l4n9h0/XoVhfAgmtw1BUojSVDmiHpLk/o7XJSg I7eDwwH6phfhklu4HEGDQ0AGaNMDoU61+UMcTtge/g+SzxV+p/PflwI6ovawkANbli2I Sk1PhyOVVvLtIcxtdus1EcrREz+JgF9i3oq9xvPJztbIy0RbTGJ+J6GxBGf/cXlOizj/ QK/WhY1DF1VhFGUQK/TrP5zikAU1A3XlojHSrTQ1KrWg8VSGpWYzOFhdKOt4G4jKCsmd H7jARzTs6bhPKK6GdE+sEK16oIxhHki/l9d1ZqELLUPE5y77YVPhT21z/UFkE4pH1zGf SHFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HfDVpn9r; 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 m4si298255pjk.66.2019.06.06.16.15.55; Thu, 06 Jun 2019 16:16:11 -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=HfDVpn9r; 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 S1727655AbfFFU5U (ORCPT + 99 others); Thu, 6 Jun 2019 16:57:20 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45358 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727271AbfFFU5U (ORCPT ); Thu, 6 Jun 2019 16:57:20 -0400 Received: by mail-wr1-f65.google.com with SMTP id f9so3785839wre.12 for ; Thu, 06 Jun 2019 13:57:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=yc3mIWAOmzHLsJR8ETFapoAFaIyvxuHseTv4ycdMJAA=; b=HfDVpn9rD1xoy6TiwTnp55C660rqvMS7UbuxsqaxbKuxOVCCCyXf/NFuK0R6wNw5e1 iT3FG4KKohgCds+EzsVs/xOqcJyfiSv8LJyESbdXog9CfwvnSHw0iIr0OivkDwgcSLLe VwaiURO5zaRUphb3Ux5P5ACJDJmGKk8GXEm29+xKm+ez9IMjXq1gtadxcb7GmbZ+gFaV 57nEgBaUd2Blq/aAreHgJzRoUPDudyyrqeClz3UeC2IV8KO9moXT17A51wgrOCxH0vMF hXFMwWz6+B+qJpI4kFc0lI2XJW3WqYS4rzlLoJvoS3KJU0Voy9EmP4uk5NsdfT+58Ju6 rwwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=yc3mIWAOmzHLsJR8ETFapoAFaIyvxuHseTv4ycdMJAA=; b=CZw7GipXJF6yatJftqzOLfDwOpXTSF0FlEtKfO0kwsx8hgvXwiJ+97oTsQKOIm0QFX 4mfBcK33IkOOyIW1l2HIkBBlerNoUyq8PRI+CsKrS5RgpovtD9UchCEhrxBG5XdWJwev NXTBzkaMhfodT12mdWl6Xd+NX3qCB5vk0wylckoSD9yw4fhxCvvrenCAQH8JCh+ocXVD +69JZMyfZMIG7Y/V5CVZ+bMfBtXco6Ae47seWHWyUlT5TmwoSAe9Fdre5t6CcTetSk1x ejvHsgR4umn1mTpDzYaeuv5grOwtdI2h2yySRqjQuF6mSinNyd/303zrFOjo2frZriSR LhCQ== X-Gm-Message-State: APjAAAVEdTT77qWNhF4RVLfGEgpggtR1dvAqOcidPooJWAHdkcyyj74Q TaD2x4Js8qmbeyYlZI1pBVQZHRp2YjA= X-Received: by 2002:a5d:4e46:: with SMTP id r6mr15283767wrt.290.1559854638401; Thu, 06 Jun 2019 13:57:18 -0700 (PDT) Received: from ?IPv6:2a02:587:1936:1900:9d54:196a:5d8d:4379? ([2a02:587:1936:1900:9d54:196a:5d8d:4379]) by smtp.googlemail.com with ESMTPSA id x11sm45119wmg.23.2019.06.06.13.57.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jun 2019 13:57:17 -0700 (PDT) Subject: Re: [PATCH] Revert "media: hfi_parser: don't trick gcc with a wrong expected size" To: Jonathan Marek Cc: Andy Gross , David Brown , Mauro Carvalho Chehab , "open list:QUALCOMM VENUS VIDEO ACCELERATOR DRIVER" , "open list:QUALCOMM VENUS VIDEO ACCELERATOR DRIVER" , open list References: <20190605201941.4150-1-jonathan@marek.ca> From: Stanimir Varbanov Message-ID: <59d458b5-8c29-1c66-ea39-b678889e25cc@linaro.org> Date: Thu, 6 Jun 2019 23:57:16 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190605201941.4150-1-jonathan@marek.ca> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jonathan, I sent a fix for that here [1] and Mauro already taken it. regards, Stan [1] https://patchwork.kernel.org/patch/10963369/ On 5.06.19 г. 23:19 ч., Jonathan Marek wrote: > 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 { >