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: 135155 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp4326679lji; Tue, 8 May 2018 05:31:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoyYtDUDd2JRRtRrOoGKa9+7oBVG9asBasIXH4ZRS6Pe+h+VSz+/oFrXqLtyQC0BpJYQk6l X-Received: by 10.98.224.76 with SMTP id f73mr40049591pfh.88.1525782696001; Tue, 08 May 2018 05:31:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525782695; cv=none; d=google.com; s=arc-20160816; b=j9LuMMSs4ipdJq4TbbsB5/hMRkFYvC1SCVViZvcu1i5YirfJ2R2vJBwvj/GkOZAV9m 1FpEVf57HJqgchzHJe+5cxBaoE/dVHh8C3SKM3pNw7NNF0snKxFvNBj7Uubugo/WRVSR BLhWUjhLSEX+saRSeLAaz91IMi0eovszKuALYfjsHhWTnkXdOn+ZIuFMQqhLLC3tBiir p+eF7e3PcmEceEa/g38uNutxgBWg7iCr4kxz2eZbgcvgI06SklfMdPo/SzrBaMQAF4WN S0gbV2+TiOAb3/Tw0eDMipZOlEjDYNO6Iu/GsLTrHZ9MTs+tMwCJgvtFfEYcSLXp4uLd K4/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=hA8M37sulGINlXDGIUBs4U0bPaoXgnjEZce9iqruUMs=; b=IMkyPH4Up/uoa6mbbgS/JtxBoZ62gV/mTV9xuqrMWd8JLIycbrH7lOAmgOzmCUifmv uGZazYz+v7JtvTc6w77YqoYiblb4Tm8uxUy7n/D9rh5g6s5RjgiRoHhOuAzVwXb68lSR VdZJF3XR/XLIktLaO95rUfeXtTWTQpcE5XyMQWyCYQ4PrjberMtKCOEAStaWRDWkD4v/ F5DQ1jE+BWkX/T6cd7/tC3cCaQFTKds4tPh+5XEPQl2R0NlQUteu+xYtpiQHdvSaibgD 7/DaTdueNPYEnki4HjTXgdW3cuPEDf4GhUTjlqrXa345Uuy1ubODVYs94mYf2zKM/9hO D4/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GWDnPtST; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay3-v6si23691094plb.361.2018.05.08.05.31.35; Tue, 08 May 2018 05:31:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GWDnPtST; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754790AbeEHMbc (ORCPT + 29 others); Tue, 8 May 2018 08:31:32 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:36368 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751400AbeEHMba (ORCPT ); Tue, 8 May 2018 08:31:30 -0400 Received: by mail-lf0-f66.google.com with SMTP id t129-v6so6278412lff.3 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=UW7YcIadWa4fdRfZNesQqztr2tNOKiy+f2fQgLC1HMbJ1cRzblrgSKvtCj+x2fsK2w t4xwwzPhf9tVZWYDIFXRTjl8huHRkpM2PWRLgUI/yz1nxsZZ7awNOcAr9aps/AgpqE0o HcRjhwJOj5zugnUB9D9I1X6qCwv8vyzjz/QpoflLGcUamdyANzd9DOY9kaA6Hj1rNpxy 57sqSnjnqA6Pgh3jPIMEzgSQ2FluenFKQNxREFhgwXfYkQPNYLczQ1Evwg20R2PZGh7j b7I2i8nWAvhT3CsEcrWPdTJVKXNYekG3STx+DY/jQ68/g2hnf30FKvXtnvP1v9pGT5ef FM1Q== X-Gm-Message-State: ALKqPwdk5UoZiKSbsTP2aE0/fTpXQU0TIES9kBZuFacSOdXjCoRQ8HYx lHgCzpjuAOMLT9YVP3i0wFp09w== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.17.0 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