diff -Nru a/fs/squashfs/Makefile b/fs/squashfs/Makefile
--- a/fs/squashfs/Makefile 2010-05-16 23:17:36.000000000 +0200
+++ b/fs/squashfs/Makefile 2010-05-17 14:57:45.270554026 +0200
-@@ -5,3 +5,4 @@
- obj-$(CONFIG_SQUASHFS) += squashfs.o
+@@ -6,4 +6,4 @@
squashfs-y += block.o cache.o dir.o export.o file.o fragment.o id.o inode.o
squashfs-y += namei.o super.o symlink.o zlib_wrapper.o decompressor.o
+ squashfs-$(CONFIG_SQUASHFS_XATTRS) += xattr.o xattr_id.o
+-
+squashfs-$(CONFIG_SQUASHFS_LZMA) += lzma_wrapper.o
diff -Nru a/fs/squashfs/squashfs.h b/fs/squashfs/squashfs.h
--- a/fs/squashfs/squashfs.h 2010-05-16 23:17:36.000000000 +0200