]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/core/filter.c
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[karo-tx-linux.git] / net / core / filter.c
index cf4989ac503bcc8163f90ee0e3e9610155845551..6f755cca45206934444464da8b8bcb0289921717 100644 (file)
 #include <linux/reciprocal_div.h>
 #include <linux/ratelimit.h>
 
-/* No hurry in this branch */
-static void *__load_pointer(const struct sk_buff *skb, int k, unsigned int size)
+/* No hurry in this branch
+ *
+ * Exported for the bpf jit load helper.
+ */
+void *bpf_internal_load_pointer_neg_helper(const struct sk_buff *skb, int k, unsigned int size)
 {
        u8 *ptr = NULL;
 
@@ -59,7 +62,7 @@ static inline void *load_pointer(const struct sk_buff *skb, int k,
 {
        if (k >= 0)
                return skb_header_pointer(skb, k, size, buffer);
-       return __load_pointer(skb, k, size);
+       return bpf_internal_load_pointer_neg_helper(skb, k, size);
 }
 
 /**