|
533 | 533 |
|
534 | 534 | const unsigned char *_ctype; |
535 | 535 |
|
536 | | -#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 10, 0) |
| 536 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 11, 0) |
| 537 | + typeof(kmalloc_noprof) *kmalloc_noprof; |
| 538 | + typeof(krealloc_noprof) *krealloc_noprof; |
| 539 | + typeof(kzalloc_noprof) *kzalloc_noprof; |
| 540 | + typeof(__kvmalloc_node_noprof) *__kvmalloc_node_noprof; |
| 541 | + typeof(__kmalloc_cache_noprof) *__kmalloc_cache_noprof; |
| 542 | +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(6, 10, 0) |
537 | 543 | typeof(kmalloc_noprof) *kmalloc_noprof; |
538 | 544 | typeof(krealloc_noprof) *krealloc_noprof; |
539 | 545 | typeof(kzalloc_noprof) *kzalloc_noprof; |
|
685 | 691 |
|
686 | 692 | #define _ctype (wolfssl_linuxkm_get_pie_redirect_table()->_ctype) |
687 | 693 |
|
688 | | -#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 10, 0) |
| 694 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 11, 0) |
| 695 | + /* see include/linux/alloc_tag.h and include/linux/slab.h */ |
| 696 | + #define kmalloc_noprof (wolfssl_linuxkm_get_pie_redirect_table()->kmalloc_noprof) |
| 697 | + #define krealloc_noprof (wolfssl_linuxkm_get_pie_redirect_table()->krealloc_noprof) |
| 698 | + #define kzalloc_noprof (wolfssl_linuxkm_get_pie_redirect_table()->kzalloc_noprof) |
| 699 | + #define __kvmalloc_node_noprof (wolfssl_linuxkm_get_pie_redirect_table()->__kvmalloc_node_noprof) |
| 700 | + #define __kmalloc_cache_noprof (wolfssl_linuxkm_get_pie_redirect_table()->__kmalloc_cache_noprof) |
| 701 | +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(6, 10, 0) |
689 | 702 | /* see include/linux/alloc_tag.h and include/linux/slab.h */ |
690 | 703 | #define kmalloc_noprof (wolfssl_linuxkm_get_pie_redirect_table()->kmalloc_noprof) |
691 | 704 | #define krealloc_noprof (wolfssl_linuxkm_get_pie_redirect_table()->krealloc_noprof) |
|
0 commit comments