fix build error for root_device.cpp

Signed-off-by: sndnvaps <sndnvaps@gmail.com>