From patchwork Thu Mar 30 12:38:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sui Jingfeng <15330273260@189.cn> X-Patchwork-Id: 77169 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1094136vqo; Thu, 30 Mar 2023 05:39:57 -0700 (PDT) X-Google-Smtp-Source: AKy350amUc2+OwSW08Wv6RXIjudPblT5nPCwLUV/ulgwFJuV3vJEEGMOknG+k85GuGhIH033dtq0 X-Received: by 2002:a17:902:c941:b0:1a0:65d3:bae4 with SMTP id i1-20020a170902c94100b001a065d3bae4mr26140408pla.38.1680179997017; Thu, 30 Mar 2023 05:39:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680179997; cv=none; d=google.com; s=arc-20160816; b=l5JJAMTkXkfU5xbIxEZy63e2C5ylLX1Ca8Aa+67VmLfN7DEoOp1CkvkSy5ZXGisS3i iEhgmaaTYOgeouio57blVHwEuUMfQVysi7j1kYXyPQAr1xWfDXcEAPFD61hkLdhnW6oD nxs6PPqc7XvPdvVHizmZXWotktET1yD9ZpxvWJTPV7NxvpB72CEri/kGZMe3I6FKblfs V7b3D7HBX5Hgo7JmiuouEEGs3nP2igwUXD9jkDJ9hIgKQyaE7lsayOb3aww1kp4xRO65 NbJe/WbJNDwuXmu9NkfHDU33qT7QeV+giEviWY95KLqbR0n6iy3D1R70i1L68WQ0pzIA /xog== 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 :message-id:date:subject:cc:to:from:sender:hmm_source_type :hmm_attache_num:hmm_source_ip; bh=1sis2eMBBKIGjMQs1n0rVIjMlt3a1iFknTKiI4DIQw4=; b=uOymK/R5YtkRYnHZ2uSEzYFBDedKqF3+lyHamqUKCYAxx+LlSUmsuLjKjfjzHdQe2c Gte0jEBkMtSs1gQq93/RcMQUqsXoM3NlYjuxXZD3pdcj9GWc9dSwwzJdBrSGMxFl107O ljc9XNVygaQCwx2NtNvWHBwwWqIYt7coERQlkcsqkBiPyRaB3PohPmnHMZKKilR9HO8q GbLTifRriWo2PdVJ44Jmkq4c1jRPRvw/JxjwvDRmxPLQvXWRIzV/njipyi6VFoOeK9+J GOJ6ZkcAfFAXHayvg8f7HxXca2lgyCaiHcenZrQXuU+3cTFnDOjxmEnyxAXcyslhYz/P rr3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 191-20020a6304c8000000b004fb171df693si35906157pge.352.2023.03.30.05.39.43; Thu, 30 Mar 2023 05:39:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229880AbjC3MiT (ORCPT + 99 others); Thu, 30 Mar 2023 08:38:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231334AbjC3MiO (ORCPT ); Thu, 30 Mar 2023 08:38:14 -0400 Received: from 189.cn (ptr.189.cn [183.61.185.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B404772BA for ; Thu, 30 Mar 2023 05:38:11 -0700 (PDT) HMM_SOURCE_IP: 10.64.8.43:54074.551065922 HMM_ATTACHE_NUM: 0000 HMM_SOURCE_TYPE: SMTP Received: from clientip-114.242.206.180 (unknown [10.64.8.43]) by 189.cn (HERMES) with SMTP id 5FC191001C8; Thu, 30 Mar 2023 20:38:08 +0800 (CST) Received: from ([114.242.206.180]) by gateway-151646-dep-7b48884fd-tj646 with ESMTP id ca8e25cfaddb47b390d8dd18937cd7e5 for airlied@gmail.com; Thu, 30 Mar 2023 20:38:09 CST X-Transaction-ID: ca8e25cfaddb47b390d8dd18937cd7e5 X-Real-From: 15330273260@189.cn X-Receive-IP: 114.242.206.180 X-MEDUSA-Status: 0 Sender: 15330273260@189.cn From: Sui Jingfeng <15330273260@189.cn> To: David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/armada: fix compile warnings on 64-bit platform Date: Thu, 30 Mar 2023 20:38:08 +0800 Message-Id: <20230330123808.1590848-1-15330273260@189.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=0.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,FROM_LOCAL_DIGITS,FROM_LOCAL_HEX,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761796420685272905?= X-GMAIL-MSGID: =?utf-8?q?1761796420685272905?= Signed-off-by: Sui Jingfeng <15330273260@189.cn> --- drivers/gpu/drm/armada/armada_debugfs.c | 2 +- drivers/gpu/drm/armada/armada_gem.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/armada/armada_debugfs.c b/drivers/gpu/drm/armada/armada_debugfs.c index 29f4b52e3c8d..338f0f6ca441 100644 --- a/drivers/gpu/drm/armada/armada_debugfs.c +++ b/drivers/gpu/drm/armada/armada_debugfs.c @@ -48,7 +48,7 @@ static int armada_debugfs_crtc_reg_open(struct inode *inode, struct file *file) inode->i_private); } -static int armada_debugfs_crtc_reg_write(struct file *file, +static ssize_t armada_debugfs_crtc_reg_write(struct file *file, const char __user *ptr, size_t len, loff_t *off) { struct armada_crtc *dcrtc; diff --git a/drivers/gpu/drm/armada/armada_gem.c b/drivers/gpu/drm/armada/armada_gem.c index 26d10065d534..e9575ef5aaef 100644 --- a/drivers/gpu/drm/armada/armada_gem.c +++ b/drivers/gpu/drm/armada/armada_gem.c @@ -364,7 +364,7 @@ int armada_gem_pwrite_ioctl(struct drm_device *dev, void *data, if (args->offset > dobj->obj.size || args->size > dobj->obj.size - args->offset) { - DRM_ERROR("invalid size: object size %u\n", dobj->obj.size); + DRM_ERROR("invalid size: object size %zu\n", dobj->obj.size); ret = -EINVAL; goto unref; }