From patchwork Tue May 8 12:31:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 10386091 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C3221602C2 for ; Tue, 8 May 2018 12:31:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B402A28D4B for ; Tue, 8 May 2018 12:31:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A8D9528D94; Tue, 8 May 2018 12:31:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25C0A28D4B for ; Tue, 8 May 2018 12:31:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754611AbeEHMbb (ORCPT ); Tue, 8 May 2018 08:31:31 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:39563 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752390AbeEHMba (ORCPT ); Tue, 8 May 2018 08:31:30 -0400 Received: by mail-lf0-f68.google.com with SMTP id j193-v6so45581563lfg.6 for ; Tue, 08 May 2018 05:31:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hA8M37sulGINlXDGIUBs4U0bPaoXgnjEZce9iqruUMs=; b=GWDnPtSTV29626HtR46Yn0pDFWK87R8MSxSP38TFGuJgZohTP3p0EsV8yQDCDcVAOg s9VPc2GbJcdAijLRwDK70WdiQKOVDnwq7DIxjv7WLHZ3+prcJTpDW8hhNhftyi8rtuhg 8Zy8Kaa/XOa+Y3+nEdvSjM6jTyUnYrZLiIqQ8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hA8M37sulGINlXDGIUBs4U0bPaoXgnjEZce9iqruUMs=; b=CI3cuv5RzPx9LkdU6FxN6L28xvPP7Qn2m/YjPzqE+EU64R0H7wM2kj0rajGXtw/Fbz B75+7j4NRtX1He8C9vOasSgQcBA2vyy1h/Q+YTUNY2t5qn2az4PFGC9glzwaDBM5APYr AmnJrwZwrOlwQnqDiFR95S44CVG/DVET+kyEPwcO2N/UKK3Xsg5mBqOwK+lGbT6B6S3Q XEvoVWmgn77SGV4/f5iHgbbBpa5vEawkL22kaoxmA3AvhmI/RKk5C6OrGPi2rdNWGwZC 3MYfro3r7S8NWWLnVSVuMTND1YEG7ajbV62gRG4gQqDXAd9Acj27JmY2zcdjWSYQVXWM +2xQ== X-Gm-Message-State: ALKqPwfPdcibHRb//ejrqZJEr0hJiJ1n7yB8ixeyiztbTdJVAMTHQkRQ 7pUGFC2DaKPBV2mh+j6lNd6zBZIf73k= X-Google-Smtp-Source: AB8JxZrPX2lC2IwAdFHCJ9GpmXzrVcFAb/2/evcqvTRTAJJua02fF5w1ouS7WsHAr9vpGA4tAHTM1Q== X-Received: by 2002:a2e:5f0f:: with SMTP id t15-v6mr7295284ljb.2.1525782689020; Tue, 08 May 2018 05:31:29 -0700 (PDT) Received: from localhost (c-2c3d70d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.61.44]) by smtp.gmail.com with ESMTPSA id l6-v6sm4751431ljj.30.2018.05.08.05.31.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 May 2018 05:31:28 -0700 (PDT) From: Anders Roxell To: mchehab@kernel.org, hans.verkuil@cisco.com Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] media: usb: cx231xx-417: include linux/slab.h header Date: Tue, 8 May 2018 14:31:21 +0200 Message-Id: <20180508123121.6280-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP cx231-417 uses kmalloc/kfree functions, so slab header needs to be included in order to fix the following build errors: drivers/media/usb/cx231xx/cx231xx-417.c: In function ‘cx231xx_bulk_copy’: CC drivers/media/platform/qcom/venus/firmware.o drivers/media/usb/cx231xx/cx231xx-417.c:1389:11: error: implicit declaration of function ‘kmalloc’; did you mean ‘vmalloc’? [-Werror=implicit-function-declaration] buffer = kmalloc(buffer_size, GFP_ATOMIC); ^~~~~~~ vmalloc drivers/media/usb/cx231xx/cx231xx-417.c:1389:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion] buffer = kmalloc(buffer_size, GFP_ATOMIC); ^ drivers/media/usb/cx231xx/cx231xx-417.c:1400:2: error: implicit declaration of function ‘kfree’; did you mean ‘vfree’? [-Werror=implicit-function-declaration] kfree(buffer); ^~~~~ vfree drivers/media/usb/cx231xx/cx231xx-417.c: In function ‘mpeg_open’: drivers/media/usb/cx231xx/cx231xx-417.c:1713:7: error: implicit declaration of function ‘kzalloc’; did you mean ‘vzalloc’? [-Werror=implicit-function-declaration] fh = kzalloc(sizeof(*fh), GFP_KERNEL); ^~~~~~~ vzalloc drivers/media/usb/cx231xx/cx231xx-417.c:1713:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion] fh = kzalloc(sizeof(*fh), GFP_KERNEL); ^ Signed-off-by: Anders Roxell --- drivers/media/usb/cx231xx/cx231xx-417.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/usb/cx231xx/cx231xx-417.c b/drivers/media/usb/cx231xx/cx231xx-417.c index b80e6857e2eb..2f3b0564d676 100644 --- a/drivers/media/usb/cx231xx/cx231xx-417.c +++ b/drivers/media/usb/cx231xx/cx231xx-417.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include