From patchwork Fri May 5 01:50:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luc Van Oostenryck X-Patchwork-Id: 9712945 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 D2D50602B9 for ; Fri, 5 May 2017 01:52:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C4C131FF8F for ; Fri, 5 May 2017 01:52:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B92BA28429; Fri, 5 May 2017 01:52:08 +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 605FF1FF8F for ; Fri, 5 May 2017 01:52:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752496AbdEEBwI (ORCPT ); Thu, 4 May 2017 21:52:08 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:35480 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752330AbdEEBwH (ORCPT ); Thu, 4 May 2017 21:52:07 -0400 Received: by mail-wm0-f68.google.com with SMTP id d79so6909778wmi.2 for ; Thu, 04 May 2017 18:52:06 -0700 (PDT) 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=HxIo5G2crc28JPGnFBW1ThsFYeJ8c5DTxEF4T27twZ4=; b=gXajP+7GVMqk2SaMjm7Cgbt4TiTAabj8yHcbnYA/QGFNvwBRtGHbw95T6+rTVqlbQJ h4FkJWW90IfMtHsmtaiOu9IkuNxs8VzkTUrtm+uKWbc/KvDPvwbRn/7dbTBFHufMxasH WI+oGrHFZxfs3JAT6n25POAFJ1ya+rEXOqLz6ggkB5qTc3ifFXam1F24l0eewnpKtJBG cO9PznapXrmHcQ+lDdAzn8TPv3H5Oom3OG2Cj4ry3vpiKcHfGf36AUcZCBjdRf7pCc4y br/MvzNf0QVW7/Lr818oiv89fQXAUpFggMn/2A700nK+M2kcUVBL2TwwaL+cWuOS7X16 wSuA== 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=HxIo5G2crc28JPGnFBW1ThsFYeJ8c5DTxEF4T27twZ4=; b=cxjlks9GL/jQBtShQ5oWpVqu1VqDjHYf/ng5veWUlT8do32B1+irEbCjstF0e6ERan xmYdQLP+Gwu+4NSvrHcQX8yRfeF6Tputc4Wvfy8e1M6Uq4QmWrqM5HyVoscEebxrWk9G 7VG/CH52jGb5VfhblHts5L4gK8wk8nnK10mAlkvgv5U8PzZ93A+h9DPQcSTnfOWTp+3I THHgyPXWLVtr1hAaH5ZIAz5Nnqws1mBcKBbM8Vv5OHjZT5++cOHVCLrf81DTqIWT7sWO n0sDLB3c3it+9bzPtZW07BjUUP5XNmiduCvbqNOYL6a2gVr4LNjquvctf/RbbOqaQkG3 WF5A== X-Gm-Message-State: AODbwcDxe2k5mNvSQE25HqciJvv//3AXLm12kK18xBQb1JRWwxuooaq2 iZ/COe7Tvp74MMdR+mg= X-Received: by 10.28.183.70 with SMTP id h67mr3538366wmf.115.1493949125826; Thu, 04 May 2017 18:52:05 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:8f6:2d00:94a4:d690:7d00:af4d]) by smtp.gmail.com with ESMTPSA id e67sm576135wma.9.2017.05.04.18.52.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 May 2017 18:52:05 -0700 (PDT) From: Luc Van Oostenryck To: linux-sparse@vger.kernel.org Cc: Christopher Li , Luc Van Oostenryck Subject: [PATCH 6/6] keyword: no pre-declaration needed for attribute names Date: Fri, 5 May 2017 03:50:34 +0200 Message-Id: <20170505015034.65164-7-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170505015034.65164-1-luc.vanoostenryck@gmail.com> References: <20170505015034.65164-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 Currently, we have a whole bunch of attribute names whose identifier is declared with IDENT() in "ident-list.h". However, these names doesn't need to be so declared as their identifier is never directly used and are otherwise dynamically created via parse.c:keyword_table[] and init_parser(). So remove all of them from the "ident-list.h" file. Signed-off-by: Luc Van Oostenryck --- ident-list.h | 56 -------------------------------------------------------- 1 file changed, 56 deletions(-) diff --git a/ident-list.h b/ident-list.h index 709ffce01..130875741 100644 --- a/ident-list.h +++ b/ident-list.h @@ -54,62 +54,6 @@ IDENT_RESERVED(__builtin_types_compatible_p); IDENT_RESERVED(__builtin_offsetof); IDENT_RESERVED(__label__); -/* Attribute names */ -IDENT(packed); IDENT(__packed__); -IDENT(aligned); IDENT(__aligned__); -IDENT(nocast); -IDENT(noderef); -IDENT(safe); -IDENT(force); -IDENT(address_space); -IDENT(context); -IDENT(mode); IDENT(__mode__); -IDENT(QI); IDENT(__QI__); -IDENT(HI); IDENT(__HI__); -IDENT(SI); IDENT(__SI__); -IDENT(DI); IDENT(__DI__); -IDENT(word); IDENT(__word__); -IDENT(format); IDENT(__format__); -IDENT(section); IDENT(__section__); -IDENT(unused); IDENT(__unused__); -IDENT(const); IDENT(__const); IDENT(__const__); -IDENT(used); IDENT(__used__); -IDENT(warn_unused_result); IDENT(__warn_unused_result__); -IDENT(noinline); IDENT(__noinline__); -IDENT(deprecated); IDENT(__deprecated__); -IDENT(noreturn); IDENT(__noreturn__); -IDENT(regparm); IDENT(__regparm__); -IDENT(weak); IDENT(__weak__); -IDENT(no_instrument_function); IDENT(__no_instrument_function__); -IDENT(sentinel); IDENT(__sentinel__); -IDENT(alias); IDENT(__alias__); -IDENT(pure); IDENT(__pure__); -IDENT(always_inline); IDENT(__always_inline__); -IDENT(syscall_linkage); IDENT(__syscall_linkage__); -IDENT(visibility); IDENT(__visibility__); -IDENT(bitwise); IDENT(__bitwise__); -IDENT(model); IDENT(__model__); -IDENT(format_arg); IDENT(__format_arg__); -IDENT(nothrow); IDENT(__nothrow); IDENT(__nothrow__); -IDENT(__transparent_union__); -IDENT(malloc); -IDENT(__malloc__); -IDENT(nonnull); IDENT(__nonnull); IDENT(__nonnull__); -IDENT(constructor); IDENT(__constructor__); -IDENT(destructor); IDENT(__destructor__); -IDENT(cold); IDENT(__cold__); -IDENT(hot); IDENT(__hot__); -IDENT(cdecl); IDENT(__cdecl__); -IDENT(stdcall); IDENT(__stdcall__); -IDENT(fastcall); IDENT(__fastcall__); -IDENT(dllimport); IDENT(__dllimport__); -IDENT(dllexport); IDENT(__dllexport__); -IDENT(artificial); IDENT(__artificial__); -IDENT(leaf); IDENT(__leaf__); -IDENT(vector_size); IDENT(__vector_size__); -IDENT(error); IDENT(__error__); - - /* Preprocessor idents. Direct use of __IDENT avoids mentioning the keyword * itself by name, preventing these tokens from expanding when compiling * sparse. */