c-for-go icon indicating copy to clipboard operation
c-for-go copied to clipboard

unexpected ':', expected assembler operands or one of ['[', string literal]

Open PureWhiteWu opened this issue 5 years ago • 0 comments

Hi, I want to generate cgo files for https://github.com/axboe/liburing/blob/master/src/include/liburing.h But got this:

processing liburing.yml ⠋[ERR] /usr/include/liburing.h:149:3: unexpected ':', expected assembler operands or one of ['[', string literal]

And line 149 is:

139 static inline void io_uring_cq_advance(struct io_uring *ring,
140 				       unsigned nr)
141{
142	if (nr) {
143		struct io_uring_cq *cq = &ring->cq;
144
145		/*
146		 * Ensure that the kernel only sees the new value of the head
147		 * index after the CQEs have been read.
148		 */
149		io_uring_smp_store_release(cq->khead, *cq->khead + nr);
150	}
151}

PureWhiteWu avatar Jun 03 '20 11:06 PureWhiteWu