ng_device.c:103: error: "MIN" redefined [-Werror] ng_device.c:111:8: error: unknown type name 'd_close_t' ng_device.c:112:8: error: unknown type name 'd_open_t' ng_device.c:113:8: error: unknown type name 'd_read_t' ng_device.c:114:8: error: unknown type name 'd_write_t' ng_device.c:115:8: error: unknown type name 'd_ioctl_t' ng_device.c:116:8: error: unknown type name 'd_poll_t' ng_device.c:119:15: error: variable 'ngd_cdevsw' has initializer but incomplete type ng_device.c:120:25: error: excess elements in struct initializer [-Werror] ng_device.c:118:24: error: excess elements in struct initializer [-Werror] ng_device.c:122:25: error: excess elements in struct initializer [-Werror] dragonfly/sys/_null.h:35:14: error: excess elements in struct initializer [-Werror] dragonfly/sys/_null.h:35:14: error: excess elements in struct initializer [-Werror] ng_device.c:126:25: error: excess elements in struct initializer [-Werror] ng_device.c:127:25: error: excess elements in struct initializer [-Werror] ng_device.c:128:25: error: excess elements in struct initializer [-Werror] ng_device.c:129:25: error: excess elements in struct initializer [-Werror] ng_device.c:130:25: error: excess elements in struct initializer [-Werror] ng_device.c:131:25: error: excess elements in struct initializer [-Werror] ng_device.c:132:25: error: 'nommap' undeclared here (not in a function); did you mean 'node_p'? ng_device.c:132:25: error: excess elements in struct initializer [-Werror] ng_device.c:133:25: error: 'nostrategy' undeclared here (not in a function); did you mean 'hostname'? ng_device.c:133:25: error: excess elements in struct initializer [-Werror] ng_device.c:134:25: error: 'nodump' undeclared here (not in a function); did you mean 'node_p'? ng_device.c:134:25: error: excess elements in struct initializer [-Werror] ng_device.c:135:25: error: 'nopsize' undeclared here (not in a function) ng_device.c:135:25: error: excess elements in struct initializer [-Werror] ng_device.c:152:4: error: implicit declaration of function 'cdevsw_add' [-Werror=implicit-function-declaration] ng_device.c:152:4: error: nested extern declaration of 'cdevsw_add' [-Werror=nested-externs] ng_device.c:159:4: error: implicit declaration of function 'cdevsw_remove'; did you mean 'knote_remove'? [-Werror=implicit-function-declaration] ng_device.c:159:4: error: nested extern declaration of 'cdevsw_remove' [-Werror=nested-externs] ng_device.c:203:1: error: conflicting types for 'ng_device_cons' ng_device.c:286:27: error: implicit declaration of function 'make_dev'; did you mean 'makeudev'? [-Werror=implicit-function-declaration] ng_device.c:286:27: error: nested extern declaration of 'make_dev' [-Werror=nested-externs] ng_device.c:286:25: error: assignment to 'cdev_t' {aka 'struct cdev *'} from 'int' makes pointer from integer without a cast [-Werror=int-conversion] ng_device.c:419:1: error: 'ngdopen' redeclared as different kind of symbol ng_device.c:433:1: error: 'ngdclose' redeclared as different kind of symbol ng_device.c:451:1: error: 'ngdioctl' redeclared as different kind of symbol ng_device.c:506:1: error: 'ngdread' redeclared as different kind of symbol ng_device.c:557:1: error: 'ngdwrite' redeclared as different kind of symbol ng_device.c:607:1: error: 'ngdpoll' redeclared as different kind of symbol ng_device.c:119:22: error: storage size of 'ngd_cdevsw' isn't known ng_device.c:54:25: error: 'ng_device_cons' used but never defined [-Werror] ng_device.c:607:1: error: 'ngdpoll' defined but not used [-Werror=unused-function] ng_device.c:557:1: error: 'ngdwrite' defined but not used [-Werror=unused-function] ng_device.c:506:1: error: 'ngdread' defined but not used [-Werror=unused-function] ng_device.c:451:1: error: 'ngdioctl' defined but not used [-Werror=unused-function] ng_device.c:433:1: error: 'ngdclose' defined but not used [-Werror=unused-function] ng_device.c:419:1: error: 'ngdopen' defined but not used [-Werror=unused-function] ng_device.c:203:1: error: 'ng_device_cons' defined but not used [-Werror=unused-function] cc1: all warnings being treated as errors Stop.