aboutsummaryrefslogtreecommitdiffstats
path: root/security/smack/smack.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-03-31 11:12:57 -0700
committerZiyan <jaraidaniel@gmail.com>2016-03-11 16:01:44 +0100
commit727ea2d0a7ffb959453a87b0f35ebb4ff9448d50 (patch)
tree0056d8ce58eaf9c5a055ac116e2e584ff8a00bda /security/smack/smack.h
parent6f3ffe5c24a1687813f9b3d3baee1c7a182485f6 (diff)
downloadkernel_samsung_espresso10-727ea2d0a7ffb959453a87b0f35ebb4ff9448d50.zip
kernel_samsung_espresso10-727ea2d0a7ffb959453a87b0f35ebb4ff9448d50.tar.gz
kernel_samsung_espresso10-727ea2d0a7ffb959453a87b0f35ebb4ff9448d50.tar.bz2
selinux: inline avc_audit() and avc_has_perm_noaudit() into caller
Now that all the slow-path code is gone from these functions, we can inline them into the main caller - avc_has_perm_flags(). Now the compiler can see that 'avc' is allocated on the stack for this case, which helps register pressure a bit. It also actually shrinks the total stack frame, because the stack frame that avc_has_perm_flags() always needed (for that 'avc' allocation) is now sufficient for the inlined functions too. Inlining isn't bad - but mindless inlining of cold code (see the previous commit) is. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'security/smack/smack.h')
0 files changed, 0 insertions, 0 deletions