int                   start;
        int                   count;
        int                   bnr;
-       int                   i;
+       unsigned int i;
 
        if (OBD_FAIL_CHECK(OBD_FAIL_OBD_NO_LRU))
                return 0;
 /**
  * Return desired hash table order.
  */
-static int lu_htable_order(struct lu_device *top)
+static unsigned int lu_htable_order(struct lu_device *top)
 {
        unsigned long bits_max = LU_SITE_BITS_MAX;
        unsigned long cache_size;
-       int bits;
+       unsigned int bits;
 
        /*
         * Calculate hash table size, assuming that we want reasonable
 int lu_context_key_register(struct lu_context_key *key)
 {
        int result;
-       int i;
+       unsigned int i;
 
        LASSERT(key->lct_init);
        LASSERT(key->lct_fini);
 
 static void keys_fini(struct lu_context *ctx)
 {
-       int     i;
+       unsigned int i;
 
        if (!ctx->lc_value)
                return;
 
 static int keys_fill(struct lu_context *ctx)
 {
-       int i;
+       unsigned int i;
 
        LINVRNT(ctx->lc_value);
        for (i = 0; i < ARRAY_SIZE(lu_keys); ++i) {
  */
 void lu_context_exit(struct lu_context *ctx)
 {
-       int i;
+       unsigned int i;
 
        LINVRNT(ctx->lc_state == LCS_ENTERED);
        ctx->lc_state = LCS_LEFT;
                              struct lu_site_stats *stats, int populated)
 {
        struct cfs_hash_bd bd;
-       int        i;
+       unsigned int i;
 
        cfs_hash_for_each_bucket(hs, &bd, i) {
                struct lu_site_bkt_data *bkt = cfs_hash_bd_extra_get(hs, &bd);