From patchwork Fri Dec 9 23:03:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luc Van Oostenryck X-Patchwork-Id: 9469107 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 3709E607D8 for ; Fri, 9 Dec 2016 23:03:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 298ED2856B for ; Fri, 9 Dec 2016 23:03:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1EB8B28624; Fri, 9 Dec 2016 23:03:33 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 329A328658 for ; Fri, 9 Dec 2016 23:03:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753859AbcLIXD2 (ORCPT ); Fri, 9 Dec 2016 18:03:28 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:34396 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753854AbcLIXD1 (ORCPT ); Fri, 9 Dec 2016 18:03:27 -0500 Received: by mail-wm0-f67.google.com with SMTP id g23so71248wme.1 for ; Fri, 09 Dec 2016 15:03:22 -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=zpIGytr8a7N7APmxg+6K6Zj+AJAq9/O4sJjYTgYfHo8=; b=vGdwg1830G1I/6Vbo04qcjVq8zJhHmUGRHpKSSlmoDoh35YF1nKsjGbmgWhebYyXMA NBCiTWbyazXhnegzIT5BD/uN2rqDABH9MCwZXsj51NHL0GEWl5coMkXnpXWS9tnU9Svj c9qcmpry3c3MjeUxsSQmSLjzR1hnnHtHcES9FajyPL2wSsN0R2HRyQGDAPLRilXmObEx 0YtGrrrm7z+ixIgcP1DhQNX6Dl7q+q84+HjSrY3K36eJ4RvE7/E/ZWs2S0WPN7YTv2W4 +9QlEPR1v7ekcMN0Xxh+w9LoIL7SrZmsOrYK4/EupfwNI8/f9HKityWXW6Frx336+2oJ nU6w== 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=zpIGytr8a7N7APmxg+6K6Zj+AJAq9/O4sJjYTgYfHo8=; b=mCZS96noNFbIQN4BmB1zyC1BgBC7gIRBTnbOyheLIdqOcjYCD4C8n2oXImdtpo8Clv +tAPqIQmoqLmcYIHVDaixT5JeVIWqtU69EnDN5py7VRd1ZZGwY6TKdwNKOspNorSUIep jpDo3TZXq7TUz9qQp8SVLHhjNU2+zeTSVCfbI+1rBKQw06wdv812A6X/XhvZXgn9t75a C7hTBU7GBGSq+eXxwZol385QNC8LsZQdCbuvQc7LjBy+15vj3/JlCI8PDNOwbOXdNpBP VsGU8U+T9zNwNg/YSdFrKcCRpRPTjXy4DNHULsNABm571LCs1hhqfuSkDf14e3lpJt66 F/pg== X-Gm-Message-State: AKaTC01Ix/mv5sudcMAc16z/AvTruDTwj6fOiq1gG8m4o0OdSyuYUp/gXEAR7dlPatWZnA== X-Received: by 10.28.46.197 with SMTP id u188mr438892wmu.61.1481324601427; Fri, 09 Dec 2016 15:03:21 -0800 (PST) Received: from localhost.localdomain ([2a02:a03f:8be:2600:107d:f176:74ec:8c95]) by smtp.gmail.com with ESMTPSA id e6sm44535525wjw.33.2016.12.09.15.03.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Dec 2016 15:03:20 -0800 (PST) From: Luc Van Oostenryck To: linux-sparse@vger.kernel.org Cc: Luc Van Oostenryck Subject: [PATCH 1/2] fix missing element in types declaration Date: Sat, 10 Dec 2016 00:03:10 +0100 Message-Id: <20161209230311.36024-2-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161209230311.36024-1-luc.vanoostenryck@gmail.com> References: <20161209230311.36024-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 In the code doing the parsing of type declaration there is a few arrays for the each integer size (short, int, long, long long, ...) The array for the unsigned and explicitely unsigned integer have entry for 'slllong' & 'ulllong' last element but the one for plain integer is missing its 'lllong' entry which make sparse crash when trying to use this type. Signed-off-by: Luc Van Oostenryck --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.c b/parse.c index b52c6abe..808a078a 100644 --- a/parse.c +++ b/parse.c @@ -1429,7 +1429,7 @@ Catch_all: } static struct symbol * const int_types[] = - {&short_ctype, &int_ctype, &long_ctype, &llong_ctype}; + {&short_ctype, &int_ctype, &long_ctype, &llong_ctype, &lllong_ctype}; static struct symbol * const signed_types[] = {&sshort_ctype, &sint_ctype, &slong_ctype, &sllong_ctype, &slllong_ctype};