scripts/checkstack.pl: fix no space expression between sp and offset
[linux-2.6-block.git] / scripts / checkstack.pl
index 8e04659ef4637dad442b84672a9d6d1908a1b863..14ce31f732ee8a9370ba0432143d3d8763b42a7d 100755 (executable)
@@ -56,7 +56,7 @@ my (@stack, $re, $dre, $sub, $x, $xs, $funcre, $min_stack);
        if ($arch =~ '^(aarch|arm)64$') {
                #ffffffc0006325cc:       a9bb7bfd        stp     x29, x30, [sp, #-80]!
                #a110:       d11643ff        sub     sp, sp, #0x590
-               $re = qr/^.*stp.*sp, \#-([0-9]{1,8})\]\!/o;
+               $re = qr/^.*stp.*sp, ?\#-([0-9]{1,8})\]\!/o;
                $dre = qr/^.*sub.*sp, sp, #(0x$x{1,8})/o;
        } elsif ($arch eq 'arm') {
                #c0008ffc:      e24dd064        sub     sp, sp, #100    ; 0x64