From patchwork Wed Nov 23 16:41:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 9443777 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 180AA6075F for ; Wed, 23 Nov 2016 16:42:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E9271FE83 for ; Wed, 23 Nov 2016 16:42:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 134D427BE5; Wed, 23 Nov 2016 16:42:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AA1151FE83 for ; Wed, 23 Nov 2016 16:42:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934420AbcKWQmO (ORCPT ); Wed, 23 Nov 2016 11:42:14 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:34482 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933872AbcKWQmL (ORCPT ); Wed, 23 Nov 2016 11:42:11 -0500 Received: by mail-pg0-f65.google.com with SMTP id e9so1427092pgc.1 for ; Wed, 23 Nov 2016 08:42:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sPUsJ4h77Nn08d3wQiHseae13FC7bXjfv0qN31y9vKQ=; b=poZEO5mBonkWb+/ZhDVk+o62lvhAM7ilgv2Efp0y3fskEpfXXyabe+RW47AurXbWgk 0HQ4pmDRIhuN46WB3SQUXND6VZy4etG9r1qJIACG/nvbWA74RyBGtPZVjobPLMtCSelo XoygLiTLwyifs4eiFOpim3TXfG/YPyqmVDtScuvLOVfxTMVTZdk7A0BSMiNeRu5r39Ze HLQiMJGOzuSB91TE8GlILDSNwVVso2K/nssMOarQtjLSd3hshwYKPyayWoyitRdIwex3 thDCppBekcmhxGIgIWDkbABfZamVhBDazN9o4SnseqlH+CsMATDJ0GRRI1LF+Xl8W49i /3+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=sPUsJ4h77Nn08d3wQiHseae13FC7bXjfv0qN31y9vKQ=; b=BPpJc0AhfR/g+4vWMu3isLc2dQR+pbThxzc2W/h4KQs0KsrTu5KsXvNjZtz5NRc1HQ 3P0ozD/YY8AZUENTw6H6u87BfEcVLuO3ToNdSPW74TQCO2OhxARHhiVcU/e4BjSMcm47 JUcNwb0lA9Ysjgrxi/HYzvDQDk6jZqQuGLhGuxJIiROVUtGqOBonYOJj7Ig9wte/jLxR e40xR33pCevntFFGWnxZUghec4dd8k+0jQxF6U1b2rx0ETCEQJWC8VoGPI57zahT5mBu k1+Oq5dGtokw/upX1lib6Ae0Byw+/tST7RVNCcsT58Mm6cwfV0WXzgOO0av6+oZEdBjh 1i9g== X-Gm-Message-State: AKaTC03TFDE74KzjhegR71MYVzmRSbBggZK5LJ1SuEnaj8SlC+bRq6bCoku89aZU9MSyzQ== X-Received: by 10.98.78.88 with SMTP id c85mr3674600pfb.138.1479919329683; Wed, 23 Nov 2016 08:42:09 -0800 (PST) Received: from roar.au.ibm.com (27-33-21-189.tpgi.com.au. [27.33.21.189]) by smtp.gmail.com with ESMTPSA id o26sm53959762pfk.91.2016.11.23.08.42.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Nov 2016 08:42:09 -0800 (PST) From: Nicholas Piggin To: Michal Marek Cc: Nicholas Piggin , linux-kbuild@vger.kernel.org Subject: [PATCH 3/7] kbuild/genksyms: handle va_list type Date: Thu, 24 Nov 2016 03:41:39 +1100 Message-Id: <20161123164143.16839-4-npiggin@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161123164143.16839-1-npiggin@gmail.com> References: <20161123164143.16839-1-npiggin@gmail.com> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP genksyms currently does not handle va_list. Add the __builtin_va_list keyword as a type. This reduces the amount of syntax errors thrown, but so far no export symbol has a type with a va_list argument, so there is currently no bug in the end result. Note: this patch does not regenerate shipped parser files. Signed-off-by: Nicholas Piggin --- scripts/genksyms/keywords.gperf | 1 + scripts/genksyms/parse.y | 2 ++ 2 files changed, 3 insertions(+) diff --git a/scripts/genksyms/keywords.gperf b/scripts/genksyms/keywords.gperf index a9096d9..bd4c4b2 100644 --- a/scripts/genksyms/keywords.gperf +++ b/scripts/genksyms/keywords.gperf @@ -27,6 +27,7 @@ __typeof, TYPEOF_KEYW __typeof__, TYPEOF_KEYW __volatile, VOLATILE_KEYW __volatile__, VOLATILE_KEYW +__builtin_va_list, VA_LIST_KEYW # According to rth, c99 defines _Bool, __restrict, __restrict__, restrict. KAO _Bool, BOOL_KEYW _restrict, RESTRICT_KEYW diff --git a/scripts/genksyms/parse.y b/scripts/genksyms/parse.y index 723ab30..4fba255 100644 --- a/scripts/genksyms/parse.y +++ b/scripts/genksyms/parse.y @@ -98,6 +98,7 @@ static void record_compound(struct string_list **keyw, %token VOID_KEYW %token VOLATILE_KEYW %token TYPEOF_KEYW +%token VA_LIST_KEYW %token EXPORT_SYMBOL_KEYW @@ -261,6 +262,7 @@ simple_type_specifier: | DOUBLE_KEYW | VOID_KEYW | BOOL_KEYW + | VA_LIST_KEYW | TYPE { (*$1)->tag = SYM_TYPEDEF; $$ = $1; } ;