@@ -1759,8 +1759,8 @@ static const struct bpf_func_proto bpf_dynptr_from_mem_proto = {
1759
1759
.arg4_type = ARG_PTR_TO_DYNPTR | DYNPTR_TYPE_LOCAL | MEM_UNINIT | MEM_WRITE ,
1760
1760
};
1761
1761
1762
- BPF_CALL_5 ( bpf_dynptr_read , void * , dst , u32 , len , const struct bpf_dynptr_kern * , src ,
1763
- u32 , offset , u64 , flags )
1762
+ static int __bpf_dynptr_read ( void * dst , u32 len , const struct bpf_dynptr_kern * src ,
1763
+ u32 offset , u64 flags )
1764
1764
{
1765
1765
enum bpf_dynptr_type type ;
1766
1766
int err ;
@@ -1793,6 +1793,12 @@ BPF_CALL_5(bpf_dynptr_read, void *, dst, u32, len, const struct bpf_dynptr_kern
1793
1793
}
1794
1794
}
1795
1795
1796
+ BPF_CALL_5 (bpf_dynptr_read , void * , dst , u32 , len , const struct bpf_dynptr_kern * , src ,
1797
+ u32 , offset , u64 , flags )
1798
+ {
1799
+ return __bpf_dynptr_read (dst , len , src , offset , flags );
1800
+ }
1801
+
1796
1802
static const struct bpf_func_proto bpf_dynptr_read_proto = {
1797
1803
.func = bpf_dynptr_read ,
1798
1804
.gpl_only = false,
@@ -1804,8 +1810,8 @@ static const struct bpf_func_proto bpf_dynptr_read_proto = {
1804
1810
.arg5_type = ARG_ANYTHING ,
1805
1811
};
1806
1812
1807
- BPF_CALL_5 ( bpf_dynptr_write , const struct bpf_dynptr_kern * , dst , u32 , offset , void * , src ,
1808
- u32 , len , u64 , flags )
1813
+ static int __bpf_dynptr_write ( const struct bpf_dynptr_kern * dst , u32 offset , void * src ,
1814
+ u32 len , u64 flags )
1809
1815
{
1810
1816
enum bpf_dynptr_type type ;
1811
1817
int err ;
@@ -1843,6 +1849,12 @@ BPF_CALL_5(bpf_dynptr_write, const struct bpf_dynptr_kern *, dst, u32, offset, v
1843
1849
}
1844
1850
}
1845
1851
1852
+ BPF_CALL_5 (bpf_dynptr_write , const struct bpf_dynptr_kern * , dst , u32 , offset , void * , src ,
1853
+ u32 , len , u64 , flags )
1854
+ {
1855
+ return __bpf_dynptr_write (dst , offset , src , len , flags );
1856
+ }
1857
+
1846
1858
static const struct bpf_func_proto bpf_dynptr_write_proto = {
1847
1859
.func = bpf_dynptr_write ,
1848
1860
.gpl_only = false,
0 commit comments