Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 693704 | Differences between
and this patch

Collapse All | Expand All

(-)a/kernel/nv-linux.h (+18 lines)
Lines 877-888 extern void *nv_stack_t_cache; Link Here
877
        __ret;                                               \
877
        __ret;                                               \
878
     })
878
     })
879
#elif (NV_SMP_CALL_FUNCTION_ARGUMENT_COUNT == 3)
879
#elif (NV_SMP_CALL_FUNCTION_ARGUMENT_COUNT == 3)
880
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 3, 0)
880
#define NV_SMP_CALL_FUNCTION(func, info, wait)               \
881
#define NV_SMP_CALL_FUNCTION(func, info, wait)               \
881
    ({                                                       \
882
    ({                                                       \
882
        int __ret = smp_call_function(func, info, wait);     \
883
        int __ret = smp_call_function(func, info, wait);     \
883
        __ret;                                               \
884
        __ret;                                               \
884
     })
885
     })
885
#else
886
#else
887
#define NV_SMP_CALL_FUNCTION(func, info, wait)               \
888
    ({                                                       \
889
        int __ret = 0;                                       \
890
        smp_call_function(func, info, wait);                 \
891
        __ret;                                               \
892
     })
893
#endif
894
#else
886
#error "NV_SMP_CALL_FUNCTION_ARGUMENT_COUNT value unrecognized!"
895
#error "NV_SMP_CALL_FUNCTION_ARGUMENT_COUNT value unrecognized!"
887
#endif
896
#endif
888
#elif defined(CONFIG_SMP)
897
#elif defined(CONFIG_SMP)
Lines 897-908 extern void *nv_stack_t_cache; Link Here
897
        __ret;                                         \
906
        __ret;                                         \
898
     })
907
     })
899
#elif (NV_ON_EACH_CPU_ARGUMENT_COUNT == 3)
908
#elif (NV_ON_EACH_CPU_ARGUMENT_COUNT == 3)
909
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 3, 0)
900
#define NV_ON_EACH_CPU(func, info, wait)               \
910
#define NV_ON_EACH_CPU(func, info, wait)               \
901
    ({                                                 \
911
    ({                                                 \
902
        int __ret = on_each_cpu(func, info, wait);     \
912
        int __ret = on_each_cpu(func, info, wait);     \
903
        __ret;                                         \
913
        __ret;                                         \
904
     })
914
     })
905
#else
915
#else
916
#define NV_ON_EACH_CPU(func, info, wait)               \
917
    ({                                                 \
918
        int __ret = 0;                                 \
919
        on_each_cpu(func, info, wait);                 \
920
        __ret;                                         \
921
    })
922
#endif
923
#else
906
#error "NV_ON_EACH_CPU_ARGUMENT_COUNT value unrecognized!"
924
#error "NV_ON_EACH_CPU_ARGUMENT_COUNT value unrecognized!"
907
#endif
925
#endif
908
#elif defined(CONFIG_SMP)
926
#elif defined(CONFIG_SMP)

Return to bug 693704