fix build bug for root_device.cpp

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