g cc выдает следующую ошибку с musl
lib c
device_achat.c:192:29: error: expected expression before ‘struct’
return container_of(_iocb, struct ffs_request, iocb);
^~~~~~
device_achat.c:52:45: note: in definition of macro ‘container_of’
(type *)( (char *)__mptr - offsetof(type,member) );})
^~~~
device_achat. c
...
...
#define container_of(ptr, type, member) ({ \
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
(type *)( (char *)__mptr - offsetof(type,member) );})
...
...
/* Use container_of() to get ffs_request from iocb */
static inline struct ffs_request *to_ffs_request(struct iocb *_iocb)
{
return container_of(_iocb, struct ffs_request, iocb);
}
...
...