From patchwork Mon May 23 08:10:37 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Lacombe X-Patchwork-Id: 807972 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4N8B6ob032713 for ; Mon, 23 May 2011 08:11:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753972Ab1EWILP (ORCPT ); Mon, 23 May 2011 04:11:15 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:36462 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753941Ab1EWILO (ORCPT ); Mon, 23 May 2011 04:11:14 -0400 Received: by iyb14 with SMTP id 14so4457137iyb.19 for ; Mon, 23 May 2011 01:11:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=QQdxXRp9IHXfxEcH2oH6JdYHsJGNf8fO69EQ7ORO/l0=; b=h7HlxHjy90w+zrpD7+jDGNw+xuYO/zyd/Wi9wjwVPpo0hREHnY/Lfyr8oe7a600I2X hGmv3wn/CxF3Ni1RdX2KgMwLa1IjryEwg3r+S8SzOU1DEou8AGkZsIw2k1vJ3u8GzxY2 SfoitrhVeIun1EVcOB+ZDPiIBZKt8rlFJpepw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=kKzJJNhdfwF31aLDyTFYYuM/rWgin1kHiYkuuqgbiorJDPjptZqoxHHjRA5/qFjxgX 74JryE2adjpSqBZoHRGEkFX0wiX9BjyX58yiWxHQ9L1mq97US9VK/R7N3/5sHbc9+kE2 vSFviDR9s2um8A7HpGbar+EgP5/VVAcBc7cQo= Received: by 10.42.131.2 with SMTP id x2mr8333431ics.259.1306138274342; Mon, 23 May 2011 01:11:14 -0700 (PDT) Received: from localhost.localdomain (76-10-146-236.dsl.teksavvy.com [76.10.146.236]) by mx.google.com with ESMTPS id gy41sm2820660ibb.56.2011.05.23.01.11.13 (version=SSLv3 cipher=OTHER); Mon, 23 May 2011 01:11:14 -0700 (PDT) From: Arnaud Lacombe To: linux-kbuild@vger.kernel.org Cc: Michal Marek , Arnaud Lacombe , David Gibson Subject: [RFCv2 11/13] dtc: include the lexer from the parser Date: Mon, 23 May 2011 04:10:37 -0400 Message-Id: <1306138239-13440-12-git-send-email-lacombar@gmail.com> X-Mailer: git-send-email 1.7.3.4.574.g608b.dirty In-Reply-To: <1306138239-13440-1-git-send-email-lacombar@gmail.com> References: <1306138239-13440-1-git-send-email-lacombar@gmail.com> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Mon, 23 May 2011 08:11:16 +0000 (UTC) Cc: David Gibson --- scripts/dtc/dtc-lexer.l | 1 - scripts/dtc/dtc-parser.y | 2 ++ 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/scripts/dtc/dtc-lexer.l b/scripts/dtc/dtc-lexer.l index e866ea5..9fc1a95 100644 --- a/scripts/dtc/dtc-lexer.l +++ b/scripts/dtc/dtc-lexer.l @@ -36,7 +36,6 @@ LINECOMMENT "//".*\n %{ #include "dtc.h" #include "srcpos.h" -#include "dtc-parser.tab.h" YYLTYPE yylloc; diff --git a/scripts/dtc/dtc-parser.y b/scripts/dtc/dtc-parser.y index 5e84a67..42bd7a3 100644 --- a/scripts/dtc/dtc-parser.y +++ b/scripts/dtc/dtc-parser.y @@ -343,3 +343,5 @@ static unsigned long long eval_literal(const char *s, int base, int bits) print_error("bad literal"); return val; } + +#include "dtc-lexer.lex.c"