From patchwork Mon Jan 22 06:36:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luc Van Oostenryck X-Patchwork-Id: 10177393 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 D441E600F5 for ; Mon, 22 Jan 2018 06:36:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1FEB27C2D for ; Mon, 22 Jan 2018 06:36:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B6D0627CF3; Mon, 22 Jan 2018 06:36:19 +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 68C3927C2D for ; Mon, 22 Jan 2018 06:36:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751093AbeAVGgT (ORCPT ); Mon, 22 Jan 2018 01:36:19 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:45772 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751062AbeAVGgS (ORCPT ); Mon, 22 Jan 2018 01:36:18 -0500 Received: by mail-wm0-f68.google.com with SMTP id i186so14097843wmi.4 for ; Sun, 21 Jan 2018 22:36:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Q/yzm7n8YiIrWCTr3yZqDbORQJwkLe0iL9E1nWbWpQI=; b=XMmpJKw/E/qB4II4QT7sg+baafo44lAVQr9TEWcPeCnmHxVQBbnkobGagmPshQzXnT owlVuR7HE8+uz2Ka4kjsEaHVIAIN0Hfp63LUnOGFz3rpSPOGhVrhHirAxEMm5xiiPpGc mozkQSuQfhZGB8M7v/bMlJvB3eRH21IPBEaqCWu8+66RlMLDiUWxyA4oqyLeah80DxSG a7OqFm0BTjysJ4ydZG9T9dL4Az+A3XNXYeEe4+gyn8N5czlC8zDKQXMi+6E8+W6vsm/E KoXE8Vs7SnQ751W6E1l3aoe8uYhUbBPcg+RnmWlzh6xk9L8ur727cizhoyRMKVnMy9rb YFfQ== 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:in-reply-to :references; bh=Q/yzm7n8YiIrWCTr3yZqDbORQJwkLe0iL9E1nWbWpQI=; b=h6oBkF6NI7DggRV5fOYJ13lP7gM5y2dphf08d0OU/+ggfK56h2z0+rs19rVsNIoJo9 uS0FWOG+zCvE4ug2cTeS9gaPJSLtAl8a+l7JOBFlUrJgtVaHF79wqSUXbTP5c17EqXPq qn4xOlNjMBcP3jF8p02HbYpHd6jXcMuaw4PA52HD0CrmmDxGOtB3xEgh0ysz1pFvji0c Vqn+pLMwuqK2UPsPc5pzJV7R6wp+U68gnzArf3i8NJ95+xhzu76xD7EeflOxOT7K1mDx iU9l5l0/avyzfmDL5c8jF7RMiYImk98yFLz4j88Hr5M5gb90wXfbKgxYDiFv3JMeLeDa P27Q== X-Gm-Message-State: AKwxyteDinqwffuFVo376ZfmV7xb9ePWyZbW0YTxgOL3KoFHH9F96Tdv 5TGKT+tWbHh+hk59hoZDtl55ZyXG X-Google-Smtp-Source: AH8x227wuEBGyHeq0vnSpKnKc83hwpqePh49S+QUPSiyPcbG91sKQFBO23ZnW/f2n0Ks25nFQ8YwbA== X-Received: by 10.80.179.243 with SMTP id t48mr11846069edd.31.1516602977262; Sun, 21 Jan 2018 22:36:17 -0800 (PST) Received: from localhost.localdomain ([2a02:a03f:4099:e900:589e:a55e:5b85:658b]) by smtp.gmail.com with ESMTPSA id z12sm4828696edm.0.2018.01.21.22.36.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Jan 2018 22:36:16 -0800 (PST) From: Luc Van Oostenryck To: linux-sparse@vger.kernel.org Cc: Luc Van Oostenryck Subject: [PATCH 2/3] move up apply_ctype()'s declaration Date: Mon, 22 Jan 2018 07:36:04 +0100 Message-Id: <20180122063605.97737-3-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.16.0 In-Reply-To: <20180122063605.97737-1-luc.vanoostenryck@gmail.com> References: <20180122063605.97737-1-luc.vanoostenryck@gmail.com> Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP No functional changes, just to make the following patch more readable. Signed-off-by: Luc Van Oostenryck --- parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parse.c b/parse.c index e255345fd..a60fcff45 100644 --- a/parse.c +++ b/parse.c @@ -627,6 +627,8 @@ struct statement *alloc_statement(struct position pos, int type) static struct token *struct_declaration_list(struct token *token, struct symbol_list **list); +static void apply_ctype(struct position pos, struct ctype *thistype, struct ctype *ctype); + static void apply_modifiers(struct position pos, struct decl_state *ctx) { struct symbol *ctype; @@ -962,8 +964,6 @@ static struct token *enum_specifier(struct token *token, struct decl_state *ctx) return ret; } -static void apply_ctype(struct position pos, struct ctype *thistype, struct ctype *ctype); - static struct token *typeof_specifier(struct token *token, struct decl_state *ctx) { struct symbol *sym;