Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4131499ybi; Mon, 29 Jul 2019 19:57:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqyB8jE3vHhE3jtTPN/sVB0azUCSGRJYTv89qSzc42L+OT0oiDuR0H4/82lQMaCWaaii9g2W X-Received: by 2002:a62:b408:: with SMTP id h8mr38785887pfn.46.1564455455402; Mon, 29 Jul 2019 19:57:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564455455; cv=none; d=google.com; s=arc-20160816; b=g8emXE2eG78CW8KFYs9fxaj3U+HWk52qqQoSRJUUhtkgsOCltozl77wbZtxY1+NKVZ OVmUwPtpN/x599RTTKXIkciwhsmlqIOk9agtQK6JYtEMbVWrHJLkBwiuBGpW+kTsXQ7J x3JvvlLIWylRgCmWCcvKr7tDlxIvwLdZzULkheO9wm5T9/vZ6/hH/LG9rgS4a3d1wV6r t8j7nucOpf39o8NTU3+RR0EqwDzXF1ur1ut3OeVIJ/UOmdbZ/Izciq1ITb8ia+KB+ZNE OvTNfTUhqXbqee5VN5JdSr1qMaET+gJeCxk+qgzLY6KDFeUSPPkhOVg0f1oLbB3YPn3J 4gaQ== 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=Jg4GzLBmqie8aOtVcCBvF2TNF7yqgEiVVmNKVrKQf9I=; b=D0jTXNvmbjlLi13LF/SHaYg6PrbdfZCK4K6CmqUywpn8BxNrAnwpV9HnJAEpwp/6u8 IlhfP4DhM+lJyVhlEJtXY01GU1H0HjTDzTWFPJdGNsb63lnBTBDKAvZSt+8Cz4k3N8Rc rSOBudAbKH/Y7RtTwQdMKOr/2g7GrLQhkLm0c0dJGTCCuqIKZMsPjzNVrkKhujk2dJpm xELdMrRfHSxViuzYI90B2jCkygGaxOfLjYuPXUQcS4H4LbSmikoR5GSP78mqdZUmhrft RLS54xFosmt/lFM0FeH+rmqBbQCqqqbxtfEb/+A/k9q/kLD18n7czdFudErHKhMRtVZm n/tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="IxHoBMP/"; 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 v64si31273909pgv.476.2019.07.29.19.56.44; Mon, 29 Jul 2019 19:57:35 -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="IxHoBMP/"; 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 S2390509AbfG2TtT (ORCPT + 99 others); Mon, 29 Jul 2019 15:49:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:39710 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389952AbfG2TtO (ORCPT ); Mon, 29 Jul 2019 15:49:14 -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 5C2FF20C01; Mon, 29 Jul 2019 19:49:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564429753; bh=la1t5jgkInyaw8hCbaRElYA7hnHQJwSvzWQmTalCDbQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IxHoBMP/UuoxLG1SsdZQ9wvqjCbCmiTIZsCg5da9msojiTaO6MlsbxE5hFo4wrWo2 Gck3vsF7H0TfDT1HtQQqTSR05CevtNTl210WZoL/yj3RcEumB8LFBPpmG7WfDH4D8w Xg07BiyNZcWOx4JpK0WoDk4ODJOpc37O1mqRZuYQ= 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 5.2 085/215] genksyms: Teach parser about 128-bit built-in types Date: Mon, 29 Jul 2019 21:21:21 +0200 Message-Id: <20190729190754.242078794@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190739.971253303@linuxfoundation.org> References: <20190729190739.971253303@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 e93336baaaed..c586d32dd2c3 100644 --- a/scripts/genksyms/keywords.c +++ b/scripts/genksyms/keywords.c @@ -25,6 +25,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