static void parse_ace(struct cifs_ace *pace, char *end_of_acl)
 {
-       int i;
        int num_subauth;
 
        /* validate that we do not go past end of acl */
        num_subauth = cpu_to_le32(pace->num_subauth);
        if (num_subauth) {
 #ifdef CONFIG_CIFS_DEBUG2
+               int i;
                cFYI(1, ("ACE revision %d num_subauth %d",
                        pace->revision, pace->num_subauth));
                for (i = 0; i < num_subauth; ++i) {
 
 static int parse_sid(struct cifs_sid *psid, char *end_of_acl)
 {
-       int i;
        int num_subauth;
 
        /* BB need to add parm so we can store the SID BB */
        num_subauth = cpu_to_le32(psid->num_subauth);
        if (num_subauth) {
 #ifdef CONFIG_CIFS_DEBUG2
+               int i;
                cFYI(1, ("SID revision %d num_auth %d First subauth 0x%x",
                        psid->revision, psid->num_subauth, psid->sub_auth[0]));