From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJJRj-0002js-C2 for barebox@lists.infradead.org; Thu, 17 May 2018 13:59:56 +0000 Received: by mail-wm0-x244.google.com with SMTP id l1-v6so9336048wmb.2 for ; Thu, 17 May 2018 06:59:44 -0700 (PDT) From: Peter Mamonov Date: Thu, 17 May 2018 16:58:55 +0300 Message-Id: <20180517135858.16202-13-pmamonov@gmail.com> In-Reply-To: <20180517135858.16202-1-pmamonov@gmail.com> References: <20180517135858.16202-1-pmamonov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [RFC PATCH 12/15] FIXME: commands/mem: fix /dev/mem size To: barebox@lists.infradead.org Cc: Peter Mamonov Signed-off-by: Peter Mamonov --- commands/mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/mem.c b/commands/mem.c index eb91ade05..80cf5c79d 100644 --- a/commands/mem.c +++ b/commands/mem.c @@ -96,7 +96,7 @@ static int mem_probe(struct device_d *dev) dev->priv = cdev; cdev->name = (char*)dev->resource[0].name; - cdev->size = (unsigned long)resource_size(&dev->resource[0]); + cdev->size = (loff_t)-1; cdev->ops = &memops; cdev->dev = dev; -- 2.17.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox