Received: by 10.192.165.148 with SMTP id m20csp4246974imm; Tue, 8 May 2018 05:33:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr3hGn1Afs/etosWpmfcRfEUZhct7JimOtLztj7VHovMrnGgh2Z/xW6x0EfvXzFdX28+suD X-Received: by 2002:a63:7e5c:: with SMTP id o28-v6mr32193699pgn.194.1525782825969; Tue, 08 May 2018 05:33:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525782825; cv=none; d=google.com; s=arc-20160816; b=vx9QrzlILnEQPN/IacW6fJROzzl1fQv416OIhT+G+9moczuHEdQuNEA4rerRwhk7G/ 9RvGRi7rDj72Tizt3E+ZJSwxprMipUKfPLTxc4/RtOwDjJ6OCGNK04ZK34LWDw4+pSFw TSjwRgiFK/pwuTuH3C8mdtc656Zz3l1MJaHG/pWnFr3NXL3F6Gg8BxRzKXBJyuJTIUD0 pYZCQQVuKBapOCaIFJbF6GmMnKlXeq0ZissWjVt/pmHIMwERLgXay6VBV8SHlI44UbLB Pb/plh3MAAIbiX5xtVPV0CaFynzSiiQvObOdz5EIYLm5ox35uQO590Ay9gG3mlj/71Wx bdcA== 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 h8si14887486pfi.115.2018.05.08.05.33.31; Tue, 08 May 2018 05:33:45 -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 S1754718AbeEHMbc (ORCPT + 99 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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(+) 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 -- 2.17.0