Skip to content

Instantly share code, notes, and snippets.

@wheresvic
Created November 15, 2019 20:31
Show Gist options
  • Save wheresvic/1e526c3cd937414661ce6be7c5e4667d to your computer and use it in GitHub Desktop.
Save wheresvic/1e526c3cd937414661ce6be7c5e4667d to your computer and use it in GitHub Desktop.
--- a/common/inc/nv-linux.h
+++ b/common/inc/nv-linux.h
@@ -730,8 +730,8 @@ static inline void nv_vunmap(NvUPtr vaddr, NvU32 page_count)
#elif (NV_ON_EACH_CPU_ARGUMENT_COUNT == 3)
#define NV_ON_EACH_CPU(func, info) \
({ \
- int __ret = on_each_cpu(func, info, 1); \
- __ret; \
+ on_each_cpu(func, info, 1); \
+ 0; \
})
#else
#error "NV_ON_EACH_CPU_ARGUMENT_COUNT value unrecognized!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment