Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4241649imm; Fri, 18 May 2018 01:36:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqlS1QqTZvDrefR17HX5PBL563fLjf72oXoPADdfn0zMBqzuu6FDttUkkj2jtrqgJ4+qahR X-Received: by 2002:a62:f58b:: with SMTP id b11-v6mr8506412pfm.113.1526632614951; Fri, 18 May 2018 01:36:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526632614; cv=none; d=google.com; s=arc-20160816; b=GgDp/jFH4sxLYlmUN/UoMJ3s/+816NlHKIaY31+KwRUKCzGgVfOydtd2MrRnyvml76 ktO2s+2EzizTGqHddqoIR7fdf1jeGt9vO/2u415dKisTlXfPrsmP3fMhgsvmJSXQ65GZ 3Ji71MGgtCFiAWZwXAGUYaDVbfBT/4bKuYAiaZyXRBGCpTWiZN0K9q1G4XE5rhCCEcD5 WuUXC7YGTOFvRnFEXIZ+7TWL59BMuz730TJ952ojVD3MGnfzzBRQ92LMnq8/jJMbJBh2 qA0F2Iz3SDwIjgW09hEBGHWnzuoO/+Ayjvw5MuIPKYzc4KOwqb0+nnU9SDUmhEex3cNy OIFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=3OC2wffGIAqBHWojsjUwuwD72O0tg8/cp0VHLlsYCzw=; b=thIez42htH1Eg94Uh6SRgFXOc4QHPsYJadIWp66FP6VAKreqCcl8gEMQUT/XFYyMKR xZpkio6Wh8SssRx7F0WEH9+3A5wlyzL7c5BEqVLVbyWZbICtaG7dpxxyFEyeTapR9VJT IJbLjeOrZwsJ0MIUQr6HXF0fmnqImOzlraTwQ9KSoHoPQb92SeDj0VG7Q5RuaYWpTstF re2whsvxmk3cy4VUUARDkgeLg4kdWh9oVCcAj5z17O5rP/Von4Z8aQ8O8ZJ16uCRhQL2 G9NuGe3uf4Sp/GcOQ0YnoZSDPWs2n0Nu+M6ILIRhfJhmgx31l5VZwX4TR/5ZD1lcH3JK EdnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lByYBGY+; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p17-v6si7145329plo.363.2018.05.18.01.36.40; Fri, 18 May 2018 01:36:54 -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=@chromium.org header.s=google header.b=lByYBGY+; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753697AbeERIeI (ORCPT + 99 others); Fri, 18 May 2018 04:34:08 -0400 Received: from mail-vk0-f66.google.com ([209.85.213.66]:38418 "EHLO mail-vk0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753699AbeERIeE (ORCPT ); Fri, 18 May 2018 04:34:04 -0400 Received: by mail-vk0-f66.google.com with SMTP id u8-v6so4352909vku.5 for ; Fri, 18 May 2018 01:34:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3OC2wffGIAqBHWojsjUwuwD72O0tg8/cp0VHLlsYCzw=; b=lByYBGY+nXO+Cc7iQmZE7PlDHLdpfw6wTQKa1LumOFTHwk3I8c9MoBuecdrlUz4ffd JwhFBApIE/GYKbPn/5SyhIhrin3i8qxhTw+wAaueM++xD0ltGS9hjoU0FzQvzzztAS/Q lZqGVXDv0EHxXbnTHbX08vnb3JaxokMt33a80= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3OC2wffGIAqBHWojsjUwuwD72O0tg8/cp0VHLlsYCzw=; b=GT7GGCwk4cSCR5ModWJM2j7gZ02XKEjd4IAPLTQx5S5M6L5Jt9ISMhqF5fTs7bb79n undLPl1VuAaR2Bvxs+z8BpEs+AnOBPigRphwQkQ/XcamGd/6LlEmJyIZQTI0anQ5ilXK ljBMjMHUn26InZmbKx0dFbxunQarX9q5cMfknno5nJHhCmQUIhe8VaqDF5U2o8RirxLK H3UgmCL+GG1M54ghGGpCsHFulvAZ0EFMEIrPL1/kBuQBi73/c6gyR8lMnYBrXcbXfo7n tJULV2O8H8sxdXHCzQzNrJV+5EWDpODjy93UToyz1VHgdIwFxj8mUHtNeRcec1AYIZ7g jXRw== X-Gm-Message-State: ALKqPwegJcMqdL507/XU5cs0P0u6fGRR8cLVNpq93bE/X1Y8Ruq9DWcR /06NhReWE9XW+RuESd4GLRXy2ncZhUo= X-Received: by 2002:a1f:3195:: with SMTP id x143-v6mr6133114vkx.6.1526632443478; Fri, 18 May 2018 01:34:03 -0700 (PDT) Received: from mail-vk0-f48.google.com (mail-vk0-f48.google.com. [209.85.213.48]) by smtp.gmail.com with ESMTPSA id y23-v6sm1232333vky.26.2018.05.18.01.34.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 May 2018 01:34:02 -0700 (PDT) Received: by mail-vk0-f48.google.com with SMTP id n134-v6so4328984vke.12 for ; Fri, 18 May 2018 01:34:02 -0700 (PDT) X-Received: by 2002:a1f:214b:: with SMTP id h72-v6mr6317235vkh.176.1526632441782; Fri, 18 May 2018 01:34:01 -0700 (PDT) MIME-Version: 1.0 References: <20180424124436.26955-1-stanimir.varbanov@linaro.org> <20180424124436.26955-2-stanimir.varbanov@linaro.org> In-Reply-To: <20180424124436.26955-2-stanimir.varbanov@linaro.org> From: Tomasz Figa Date: Fri, 18 May 2018 17:33:50 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 01/28] venus: hfi_msgs: correct pointer increment To: Stanimir Varbanov Cc: Mauro Carvalho Chehab , Hans Verkuil , Linux Media Mailing List , Linux Kernel Mailing List , linux-arm-msm , vgarodia@codeaurora.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stanimir, Thanks for the series. I'll be gradually reviewing subsequent patches. Stay tuned. :) On Tue, Apr 24, 2018 at 9:56 PM Stanimir Varbanov < stanimir.varbanov@linaro.org> wrote: > Data pointer should be incremented by size of the structure not > the size of a pointer, correct the mistake. > Signed-off-by: Stanimir Varbanov > --- > drivers/media/platform/qcom/venus/hfi_msgs.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > diff --git a/drivers/media/platform/qcom/venus/hfi_msgs.c b/drivers/media/platform/qcom/venus/hfi_msgs.c > index 90c93d9603dc..589e1a6b36a9 100644 > --- a/drivers/media/platform/qcom/venus/hfi_msgs.c > +++ b/drivers/media/platform/qcom/venus/hfi_msgs.c > @@ -60,14 +60,14 @@ static void event_seq_changed(struct venus_core *core, struct venus_inst *inst, > frame_sz = (struct hfi_framesize *)data_ptr; > event.width = frame_sz->width; > event.height = frame_sz->height; > - data_ptr += sizeof(frame_sz); > + data_ptr += sizeof(*frame_sz); > break; > case HFI_PROPERTY_PARAM_PROFILE_LEVEL_CURRENT: > data_ptr += sizeof(u32); > profile_level = (struct hfi_profile_level *)data_ptr; > event.profile = profile_level->profile; > event.level = profile_level->level; > - data_ptr += sizeof(profile_level); > + data_ptr += sizeof(*profile_level); > break; > default: > break; Reviewed-by: Tomasz Figa Best regards, Tomasz