fix audit.c compile error

Change-Id: I68d9f4584182ac7f89769b837b582767e850d8fe
Revert "staging: add sync and sw_sync"

This reverts commit 645b7a82a9b5d012cce88374ac114aa0794c9975.