From patchwork Tue May 27 13:17:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 30979 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f199.google.com (mail-ig0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D0738203C3 for ; Tue, 27 May 2014 13:17:56 +0000 (UTC) Received: by mail-ig0-f199.google.com with SMTP id c1sf3544183igq.6 for ; Tue, 27 May 2014 06:17:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=kWTkjEqGesJMHqk9oVGL387/rGJN9CuswA50fU0OGQo=; b=GFo44p+jtGeQ0DYSpATGwR8h7Cbv2tX16UQ4eLpUJHbwGFHlH8UjETeNuMw4QZFKuq LggHWSkaQZ9inVhcv35J4R+NBqhKFx3fAExBqbDACIueyDUimUNYbbF0Z+fJeE2nCGyj NZSH/qBAEnYI886m0dmjI2D3SYxjR8mdlSD3zV1UBKljKRl4Zigh7Zichk9VrJ+uEPJq P9ns3qP1AsFP3SIyCTxYHb4YRhFlBk9HKznGqZXyBHfyPoxncqvVcb3OIiyCGXf93YxP l3cTHpX383AfLKydOqleN2MfM1TnaenPI1qLYQuHPTUpT8eNRMrKKlRcSLbQlTW/dkkT c50A== X-Gm-Message-State: ALoCoQm4K6cEbjKsQi1yXctPVP6vPlJZ2TWd6Bhy7c1qC0j/RGw5RmhuXMflo+NltLfSz0nJ4zcL X-Received: by 10.50.50.69 with SMTP id a5mr8972456igo.6.1401196676405; Tue, 27 May 2014 06:17:56 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.40.209 with SMTP id x75ls2987330qgx.46.gmail; Tue, 27 May 2014 06:17:56 -0700 (PDT) X-Received: by 10.58.143.13 with SMTP id sa13mr1212121veb.44.1401196676286; Tue, 27 May 2014 06:17:56 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id na9si7400561vcb.64.2014.05.27.06.17.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 27 May 2014 06:17:56 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id lc6so10462160vcb.2 for ; Tue, 27 May 2014 06:17:56 -0700 (PDT) X-Received: by 10.220.7.131 with SMTP id d3mr692713vcd.45.1401196676208; Tue, 27 May 2014 06:17:56 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp118398vcb; Tue, 27 May 2014 06:17:55 -0700 (PDT) X-Received: by 10.66.180.141 with SMTP id do13mr35848573pac.93.1401196675518; Tue, 27 May 2014 06:17:55 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xb6si19031896pab.45.2014.05.27.06.17.54; Tue, 27 May 2014 06:17:54 -0700 (PDT) Received-SPF: none (google.com: linux-gpio-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752340AbaE0NRy (ORCPT + 1 other); Tue, 27 May 2014 09:17:54 -0400 Received: from mail-wg0-f45.google.com ([74.125.82.45]:44472 "EHLO mail-wg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752289AbaE0NRx (ORCPT ); Tue, 27 May 2014 09:17:53 -0400 Received: by mail-wg0-f45.google.com with SMTP id m15so9278606wgh.4 for ; Tue, 27 May 2014 06:17:52 -0700 (PDT) X-Received: by 10.194.63.46 with SMTP id d14mr41117301wjs.24.1401196671460; Tue, 27 May 2014 06:17:51 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id fi2sm8349036wib.2.2014.05.27.06.17.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 May 2014 06:17:50 -0700 (PDT) From: Linus Walleij To: linux-gpio@vger.kernel.org Cc: Alexandre Courbot , Linus Walleij , Jean Delvare Subject: [PATCH] gpio: pch: add slab include Date: Tue, 27 May 2014 15:17:44 +0200 Message-Id: <1401196664-14223-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 1.9.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-gpio@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , After change 3ff35cbcfa4bc7d7dbdd0279e32ea677567ded02 "gpio-pch: Fix Kconfig dependencies" which enabled COMPILE_TEST as an alternative for the PCH driver, we get build failures like this: drivers/gpio/gpio-pch.c: In function 'pch_gpio_probe': drivers/gpio/gpio-pch.c:359:2: error: implicit declaration of function 'kzalloc' [-Werror=implicit-function-declaration] drivers/gpio/gpio-pch.c:359:7: warning: assignment makes pointer from integer without a cast [enabled by default] drivers/gpio/gpio-pch.c:442:2: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration] Fix this by including explicitly. Cc: Jean Delvare Signed-off-by: Linus Walleij --- drivers/gpio/gpio-pch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-pch.c b/drivers/gpio/gpio-pch.c index 83a156397474..d6eac9b17db9 100644 --- a/drivers/gpio/gpio-pch.c +++ b/drivers/gpio/gpio-pch.c @@ -20,6 +20,7 @@ #include #include #include +#include #define PCH_EDGE_FALLING 0 #define PCH_EDGE_RISING BIT(0)