Replace the calls to __skb_alloc_page that are passed NULL with calls to __netdev_alloc_page. Cc: Oliver Neukum <oliver@xxxxxxxxxx> Cc: Felipe Balbi <balbi@xxxxxx> Signed-off-by: Alexander Duyck <alexander.h.duyck@xxxxxxxxxx> --- drivers/net/usb/cdc-phonet.c | 2 +- drivers/usb/gadget/function/f_phonet.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/usb/cdc-phonet.c b/drivers/net/usb/cdc-phonet.c index 2ec1500..fd88da8 100644 --- a/drivers/net/usb/cdc-phonet.c +++ b/drivers/net/usb/cdc-phonet.c @@ -130,7 +130,7 @@ static int rx_submit(struct usbpn_dev *pnd, struct urb *req, gfp_t gfp_flags) struct page *page; int err; - page = __skb_alloc_page(gfp_flags | __GFP_NOMEMALLOC, NULL); + page = __netdev_alloc_page(gfp_flags | __GFP_NOMEMALLOC); if (!page) return -ENOMEM; diff --git a/drivers/usb/gadget/function/f_phonet.c b/drivers/usb/gadget/function/f_phonet.c index b9cfc15..1a5be3a 100644 --- a/drivers/usb/gadget/function/f_phonet.c +++ b/drivers/usb/gadget/function/f_phonet.c @@ -303,7 +303,7 @@ pn_rx_submit(struct f_phonet *fp, struct usb_request *req, gfp_t gfp_flags) struct page *page; int err; - page = __skb_alloc_page(gfp_flags | __GFP_NOMEMALLOC, NULL); + page = __netdev_alloc_page(gfp_flags | __GFP_NOMEMALLOC); if (!page) return -ENOMEM; -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html