[PATCH 6/7] libfdt: Allow control of FDT_RO_PROBE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



This macros performs santity checks used by read-only functions. Allow
these checks to be disabled to reduce code size.

Signed-off-by: Simon Glass <sjg@xxxxxxxxxxxx>
---

 libfdt/libfdt_internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libfdt/libfdt_internal.h b/libfdt/libfdt_internal.h
index 7830e55..c7b35e8 100644
--- a/libfdt/libfdt_internal.h
+++ b/libfdt/libfdt_internal.h
@@ -14,7 +14,7 @@ int fdt_ro_probe_(const void *fdt);
 #define FDT_RO_PROBE(fdt)			\
 	{ \
 		int err_; \
-		if ((err_ = fdt_ro_probe_(fdt)) != 0)	\
+		if (_check1() && (err_ = fdt_ro_probe_(fdt)) != 0)	\
 			return err_; \
 	}
 
-- 
2.22.0.657.g960e92d24f-goog




[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux