From patchwork Mon Apr 8 17:04:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= X-Patchwork-Id: 13621402 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6B944CD1292 for ; Mon, 8 Apr 2024 17:04:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E29C7112891; Mon, 8 Apr 2024 17:04:38 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="Fob7pgEI"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5CF14112889 for ; Mon, 8 Apr 2024 17:04:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712595876; x=1744131876; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CtBTBjbm+qOyMI4jbSL0/XF518dp/uvv8sVsSOgGuC4=; b=Fob7pgEITKkpRkLbcfBEDTy6ZouX5DngTeyCDHww9WUFT1BZrqQ1Y4i2 wOgGFr+iBRWPvGJ9Z9zmY4Huvf+xGnBq/+1s/T+qoMDO92OdAC8CI3HjA bOjwlvnYqZfZBAYd5aoiAH8Wl8L0e3tWNLEiG146PBNqN4JF5Yd1K78UU kj7mREic7GjRbpdquXDRo9ejoy12Rn1NZoNXdmFxKl9p9vSOsvnaRIZpN zQbv2/nx0xbxiaeIx7Bkwfayjqj2awf5Xzlt8qXpL8chP0a+BCY676MCa OcBU/o/nV+4iHHPaqu5jTyTaYrZd1B5naFj9/BqCjkH5+89YfNnDwgVzc g==; X-CSE-ConnectionGUID: jR5pNofmT9OhBNRMR/muVA== X-CSE-MsgGUID: j3nguOBsRqueG8e4j+JgXA== X-IronPort-AV: E=McAfee;i="6600,9927,11038"; a="7793345" X-IronPort-AV: E=Sophos;i="6.07,187,1708416000"; d="scan'208";a="7793345" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2024 10:04:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11038"; a="827792326" X-IronPort-AV: E=Sophos;i="6.07,187,1708416000"; d="scan'208";a="827792326" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by orsmga001.jf.intel.com with SMTP; 08 Apr 2024 10:04:32 -0700 Received: by stinkbox (sSMTP sendmail emulation); Mon, 08 Apr 2024 20:04:32 +0300 From: Ville Syrjala To: dri-devel@lists.freedesktop.org Cc: Russell King Subject: [PATCH 02/21] drm/armada: Fix armada_debugfs_crtc_reg_write() return type Date: Mon, 8 Apr 2024 20:04:07 +0300 Message-ID: <20240408170426.9285-3-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240408170426.9285-1-ville.syrjala@linux.intel.com> References: <20240408170426.9285-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Ville Syrjälä Change the armada_debugfs_crtc_reg_write() return type to the correct ssize_t. This makes the code actually build on certain architectures. Cc: Russell King Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/armada/armada_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;