Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3696123pxb; Mon, 24 Jan 2022 15:37:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJw89CuaKKKsNNPZKRACh3wog7a65pQ0DaTw+12VgNPtbfJtI7XzAfLLiVId++m0wTMMUhuE X-Received: by 2002:a63:2205:: with SMTP id i5mr13373755pgi.365.1643067444898; Mon, 24 Jan 2022 15:37:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643067444; cv=none; d=google.com; s=arc-20160816; b=jwjdHV8KARAzoou9FLnF8O9ZDbJz1zCBXcy2FcNQPCA+o1Szf2Cp5S+kTv6y2Il/rB bpZrl0q+rv7EJVFg9mvlEKeltNa5RlaXBWTOUEi2p8LQBpIr9bjEcyIZel7aXzESLS76 YIxTFjiS/LonlPWMPG6clHkqxYTrpBsQVj441cqUWI0KZ5nqo//YmP+dU+WCSSKfJfWr 1iyQyoGf7xo7kIsfeVWTCJSIFGGYChmoG7nXtUR6A/6p4L9MXZshEWYZEC/y15fYENh9 qNpqI672qf7YgstXuObBPg7nmSbii9Y+xUEkgN7okpH23P0uF9tLweazJygERtVa7ZQN sbqA== 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=wgIcEBy5ptu9VpE0xVuWN6sKy09jKb3qpPHIdi1KKhc=; b=gkE/ZZeK13UwjVUy3AO0Ex8gz8G3qLqKCRZP/Q/BVN2DLGxcjr3uN4IqL314+fzjb0 PFxuzkVYA8+KNWYlHDKXl3o26ABxo0MI3UuNN4MQ4acFRp+BPUpTYttu4nAVjjQODvsI B74QWXqX4UZOe2eq/lq6hZThJhkMy17MnEpxDMU4FIS6W7DTXwjdj/dP3rBR5kokL5Ck /vbvwZqb2w48TgksTFcXh9bMfJiSZl/zEnFAUKZL7FVl/QswhwP4k8pm7LNxeNiqlBFF OtMQc+egeRBnBsBQlMM76bE+uGm1JwNzhtdR1VoJMH3/bYL4uMac56W/9ONXnYX4lUUI IceA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=a0j9ynsq; 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 k63si633430pja.45.2022.01.24.15.37.11; Mon, 24 Jan 2022 15:37:24 -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=a0j9ynsq; 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 S1851026AbiAXXbn (ORCPT + 99 others); Mon, 24 Jan 2022 18:31:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1836485AbiAXWjg (ORCPT ); Mon, 24 Jan 2022 17:39:36 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3205BC05486F; Mon, 24 Jan 2022 13:00:43 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id C8138612E9; Mon, 24 Jan 2022 21:00:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF9ECC340E5; Mon, 24 Jan 2022 21:00:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643058042; bh=Aj5TDU2BYJhH8yJcxyj4GLS7YGita8rMfJSmLM8MX+Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a0j9ynsquILairebgHqUs9d3a1aMfXCnnOOFeVNwWeVctHOjhJKe0jSA62qJs9m6l VpBpHU5vjEqy8vt3sJaP8FpzDZZsbksMUwsOiLM6cWCtJ28njI5DvKRNUURCiIzpZq dD7GM3RmmWMq38vJSGfhxVKHGknewyX5JeyiwH54= 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.16 0119/1039] media: videobuf2: Fix the size printk format Date: Mon, 24 Jan 2022 19:31:48 +0100 Message-Id: <20220124184129.138927856@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@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 556e42ba66e55..7c4096e621738 100644 --- a/drivers/media/common/videobuf2/videobuf2-dma-contig.c +++ b/drivers/media/common/videobuf2/videobuf2-dma-contig.c @@ -257,7 +257,7 @@ static void *vb2_dc_alloc(struct vb2_buffer *vb, ret = vb2_dc_alloc_coherent(buf); if (ret) { - dev_err(dev, "dma alloc of size %ld failed\n", size); + dev_err(dev, "dma alloc of size %lu failed\n", size); kfree(buf); return ERR_PTR(-ENOMEM); } @@ -298,9 +298,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