]> git.sur5r.net Git - u-boot/blobdiff - lib/bch.c
SPDX: Convert all of our single license tags to Linux Kernel style
[u-boot] / lib / bch.c
index 7a2d9d3b86b7a69b213662f4dd1e6be836aa21f2..20079eb9ebd12eb3d38b37f30d515b131f55a383 100644 (file)
--- a/lib/bch.c
+++ b/lib/bch.c
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Generic binary BCH encoding/decoding library
  *
- * SPDX-License-Identifier:    GPL-2.0
- *
  * Copyright © 2011 Parrot S.A.
  *
  * Author: Ivan Djelic <ivan.djelic@parrot.com>
@@ -117,7 +116,7 @@ struct gf_poly_deg1 {
 };
 
 #ifdef USE_HOSTCC
-#ifndef __BSD_VISIBLE
+#if !defined(__DragonFly__) && !defined(__FreeBSD__)
 static int fls(int x)
 {
        int r = 32;