From patchwork Wed Apr 7 10:55:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 417057 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B180C433B4 for ; Wed, 7 Apr 2021 10:56:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1C98A610FB for ; Wed, 7 Apr 2021 10:56:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351726AbhDGK4N (ORCPT ); Wed, 7 Apr 2021 06:56:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245105AbhDGK4H (ORCPT ); Wed, 7 Apr 2021 06:56:07 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1203C061763 for ; Wed, 7 Apr 2021 03:55:54 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id u21so26891503ejo.13 for ; Wed, 07 Apr 2021 03:55:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6Ia0McVxup9Hx79aZ0xKYTAalm8Y6geuZEijF8tLAAw=; b=XjgKN8sK4jSrmryecclw+cUT1T4/mjWQ6GWSdwvGq7zPmhu3BiGFu5N7kLd7PxMptK GtfKxTXRcVmuhpAqPDYnIkAmK1sw2ByTabVw6E8tJLhtZJ0RsMVNC1FticcyFGNlySUQ iGSXsSpFOLKHNGdQYnk2Lv5uHZdBDbfkKRK9kAd372ftyX466HBZkIIszHmm3ZTv+jlF H3dJeBaJ/wUp74Wai2h+GhEJTaq6ONvcF1rNRuU5Yo2ZjstjtpRstsaRStK/YR+tU5Fh INHT2WTETjuxM3SM686wOpm3SqLlyy9iUn6pmOIeiGEiPSbV1H21t8PjDqGAnchZ2D5t s+Mg== 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:mime-version :content-transfer-encoding; bh=6Ia0McVxup9Hx79aZ0xKYTAalm8Y6geuZEijF8tLAAw=; b=bJBtsB5nBefGXE6HKXQvMwp2MjtRN6O+/hACCcjHKa4zYMW8V4o7rTbI2gQ3NBPlVS JbkcgHEq5DNIu5jPd2ucZKLCRzivgSzx7YG/nN0zVl6NyWlj4UVP9KwQ2Zdz0b+3y/M9 GW3Sg7vV3Nu/fW43XUphwsrJ6dqUAgjJ/OC4IE1prkHyZ4CvEGbChblHIf67AMTluhWk 3K72XM669LahKQW+3YkrE1wxkJDGlm67M1Cs+FoXmUi5O87YomtNfuuzGAQfu52XCyP7 Dqb6KLAUecjLFgZRL9ydYYqrhaGxdk+7vSzxxTXvFJwJsh719c0ucsPFo/oXcTLdOnLK TYqg== X-Gm-Message-State: AOAM531KYViGdKVwKp0FLTFnKd7ffuQOmL0jdJA+60XoJPLsBm2IHhH7 lb9GMz9OyRDGbMYcQr98/al3PtRKFVbidE9W X-Google-Smtp-Source: ABdhPJzkl/D7JffltlUnu02lHO0mcMYwj1pl6Z+yxBIKWESZPZWDJtbLK2iYEJlMr5qLoubg7LLx8Q== X-Received: by 2002:a17:906:2759:: with SMTP id a25mr3092767ejd.122.1617792953545; Wed, 07 Apr 2021 03:55:53 -0700 (PDT) Received: from localhost.localdomain (hst-221-20.medicom.bg. [84.238.221.20]) by smtp.gmail.com with ESMTPSA id r17sm15463575edt.70.2021.04.07.03.55.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Apr 2021 03:55:53 -0700 (PDT) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Mauro Carvalho Chehab , Stanimir Varbanov Subject: [PATCH] venus: core: Fix a warning in register offsets Date: Wed, 7 Apr 2021 13:55:49 +0300 Message-Id: <20210407105549.348178-1-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Fix the following sparse warnings: core.c:227:41: warning: Using plain integer as NULL pointer core.c:228:34: warning: Using plain integer as NULL pointer Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c index f5b88b96f5f7..4451e3c11bc0 100644 --- a/drivers/media/platform/qcom/venus/core.c +++ b/drivers/media/platform/qcom/venus/core.c @@ -224,8 +224,8 @@ static void venus_assign_register_offsets(struct venus_core *core) core->cpu_cs_base = core->base + CPU_CS_BASE; core->cpu_ic_base = core->base + CPU_IC_BASE; core->wrapper_base = core->base + WRAPPER_BASE; - core->wrapper_tz_base = 0; - core->aon_base = 0; + core->wrapper_tz_base = NULL; + core->aon_base = NULL; } }