Re: [PATCH liburing 2/3] examples: add a simple single-shot poll benchmark

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/14/22 9:36 PM, Pavel Begunkov wrote:
+int main(void)
+{
+	unsigned long tstop;
+	unsigned long nr_reqs = 0;
+	struct io_uring_cqe *cqe;
+	struct io_uring_sqe *sqe;
+	struct io_uring ring;
+	int pipe1[2];
+	int ret, i, qd = 128;
+
+	if (argc > 1)
+		return 0;
+

Hi Pavel,

I am testing this and it doesn't compile, the main(void) needs fixing.

```
  poll-bench.c: In function ‘main’:
  poll-bench.c:39:13: error: ‘argc’ undeclared (first use in this function)
     39 |         if (argc > 1)
        |             ^~~~
  poll-bench.c:39:13: note: each undeclared identifier is reported only once for each function it appears in
  make[1]: *** [Makefile:34: poll-bench] Error 1
  make[1]: *** Waiting for unfinished jobs....
  make[1]: Leaving directory '/home/ammarfaizi2/app/liburing/examples'
  make: *** [Makefile:12: all] Error 2
```

--
Ammar Faizi



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux