Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3572047pxb; Mon, 24 Jan 2022 12:31:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJNfzyS6COE+azPD/LguKHcNFbFpKgkx4PMMzp98xtUUnm1ihethjEl/KdgBfLChhgm9ck X-Received: by 2002:a17:90b:4f4a:: with SMTP id pj10mr71567pjb.168.1643056277846; Mon, 24 Jan 2022 12:31:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643056277; cv=none; d=google.com; s=arc-20160816; b=jzIZJCJsMgbVfR0GjdbLiF9gSl11Jza7/1AR5ydozXSNZZ4mHdkhua0vsd2l+XQdsR 9lSwpJmnM6w8zSWsEFZI27onutWVV1vkoF1YAbqXpOb7aSWeXmpLF+o6kZQIg615ab6E IkDmN10LAMzR7wBsDuL9qBbyNhLvthvy2pJIJEei83p5I0HzEh5dFz/JrWK0hBXrIBVA v/REE86KMD8xjMRHi4x7zkIsbpTck91WZP1Fe+LXGMfABJhzPDVU7A5+1F6O9ls8jUWe K51H2vI3WW3XU9X0aEsZpEUCqdYLaYh22ffVVTv78SZcnrlGg79vAZBtIHo6M2Robaxs jdLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=40oBfvh7S1Q+zcRG1RJH/RSxoq4QQW/SJHsB+/q1R+k=; b=iRXSXiMLmTqqHeIWXNtvV61SZwr+TGtpLYCqGI+Zi98lf6e6rznDSEEyrk127zrM1t xjQn4ZooeHs86RhP6xaBgc4eOMwjaEQ10JDXg2LfhV36jfnWfw9NgBLbLWI6FSgVeaYQ YMXtqX47mqLqzFWG74PsLhiYmkwT8gxbVWPgjQrboqzyCyRqURPSRmVhXmm5/ucj93RL FXaBL6IRuzeMZVXUh2Z9eCMori1KlhWE+kFQXi+QjoSxI/9NK4jGON4nbiIQUd9JEW58 uVThDoLToXXWS9HQHDEFdzCgVxhn67U4X7oX8yTIvD7C9q2/EhLWAjfUJRR0GzWNFefl V00Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lUdz36eQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o5si2305760plk.247.2022.01.24.12.31.05; Mon, 24 Jan 2022 12:31:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lUdz36eQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353601AbiAXTfC (ORCPT + 99 others); Mon, 24 Jan 2022 14:35:02 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:49556 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344211AbiAXT03 (ORCPT ); Mon, 24 Jan 2022 14:26:29 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6ACDEB8121C; Mon, 24 Jan 2022 19:26:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 972DFC340E5; Mon, 24 Jan 2022 19:26:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052386; bh=66NPtosod8Ok5mYiep4rLe3S9UA9BN0GARK4K96mHsY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lUdz36eQJpaXpLwP6XDhLOCzBux5uTlixxai62XjPd0WJvj8ZA34eItYI5/wW5CY1 fWO5piRWzGdMbUapeEOs7ukRqC//JMBZRnXtjgps4Kik1hRXomcvc8ugIUWGgwb1Ld 4b5xr7WaEWATKJyk52wBbvhende++zsuMGpJK3Bw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dillon Min , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.4 042/320] media: videobuf2: Fix the size printk format Date: Mon, 24 Jan 2022 19:40:26 +0100 Message-Id: <20220124183955.184939952@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183953.750177707@linuxfoundation.org> References: <20220124183953.750177707@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dillon Min [ Upstream commit c9ee220d76775e42f35d634479c978d9350077d3 ] Since the type of parameter size is unsigned long, it should printk by %lu, instead of %ld, fix it. Fixes: 7952be9b6ece ("media: drivers/media/common/videobuf2: rename from videobuf") Signed-off-by: Dillon Min Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/common/videobuf2/videobuf2-dma-contig.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/common/videobuf2/videobuf2-dma-contig.c b/drivers/media/common/videobuf2/videobuf2-dma-contig.c index 44cd0e530bbd3..093ebe6f279f7 100644 --- a/drivers/media/common/videobuf2/videobuf2-dma-contig.c +++ b/drivers/media/common/videobuf2/videobuf2-dma-contig.c @@ -154,7 +154,7 @@ static void *vb2_dc_alloc(struct device *dev, unsigned long attrs, buf->cookie = dma_alloc_attrs(dev, size, &buf->dma_addr, GFP_KERNEL | gfp_flags, buf->attrs); if (!buf->cookie) { - dev_err(dev, "dma_alloc_coherent of size %ld failed\n", size); + dev_err(dev, "dma_alloc_coherent of size %lu failed\n", size); kfree(buf); return ERR_PTR(-ENOMEM); } @@ -200,9 +200,9 @@ static int vb2_dc_mmap(void *buf_priv, struct vm_area_struct *vma) vma->vm_ops->open(vma); - pr_debug("%s: mapped dma addr 0x%08lx at 0x%08lx, size %ld\n", - __func__, (unsigned long)buf->dma_addr, vma->vm_start, - buf->size); + pr_debug("%s: mapped dma addr 0x%08lx at 0x%08lx, size %lu\n", + __func__, (unsigned long)buf->dma_addr, vma->vm_start, + buf->size); return 0; } -- 2.34.1