Message ID | 1377177863-1729-1-git-send-email-tushar.behera@linaro.org |
---|---|
State | Accepted |
Commit | 68a5a5f38c2d80f74c946972375983ff85d508bb |
Headers | show
Return-Path: <patchwork-forward+bncBCM7XVUQUEDBBGVK3CIAKGQEKFCIC7I@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 498B0246AD for <linaro@patches.linaro.org>; Thu, 22 Aug 2013 13:41:47 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id m20sf828256qcx.3 for <linaro@patches.linaro.org>; Thu, 22 Aug 2013 06:41:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe:content-type:content-transfer-encoding; bh=wMZZForx439Jqdxz2Pu9TkLAhYLAm8gv7lqtbO8Ce0g=; b=dvedVhBVIX2/OwCQjioN4AAdgWDyhCfNCVJgxgShFFkrIaAexRk5AKQ/TlEm9p+k4K U4PGp3iU+EIdBNsUSE2JTY5u1BAfzca8vQ1D4zouuKKBtyPpxfKGUVQjAhkdN3IZqLH/ 658PvORW+/mtc0lvrO+rnpmVcCuu6I6ADtJmt3Ar7LQO9O00zjUurpu71FZ6NJ+VRuII IHR5JWmq1zhwFpqaBc4grupqNVnhBdv/hZgOqYJNQMrER47fIrCqgIhLFxmc+VJHlBON XMlQHMMElcPa3x62n8Lv55yTPc9qGQqpdqp+bYi4ZaUvWA0msQf/zuphiluY+j9j2nmJ p06g== X-Received: by 10.224.52.6 with SMTP id f6mr13003455qag.2.1377178906798; Thu, 22 Aug 2013 06:41:46 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.81.179 with SMTP id b19ls1161826qey.31.gmail; Thu, 22 Aug 2013 06:41:46 -0700 (PDT) X-Received: by 10.58.136.4 with SMTP id pw4mr11712132veb.10.1377178906675; Thu, 22 Aug 2013 06:41:46 -0700 (PDT) Received: from mail-vb0-f41.google.com (mail-vb0-f41.google.com [209.85.212.41]) by mx.google.com with ESMTPS id h13si3955965vco.86.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 Aug 2013 06:41:46 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.41 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.41; Received: by mail-vb0-f41.google.com with SMTP id g17so1242458vbg.14 for <patchwork-forward@linaro.org>; Thu, 22 Aug 2013 06:41:46 -0700 (PDT) X-Gm-Message-State: ALoCoQlWPJGF2LbOLI7bYzG8IiL5+COlp812HUEBj4zV5E7XH9yRiA7f+kQ5ASdlLgM4JwP6nkyE X-Received: by 10.221.27.73 with SMTP id rp9mr635552vcb.29.1377178906593; Thu, 22 Aug 2013 06:41:46 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp31448vcz; Thu, 22 Aug 2013 06:41:45 -0700 (PDT) X-Received: by 10.68.130.71 with SMTP id oc7mr13604686pbb.10.1377178905002; Thu, 22 Aug 2013 06:41:45 -0700 (PDT) Received: from mail-pb0-f41.google.com (mail-pb0-f41.google.com [209.85.160.41]) by mx.google.com with ESMTPS id gg2si10040979pac.101.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 Aug 2013 06:41:44 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.41 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.160.41; Received: by mail-pb0-f41.google.com with SMTP id rp2so1810046pbb.28 for <patches@linaro.org>; Thu, 22 Aug 2013 06:41:44 -0700 (PDT) X-Received: by 10.66.50.69 with SMTP id a5mr5585778pao.150.1377178904460; Thu, 22 Aug 2013 06:41:44 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id ia5sm14972730pbc.42.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 Aug 2013 06:41:43 -0700 (PDT) From: Tushar Behera <tushar.behera@linaro.org> To: devel@driverdev.osuosl.org Cc: gregkh@linuxfoundation.org, lidza.louina@gmail.com, patches@linaro.org Subject: [PATCH] staging: dgnc: driver.c: Need to include slab.h Date: Thu, 22 Aug 2013 18:54:23 +0530 Message-Id: <1377177863-1729-1-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: tushar.behera@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.41 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit |
diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c index fa4e91a..8032368 100644 --- a/drivers/staging/dgnc/dgnc_driver.c +++ b/drivers/staging/dgnc/dgnc_driver.c @@ -34,6 +34,7 @@ #include <linux/version.h> #include <linux/module.h> #include <linux/pci.h> +#include <linux/slab.h> #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39) #include <linux/sched.h>
With 'allyesconfig', we get following error without this. drivers/staging/dgnc/dgnc_driver.c: In function ‘dgnc_cleanup_board’: drivers/staging/dgnc/dgnc_driver.c:459:3: error: implicit declaration of function ‘kfree’ [-Werror=implicit-function-declaration] kfree(brd->msgbuf_head); ^ drivers/staging/dgnc/dgnc_driver.c: In function ‘dgnc_driver_kzmalloc’: drivers/staging/dgnc/dgnc_driver.c:905:2: error: implicit declaration of function ‘kmalloc’ [-Werror=implicit-function-declaration] void *p = kmalloc(size, priority); Signed-off-by: Tushar Behera <tushar.behera@linaro.org> --- drivers/staging/dgnc/dgnc_driver.c | 1 + 1 file changed, 1 insertion(+)