Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4081363ybi; Mon, 29 Jul 2019 18:51:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMFLvvO0E2IL6TQXIewbAq2P3PVGypfGb6AzCQUV6EHcrBj08+SovXezAI4Fon2A8z7eR5 X-Received: by 2002:a65:52c5:: with SMTP id z5mr92817406pgp.118.1564451476462; Mon, 29 Jul 2019 18:51:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564451476; cv=none; d=google.com; s=arc-20160816; b=ZFWwizwjiiGwOTYzKA5o9/b4QjSRmXZR11hDJJ+/fEgSzrWP/uY/MjuAh2t6H6yRVM GIUYiWln2FHudPOYwOq07PMoxI9czgCmMjFeDt/DjHZIA+zLFCoRiBSGqvklFT5AXG8p TF35kUPYtJENfkTm7mPGuLx6PScgaY2mradRMzii4Ua7MazVYsuVC5buwZC5lvDLDzc0 k2XN07wqP1N/wH4Cxogxuwg2I3t17+ihgtmdwtXLQQsKMKgF2xA1wyP4CmIahxVgjZYH ba0F2T8VabVCcWyGQ80XLts5eS46CbIcqSojnONDxKEDZTzsMfc9zG6seiR688Z2c+B/ 4cgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3tu+pt8tly5tfDktp03ngHZmWYpJTk8QZ/fjbSceVGM=; b=exqIgHGiWb+nazuBsiWXMPyIvHcwoh1H1XHpCXVqHLPRpRG2kAmV8anRWcxo5lp3uZ +SmTx3chxXxFKUH3KicQWHRRWjTmK3tjQzhKURrnpzjjOYVhRCoU5oYjHuWnbhT7GgGN 2ZrdutGBhba8Bt0Z3srPq51/Q83DknXgLPhWTeQoUaEATI23dgVSY6HeZDOyf8+uZGWs 1cXM/YBgDeM7eWUTNBza568OTPJRSbcsTqgn9kIrg5YFul8mfD78Nn8hxpAhW17Ua6Y+ dA9bkzYTCjfg6V+8UrqeIgC0ZvEcKXQdO3gXaKl+SncAzJyfu96ijTGT8E1GQXK0B8BV /ohg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FTxiNHvb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q2si25449956plh.56.2019.07.29.18.51.01; Mon, 29 Jul 2019 18:51:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FTxiNHvb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389251AbfG2TlE (ORCPT + 99 others); Mon, 29 Jul 2019 15:41:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:56376 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389237AbfG2TlA (ORCPT ); Mon, 29 Jul 2019 15:41:00 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 90EBC217D7; Mon, 29 Jul 2019 19:40:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564429259; bh=WNI63ClIKFam02JLlz0hE4qcHBWjAksWtoewTpu32O0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FTxiNHvbjVOeBNnx8Oyzhu5/Iqe8jAyhs0HpPTLWYYm6p2ML/NfmGyj6pFlSipII9 CeDI4QCEEcAj/4Hz3XLw/BpGrqQm4MUwvj5h6tnCuOSE7gHjXz8sLO7GRWP20TEkjD nt7zXDNL2jsZuQPwk3KyYy1HqqMzSlb5uiaw9SBo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Will Deacon , Masahiro Yamada , Sasha Levin Subject: [PATCH 4.19 042/113] genksyms: Teach parser about 128-bit built-in types Date: Mon, 29 Jul 2019 21:22:09 +0200 Message-Id: <20190729190705.751204828@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190655.455345569@linuxfoundation.org> References: <20190729190655.455345569@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit a222061b85234d8a44486a46bd4df7e2cda52385 ] __uint128_t crops up in a few files that export symbols to modules, so teach genksyms about it and the other GCC built-in 128-bit integer types so that we don't end up skipping the CRC generation for some symbols due to the parser failing to spot them: | WARNING: EXPORT symbol "kernel_neon_begin" [vmlinux] version | generation failed, symbol will not be versioned. | ld: arch/arm64/kernel/fpsimd.o: relocation R_AARCH64_ABS32 against | `__crc_kernel_neon_begin' can not be used when making a shared | object | ld: arch/arm64/kernel/fpsimd.o:(.data+0x0): dangerous relocation: | unsupported relocation Reported-by: Arnd Bergmann Signed-off-by: Will Deacon Signed-off-by: Masahiro Yamada Signed-off-by: Sasha Levin --- scripts/genksyms/keywords.c | 4 ++++ scripts/genksyms/parse.y | 2 ++ 2 files changed, 6 insertions(+) diff --git a/scripts/genksyms/keywords.c b/scripts/genksyms/keywords.c index 9f40bcd17d07..f6956aa41366 100644 --- a/scripts/genksyms/keywords.c +++ b/scripts/genksyms/keywords.c @@ -24,6 +24,10 @@ static struct resword { { "__volatile__", VOLATILE_KEYW }, { "__builtin_va_list", VA_LIST_KEYW }, + { "__int128", BUILTIN_INT_KEYW }, + { "__int128_t", BUILTIN_INT_KEYW }, + { "__uint128_t", BUILTIN_INT_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 00a6d7e54971..1ebcf52cd0f9 100644 --- a/scripts/genksyms/parse.y +++ b/scripts/genksyms/parse.y @@ -76,6 +76,7 @@ static void record_compound(struct string_list **keyw, %token ATTRIBUTE_KEYW %token AUTO_KEYW %token BOOL_KEYW +%token BUILTIN_INT_KEYW %token CHAR_KEYW %token CONST_KEYW %token DOUBLE_KEYW @@ -263,6 +264,7 @@ simple_type_specifier: | VOID_KEYW | BOOL_KEYW | VA_LIST_KEYW + | BUILTIN_INT_KEYW | TYPE { (*$1)->tag = SYM_TYPEDEF; $$ = $1; } ; -- 2.20.1