From patchwork Wed Jul 13 08:47:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102025 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp891372qga; Wed, 13 Jul 2016 01:51:08 -0700 (PDT) X-Received: by 10.98.192.144 with SMTP id g16mr1477446pfk.55.1468399868117; Wed, 13 Jul 2016 01:51:08 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id q8si3391374pan.184.2016.07.13.01.51.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jul 2016 01:51:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bNFrj-0008Va-Uv; Wed, 13 Jul 2016 08:49:59 +0000 Received: from mout.kundenserver.de ([212.227.17.10]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bNFrf-0008Rf-Pu; Wed, 13 Jul 2016 08:49:56 +0000 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue101) with ESMTPA (Nemesis) id 0LxfEh-1bL37Z2Y27-017FPU; Wed, 13 Jul 2016 10:49:22 +0200 From: Arnd Bergmann To: Hans Verkuil Subject: [PATCH v2] [media] mtk-vcodec: fix more type mismatches Date: Wed, 13 Jul 2016 10:47:40 +0200 Message-Id: <20160713084916.2765651-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:jzZsIALMYsHjee95px196+y4mX2U3W7Js6D76klkp/JFlqt1lUh cKAwmrVLbpqHclUP/bQwOHO8LAI2YG8H8prBJ67+Jr7A5c/ZTKuFpudy5U7HXkdeVtx9REF BaufYnj+w4Y6PjkqH50fA3Dfp9uz0WZvDnTUJMvG3Od69eQN4xHITq8DKrJ+oYsNmaEDQBu uuf2yej7a6XKzJYMq6vsA== X-UI-Out-Filterresults: notjunk:1; V01:K0:qjyBrvbOVKw=:Z6IlyU8we23qOc6bsDWmhl 47NJgT8C93hDDBW2SAATJHBhmjBGiGXaznZDfyAQ3Mjp6kN8JurpGoxN9RibE9rZgxKoSjqOr hVLTGutotuPv/YimgA1OGBvqMxwFESbCHNxjdrp1AGoIophGN0s3UWz1MjW7aJbthIGSffAfy i94JKLiA65tj4VeSdHKh2NFUHNBo3vznUyR3juOFDx8b0eYakYgvlBtqrGRYTL8LmxOag5aBe qJGKFwDbZCJb8J+4n1S1DUg9U/G8jVQWnCHLI4YJMzLD6wef51kBnv8lhbxohfv+Lf7cAzP2b NvHp7UYbY9lFWD2wB3Sf6JpMLCgf082DA28HPPUxMZIgHBRcRBLub9wnR2SgxlYwOCvGVDXCS lXXAR3SIclUA8uhxoj8z/tk8l1NJ9EPQ3sM+I3mUFceaymyMLCswjKS8cy0xfTmhbZrSRZktg nYhlb5Jgj2/Ty0VwTSX0hRQUlEEWKT+K7G2LHWriMII+Laq15ZqzQA8P/jVqnZUXUGDkAXst6 Y7XoEfeYTSXRQ8YP7Q4O4tua7AbcKJETYtifIyK1PgE5dAesqzcQsCEwb7XbDPpGdMd3+P9g1 QsTcWEPH831yO4Dhv9O+kUNleN4r+b3BcEOkr/kxSYfZkhwKze9JJLlYV2Ex9AS8cLqUrx5pj uR18lGNjCCZcBQvAAFcRYNOYNcmfAKhp7AzJXV2Qa4TnghEdh5fMeeNmBOrnwbKgRgi0= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160713_014956_170123_D60B5952 X-CRM114-Status: GOOD ( 10.09 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.17.10 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.17.10 listed in wl.mailspike.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tiffany Lin , Arnd Bergmann , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Matthias Brugger , Mauro Carvalho Chehab , PoChun Lin , linux-media@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org The newly added mtk-vcodec driver produces a number of warnings in an ARM allmodconfig build, mainly since it assumes that dma_addr_t is 32-bit wide: mtk-vcodec/venc/venc_vp8_if.c: In function 'vp8_enc_alloc_work_buf': mtk-vcodec/venc/venc_vp8_if.c:212:191: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] mtk-vcodec/venc/venc_h264_if.c: In function 'h264_enc_alloc_work_buf': mtk-vcodec/venc/venc_h264_if.c:297:190: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] This rearranges the format strings and type casts to what they should have been in order to avoid the warnings. e0f80d8d62f5 ("[media] mtk-vcodec: fix two compiler warnings") fixed some of the problems that were introduced at the same time, but missed two others. Signed-off-by: Arnd Bergmann --- drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c | 4 ++-- drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) -- 2.9.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c b/drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c index f4e18bb44cb9..9a600525b3c1 100644 --- a/drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c +++ b/drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c @@ -295,9 +295,9 @@ static int h264_enc_alloc_work_buf(struct venc_h264_inst *inst) wb[i].iova = inst->work_bufs[i].dma_addr; mtk_vcodec_debug(inst, - "work_buf[%d] va=0x%p iova=0x%p size=%zu", + "work_buf[%d] va=0x%p iova=%pad size=%zu", i, inst->work_bufs[i].va, - (void *)inst->work_bufs[i].dma_addr, + &inst->work_bufs[i].dma_addr, inst->work_bufs[i].size); } diff --git a/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c b/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c index 5b4ef0f1740c..60bbcd2a0510 100644 --- a/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c +++ b/drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c @@ -210,9 +210,9 @@ static int vp8_enc_alloc_work_buf(struct venc_vp8_inst *inst) wb[i].iova = inst->work_bufs[i].dma_addr; mtk_vcodec_debug(inst, - "work_bufs[%d] va=0x%p,iova=0x%p,size=%zu", + "work_bufs[%d] va=0x%p,iova=%pad,size=%zu", i, inst->work_bufs[i].va, - (void *)inst->work_bufs[i].dma_addr, + &inst->work_bufs[i].dma_addr, inst->work_bufs[i].size); }