]> git.proxmox.com Git - mirror_spl.git/blobdiff - include/linux/bitops_compat.h
Make include/linux/ conform to ZFS style standard
[mirror_spl.git] / include / linux / bitops_compat.h
index d466e07188c99f6c6c70c9f25c7cbb8254a0400e..a62b628e85a0f864ace4bb9ab3ad43b14230d48b 100644 (file)
@@ -1,4 +1,4 @@
-/*****************************************************************************\
+/*
  *  Copyright (C) 2007-2010 Lawrence Livermore National Security, LLC.
  *  Copyright (C) 2007 The Regents of the University of California.
  *  Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
@@ -6,7 +6,7 @@
  *  UCRL-CODE-235197
  *
  *  This file is part of the SPL, Solaris Porting Layer.
- *  For details, see <http://github.com/behlendorf/spl/>.
+ *  For details, see <http://zfsonlinux.org/>.
  *
  *  The SPL is free software; you can redistribute it and/or modify it
  *  under the terms of the GNU General Public License as published by the
  *
  *  You should have received a copy of the GNU General Public License along
  *  with the SPL.  If not, see <http://www.gnu.org/licenses/>.
-\*****************************************************************************/
+ */
 
 #ifndef _SPL_BITOPS_COMPAT_H
-#define _SPL_BITOPS_COMPAT_H
+#define        _SPL_BITOPS_COMPAT_H
 
 #include <linux/bitops.h>
 
-#ifndef HAVE_FLS64
-
-static inline int fls64(__u64 x)
-{
-       __u32 h = x >> 32;
-       if (h)
-               return fls(h) + 32;
-       return fls(x);
-}
-
-#endif /* HAVE_FLS64 */
-
 #endif /* _SPL_BITOPS_COMPAT_H */
-