mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/9] fs: squashfs: don't reference UBI symbols if UBI isn't compiled in
@ 2016-12-20  9:33 Lucas Stach
  2016-12-20  9:33 ` [PATCH 2/9] arm64: disable PBL support Lucas Stach
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Lucas Stach @ 2016-12-20  9:33 UTC (permalink / raw)
  To: barebox

There is no point in trying to append a UBI root option, if there is
no UBI support in barebox.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 fs/squashfs/squashfs.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/fs/squashfs/squashfs.c b/fs/squashfs/squashfs.c
index c4d0bac97443..4f4a307dafdd 100644
--- a/fs/squashfs/squashfs.c
+++ b/fs/squashfs/squashfs.c
@@ -120,6 +120,9 @@ void squashfs_set_rootarg(struct squashfs_priv *priv, struct fs_device_d *fsdev)
 	struct mtd_info *mtd;
 	char *str;
 
+	if (!IS_ENABLED(CONFIG_MTD_UBI))
+		return;
+
 	ubi_vol = ubi_open_volume_cdev(fsdev->cdev, UBI_READONLY);
 
 	if (IS_ERR(ubi_vol))
-- 
2.11.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-01-09 16:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-20  9:33 [PATCH 1/9] fs: squashfs: don't reference UBI symbols if UBI isn't compiled in Lucas Stach
2016-12-20  9:33 ` [PATCH 2/9] arm64: disable PBL support Lucas Stach
2016-12-20  9:33 ` [PATCH 3/9] net: e1000: don't try to register eeprom if MTD support is missing Lucas Stach
2016-12-20  9:33 ` [PATCH 4/9] globalvar: select FNMATCH Lucas Stach
2016-12-20  9:33 ` [PATCH 5/9] nvvar: add static inline dummy for nvvar_save Lucas Stach
2016-12-20  9:33 ` [PATCH 6/9] devparam: add static inline dummy for dev_add_param_bitmask Lucas Stach
2016-12-20  9:33 ` [PATCH 7/9] arm: pbl: rename linker script for uncompressed image data Lucas Stach
2016-12-20  9:33 ` [PATCH 8/9] lib: add generic find_bit implementation from Linux and use in ARMv8 Lucas Stach
2017-01-09 16:05   ` Sascha Hauer
2016-12-20  9:33 ` [PATCH 9/9] arm: ARM64 doesn't provide the armlinux_* functions Lucas Stach
2017-01-09 10:25 ` [PATCH 1/9] fs: squashfs: don't reference UBI symbols if UBI isn't compiled in Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox