v2013.08.0

Sascha Hauer s.hauer at pengutronix.de
Tue Aug 6 06:31:33 EDT 2013


On Tue, Aug 06, 2013 at 02:12:35PM +0400, Alexander Shiyan wrote:
> > Finally we have an August release!
> > 
> > Here are the patches that went in between this and the last release:
> 
> Here is a first result of compile:
> 
> drivers/built-in.o: In function `ubi_volume_notify':
> :(.text.ubi_volume_notify+0x14): undefined reference to `ubi_do_get_device_info'
> :(.text.ubi_volume_notify+0x24): undefined reference to `ubi_do_get_volume_info'
> make: *** [barebox] Error 1

Fortunately this is in current master and not the release. The following
should fix this. It the patch adding ubi_volume_notify depended on
another patch which I have locally and I didn't notice that.

Sascha

8<----------------------------------------------------------------

>From 68c50d4cabaf2d8fa2fc6d450c36150c8f07998c Mon Sep 17 00:00:00 2001
From: Sascha Hauer <s.hauer at pengutronix.de>
Date: Tue, 6 Aug 2013 12:28:45 +0200
Subject: [PATCH] mtd: ubi: remove calls to nonexisting functions

We do not have ubi_do_get_volume_info and ubi_do_get_device_info
and do not need them yet, so remove calls to these functions to fix
compilation.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/mtd/ubi/build.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index c4bffae..202b046 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -75,11 +75,6 @@ struct ubi_device *ubi_devices[UBI_MAX_DEVICES];
  */
 int ubi_volume_notify(struct ubi_device *ubi, struct ubi_volume *vol, int ntype)
 {
-	struct ubi_notification nt;
-
-	ubi_do_get_device_info(ubi, &nt.di);
-	ubi_do_get_volume_info(ubi, vol, &nt.vi);
-
 #ifdef CONFIG_MTD_UBI_FASTMAP
 	switch (ntype) {
 	case UBI_VOLUME_ADDED:
-- 
1.8.4.rc1

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list