From patchwork Mon Jan 13 10:22:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesper Dangaard Brouer X-Patchwork-Id: 1222050 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=eHyw+tqw; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 47x8m62c3lz9sP6 for ; Mon, 13 Jan 2020 21:22:30 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726336AbgAMKW2 (ORCPT ); Mon, 13 Jan 2020 05:22:28 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:20367 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726001AbgAMKW2 (ORCPT ); Mon, 13 Jan 2020 05:22:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578910947; h=from:from:reply-to:subject:subject:date:date:message-id:message-id:to: cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=03vuLyMcSo3+KdWAYqdpfj5B9wMnZwlsEsPHAEmkEMw=; b=eHyw+tqwl81aU1AnlGFZgMa0kT7LlbShcAvx6qm1YiqF/fkhYMhIxXDhHlfI7g7irluIl/ UFfI2AKZ5bFkqdsKYkoAqlqS6HFQ6rXOvWf8cCwS1LE30jz8Ko4nXB4uFKatpWNbqx4+1x 6f5PPU2kNMOu1nyCpfq1bEFO8zFoDpA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-427-DFLomiRVMz29GDX-dgNFGA-1; Mon, 13 Jan 2020 05:22:26 -0500 X-MC-Unique: DFLomiRVMz29GDX-dgNFGA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2196F801E72; Mon, 13 Jan 2020 10:22:25 +0000 (UTC) Received: from firesoul.localdomain (ovpn-200-51.brq.redhat.com [10.40.200.51]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9731E5C28D; Mon, 13 Jan 2020 10:22:18 +0000 (UTC) Received: from [192.168.42.3] (localhost [IPv6:::1]) by firesoul.localdomain (Postfix) with ESMTP id F409D30736C73; Mon, 13 Jan 2020 11:22:16 +0100 (CET) Subject: [PATCH net-next] ptr_ring: add include of linux/mm.h From: Jesper Dangaard Brouer Cc: Jesper Dangaard Brouer , netdev@vger.kernel.org, "David S. Miller" , "Michael S. Tsirkin" , Jason Wang Date: Mon, 13 Jan 2020 11:22:16 +0100 Message-ID: <157891093662.53334.15580647502551818360.stgit@firesoul> User-Agent: StGit/0.19 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 To: unlisted-recipients:; (no To-header on input) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Commit 0bf7800f1799 ("ptr_ring: try vmalloc() when kmalloc() fails") started to use kvmalloc_array and kvfree, which are defined in mm.h, the previous functions kcalloc and kfree, which are defined in slab.h. Add the missing include of linux/mm.h. This went unnoticed as other include files happened to include mm.h. Fixes: 0bf7800f1799 ("ptr_ring: try vmalloc() when kmalloc() fails") Signed-off-by: Jesper Dangaard Brouer Acked-by: Michael S. Tsirkin --- include/linux/ptr_ring.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/ptr_ring.h b/include/linux/ptr_ring.h index 0abe9a4fc842..417db0a79a62 100644 --- a/include/linux/ptr_ring.h +++ b/include/linux/ptr_ring.h @@ -23,6 +23,7 @@ #include #include #include +#include #include #endif