From patchwork Tue Jun 18 13:10:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 167152 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp4204860ilk; Tue, 18 Jun 2019 06:10:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwe5GynPa4wCisrLQ1MVh5qOCIqKsDwimG68nbq63Bn8wZiDeFoFIYpnAh1sR7dQy0yuA5K X-Received: by 2002:a17:902:110b:: with SMTP id d11mr42842602pla.213.1560863459073; Tue, 18 Jun 2019 06:10:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560863459; cv=none; d=google.com; s=arc-20160816; b=P+77uR/RxPwM+y6OBRW8pcI9Yu8y1h+hZa9fD1cSFyUX8UIvdhM6XhyuBVV/52mI27 yqLVJLNjI7Bj2W+Lk1bcXMi1iqHje7Gfy9cmPCsSokI2w04KzPRLGQVEodIi14CnRZuS nShHK6H3U3Cm/eJyofGBzNL3oWoAe0bewInLmMtLF2hJfRD8yqvMcm9bwSStPk+z2ZAA GosA9uqD9y4agAcI2Ot8k0vvUMvNGUwsZs7vxc0pq7OBxX02iGCnERiQWzG4tdr6VuHu MLp6bVO2Aq6sERugqp6OKhEkMR0+WpPUpRR5INwIMN5Opoa+HhpKd0w+QusoxVTbuwiw Zifw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=s+Mb8a2e6xjfo/uTIqTldqVxpzLAti9B4O1qtgK3wUg=; b=c1cPkxnp3tVtCaDbqCLlUrCbRHKpSyBvcH1AFkLEjxy9cNW7LdoYwG2tIn/mVCJHoL LwqI3anVmsftR0RgKWMqChseIE+hgbDochesXGuJGJ6eK0d1fZ4VAvPP9zblf6+5BRef nQCP9mdqf7h/PqW8/fssTaiAzHJEbrjFqmGjYigjpH/oB6PZ9NACKg2RZa3VDIZx5ZS+ MOBDEMA2EXODj31Bs24Pk7E5xa/NfnVicg0FZ6Qi33fCyEn6udu819z25qIfqf2svf+v FYMQed4KJXSknRASnenMpSm0JCGbXrNnYrPiyrNr8jcqrDCPPMpaTyZcCQaEbaBpyu5v YtSg== ARC-Authentication-Results: i=1; mx.google.com; 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 l1si14082675pld.110.2019.06.18.06.10.58; Tue, 18 Jun 2019 06:10:59 -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; 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 S1729123AbfFRNK5 (ORCPT + 30 others); Tue, 18 Jun 2019 09:10:57 -0400 Received: from foss.arm.com ([217.140.110.172]:40276 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbfFRNK4 (ORCPT ); Tue, 18 Jun 2019 09:10:56 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0DF6E2B; Tue, 18 Jun 2019 06:10:56 -0700 (PDT) Received: from fuggles.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 08E253F718; Tue, 18 Jun 2019 06:10:54 -0700 (PDT) From: Will Deacon To: linux-kernel@vger.kernel.org Cc: dave.martin@arm.com, arnd@arndb.de, Will Deacon , Richard Henderson , Masahiro Yamada , Ard Biesheuvel Subject: [PATCH] genksyms: Teach parser about 128-bit built-in types Date: Tue, 18 Jun 2019 14:10:48 +0100 Message-Id: <20190618131048.543-1-will.deacon@arm.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org __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 Cc: Richard Henderson Cc: Masahiro Yamada Cc: Ard Biesheuvel Reported-by: Arnd Bergmann Signed-off-by: Will Deacon --- Without this patch, we're seeing arm64 build breakage in linux-next under some configurations. scripts/genksyms/keywords.c | 4 ++++ scripts/genksyms/parse.y | 2 ++ 2 files changed, 6 insertions(+) -- 2.11.0 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; } ;