diff --git a/src/fpga/api.cpp b/src/fpga/api.cpp index 0b3c1f8132aaee1d91a107ff954540e668927e9b..3d41d855c05f6331882a171d4ee2a72e6565d81d 100644 --- a/src/fpga/api.cpp +++ b/src/fpga/api.cpp @@ -15,6 +15,7 @@ limitations under the License. */ #include "api.h" #include #include +#include #include #include #include "bias_scale.h" @@ -31,7 +32,7 @@ static const char *device_path = "/dev/fpgadrv0"; static inline int do_ioctl(int req, const void *arg) { #ifdef PADDLE_MOBILE_OS_LINUX - return ioctl(req, (unsigned int64_t)arg); + return ioctl(fd, req, (unsigned int64_t)arg); #else return -1; #endif