5b5213adf5
C++ does not allow const qualifier on function type, even if we add it it will get ignored and clang will fail with failed cast from const void* to func*. const_cast here is necessary to make it work. Change-Id: I72cec8d9e715bdf9e163cb9b08393dd733dafaf2