greybus: Makefile: add 'check' option to run sparse with endian checks enabled
diff --git a/drivers/staging/greybus/Makefile b/drivers/staging/greybus/Makefile
index 114089a..0550e21 100644
--- a/drivers/staging/greybus/Makefile
+++ b/drivers/staging/greybus/Makefile
@@ -21,6 +21,9 @@
module:
$(MAKE) -C $(KERNELDIR) M=$(PWD)
+check:
+ $(MAKE) -C $(KERNELDIR) M=$(PWD) C=2 CF="-D__CHECK_ENDIAN__"
+
clean:
rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c
rm -f Module.markers Module.symvers modules.order