CFLAGS="$CFLAGS -Werror"
AC_COMPILE_IFELSE([
#include <linux/types.h>
+ #include <linux/stddef.h>
int main(void) {
unsigned long long *data1;
- __u64 *data2;
-
+ __u64 *data2 = NULL;
+
data1 = data2;
return 0;
}
],[
unsigned long long *data1;
__u64 *data2 = NULL;
-
+
data1 = data2;
],[
AC_MSG_RESULT([yes])
CFLAGS="$CFLAGS -Werror"
AC_COMPILE_IFELSE([
#include <linux/types.h>
+ #include <linux/stddef.h>
int main(void) {
unsigned long *data1;
- size_t *data2;
-
+ size_t *data2 = NULL;
+
data1 = data2;
return 0;
}
CFLAGS="$CFLAGS -Werror"
AC_COMPILE_IFELSE([
#include <linux/types.h>
+ #include <linux/stddef.h>
int main(void) {
long *data1;
- ssize_t *data2;
-
+ ssize_t *data2 = NULL;
+
data1 = data2;
return 0;
}
int i;
for (i = 0; i < HANDLE_HASH_SIZE; i++) {
- struct list_head *tmp, *pos;
+ struct list_head *pos, *n;
+ n = NULL;
spin_lock(&handle_hash[i].lock);
- list_for_each_safe_rcu(tmp, pos, &(handle_hash[i].head)) {
+ list_for_each_safe_rcu(pos, n, &(handle_hash[i].head)) {
struct portals_handle *h;
- h = list_entry(tmp, struct portals_handle, h_link);
+ h = list_entry(pos, struct portals_handle, h_link);
CERROR("force clean handle "LPX64" addr %p addref %p\n",
h->h_cookie, h, h->h_addref);