Mikulas Patocka 4f6b28f54f A small compile fix
Hi

Here I'm sending a small compile fix for bcachefs-tools.

Without this patch, I get this error:

cargo  build --release --manifest-path rust-src/Cargo.toml
   Compiling bch_bindgen v0.1.0
(/usr/src/git/bcachefs-tools/rust-src/bch_bindgen)
error: failed to run custom build command for `bch_bindgen v0.1.0
(/usr/src/git/bcachefs-tools/rust-src/bch_bindgen)`

Caused by:
  process didn't exit successfully:
`/usr/src/git/bcachefs-tools/rust-src/target/release/build/bch_bindgen-733e88995ce9eab7/build-script-build`
(exit status: 101)
  --- stderr
  warning: optimization flag '-fkeep-inline-functions' is not supported
[-Wignored-optimization-argument]
  ../../include/linux/bit_spinlock.h:20:3: error: call to undeclared
function 'futex'; ISO C99 and later do not support implicit function
declarations [-Wimplicit-function-declaration]
  ../../include/linux/bit_spinlock.h:28:2: error: call to undeclared
function 'futex'; ISO C99 and later do not support implicit function
declarations [-Wimplicit-function-declaration]
  ../../include/linux/bit_spinlock.h:39:2: error: call to undeclared
function 'futex'; ISO C99 and later do not support implicit function
declarations [-Wimplicit-function-declaration]

The futex() function is declared in
	/usr/include/x86_64-linux-gnu/urcu/futex.h
It is not declared in linux/futex.h, so we need to include urcu/futex.h

Mikulas

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-04-26 10:44:49 -04:00
..
2018-12-19 20:34:24 -05:00
2023-04-26 10:44:49 -04:00
2022-06-27 15:58:39 -04:00
2018-02-09 22:20:56 +01:00
2018-05-17 02:36:19 -04:00
2022-11-24 06:21:06 +02:00
2017-01-20 09:07:08 -09:00
2017-10-08 10:20:36 -08:00
2018-05-17 07:24:39 -04:00
2017-01-20 09:07:08 -09:00
2018-12-19 20:34:24 -05:00
2017-01-20 09:07:08 -09:00
2017-01-20 09:07:08 -09:00
2017-01-20 09:07:08 -09:00
2017-01-20 09:07:08 -09:00
2017-01-20 09:07:08 -09:00
2017-01-20 09:07:08 -09:00
2017-01-20 09:07:08 -09:00
2017-01-20 09:07:08 -09:00
2017-01-20 09:07:08 -09:00
2023-02-13 17:51:14 -05:00
2018-05-17 07:24:39 -04:00
2017-01-20 09:07:08 -09:00
2023-03-02 23:00:03 -05:00
2019-08-28 11:35:00 -04:00
2020-05-21 17:19:47 -04:00
2018-05-17 02:45:49 -04:00
2017-01-20 09:07:08 -09:00
2021-05-27 21:12:13 -04:00
2021-04-24 01:36:43 -04:00
2018-12-19 20:34:24 -05:00
2017-03-10 12:40:01 -09:00
2017-01-20 09:07:08 -09:00
2021-07-24 20:16:41 -04:00
2017-03-16 14:23:40 -08:00
2018-12-19 20:34:24 -05:00
2022-06-22 22:05:39 -04:00
2018-05-17 07:24:39 -04:00
2021-04-26 20:18:47 -04:00
2018-12-19 20:34:24 -05:00
2018-12-19 20:34:24 -05:00
2018-12-19 20:34:24 -05:00
2018-12-19 20:34:24 -05:00
2022-06-22 22:05:39 -04:00
2018-02-09 22:20:56 +01:00
2018-12-19 20:34:24 -05:00