Message ID | 1452787100-21782-2-git-send-email-sjg@chromium.org |
---|---|
State | Accepted |
Commit | 35a1f0dfa13510b29f9d320a999819eb2d9cb857 |
Delegated to: | Simon Glass |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id D9657140BEB for <incoming@patchwork.ozlabs.org>; Fri, 15 Jan 2016 02:58:53 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b=I2ENqD4x; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4DFA7A76E9; Thu, 14 Jan 2016 16:58:50 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V-XRdinV90Ux; Thu, 14 Jan 2016 16:58:50 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B0B00A754C; Thu, 14 Jan 2016 16:58:43 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D1E80A755F for <u-boot@lists.denx.de>; Thu, 14 Jan 2016 16:58:38 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aKH9kX7gnzHe for <u-boot@lists.denx.de>; Thu, 14 Jan 2016 16:58:38 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ob0-f178.google.com (mail-ob0-f178.google.com [209.85.214.178]) by theia.denx.de (Postfix) with ESMTPS id 4BA03A754C for <u-boot@lists.denx.de>; Thu, 14 Jan 2016 16:58:34 +0100 (CET) Received: by mail-ob0-f178.google.com with SMTP id vt7so86563350obb.1 for <u-boot@lists.denx.de>; Thu, 14 Jan 2016 07:58:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=cP6y1cube+p0jdTFkJA6sAIBbwsV2H+v539ZwGvnzEc=; b=I2ENqD4xzMF39VidQcG90hTT5Lxe0yKnVyDoJ4z9JiqfPqgHoMUpRZlGtjVT9aYfis /Dy6pm+nE6MnfkzgVNG7tY2tv05Cpk+3QVz1060nA3ilR4UPWh5yLyWm+g1vLgI8fkPG /kpDQ46EfgBPrhI0t3AjqgeieRJ89PwSCtCi01fVRUo++pJF9TVmyV2DUv6RMoBJ5EU4 SY3xzctegbGW4HLC7SO1coMwK/1SIoqChMdcNLvlGpjC5Qd+Ws1a0BI6RQg3JRPkWjwB bn/gAnsRDlqtwVOVYPv9LAQvGh9DfMpVDAmfoLhnXdXNEIp4i+CnwH3FeJMWpTDkL7jC 1djg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=cP6y1cube+p0jdTFkJA6sAIBbwsV2H+v539ZwGvnzEc=; b=mmjo8pgJPaaV8Q/MbmjRl7l7ho74wPFXdRTKmNdeIj4IkYz8QMz1xMC57DCvvXSdEH UNGyNxUPs6ioGGM4B6zTkRKNElKovNHMk9XEi5U2AhCdo+wpkUTrkGTFv2bVvrPybTh4 fvLu+WnEsbGe8ncnVHfW/zEpDqa8oXLv/B1Isg5Av4hLhuvVjiWTbANIlDSI5T6X1WPa CJAH3lFScybpkczvw/+LeyBDEcRrcDY6/n5MEH8azOQWS5v9dS0Sj4nxykpjIi9sBwLK 3Ah95Eq4cgeICLjvL2aP28piu6vyuCRJGtm7u4ewP7M02SasJS+rowi2VPPcH3/Himgc wHoA== X-Gm-Message-State: ALoCoQlDUpx1cefEQKNDIv6LON/VWrK4ZVA2eBkK+Rc0hJ2lgYpqtQozcCVqCo/FSMcSfidBuqZqapVnH7JVl3RmdDz+xS74pw== X-Received: by 10.182.73.200 with SMTP id n8mr3861703obv.54.1452787113120; Thu, 14 Jan 2016 07:58:33 -0800 (PST) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by smtp.gmail.com with ESMTPSA id qv1sm3726232oeb.2.2016.01.14.07.58.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Jan 2016 07:58:32 -0800 (PST) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id B5AB0220472; Thu, 14 Jan 2016 08:58:31 -0700 (MST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Date: Thu, 14 Jan 2016 08:57:44 -0700 Message-Id: <1452787100-21782-2-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.6.0.rc2.230.g3dd15c0 In-Reply-To: <1452787100-21782-1-git-send-email-sjg@chromium.org> References: <1452787100-21782-1-git-send-email-sjg@chromium.org> Cc: Tom Cubie <tom@radxa.com>, Jeffy Chen <jeffy.chen@rock-chips.com> Subject: [U-Boot] [PATCH 01/37] stdio: Correct a build error with driver model X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <http://lists.denx.de/mailman/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <http://lists.denx.de/mailman/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
diff --git a/common/stdio.c b/common/stdio.c index 7252bab..f99cfe7 100644 --- a/common/stdio.c +++ b/common/stdio.c @@ -283,6 +283,9 @@ int stdio_add_devices(void) #endif #ifdef CONFIG_DM_VIDEO struct udevice *vdev; +# ifndef CONFIG_DM_KEYBOARD + int ret; +# endif for (ret = uclass_first_device(UCLASS_VIDEO, &vdev); vdev;
When driver model is used for video but not for the keyboard, a compiler warnings is produced. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org> --- common/stdio.c | 3 +++ 1 file changed, 3 insertions(+)