Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2642399ybi; Mon, 17 Jun 2019 08:11:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxoC2hfmhyFKoyrMY+H7iZe0aibme/1lR96ZOjX5jXqN7Zer7xSQBzbEpPwWuBJe2rWGbAS X-Received: by 2002:a63:eb0a:: with SMTP id t10mr44543705pgh.99.1560784287222; Mon, 17 Jun 2019 08:11:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560784287; cv=none; d=google.com; s=arc-20160816; b=PNkLXPlXeTnkIV/XUjk/d+3lCdwWvP9hXh8bT3zos1zAO8dFqVn3udVjWxDoTAf6el ghI8oxs9KyYu2BcP2GWfvTHFHs0yKw7A1jHnuo1WA1fbA8bfncIUwLAJRPhNzqy79ChR oyxEw87hkl+WJmnANYYOcg72JggD3LaewxXwiAPgNy8yS+ba53pxs0ALwnEjYuTzufcn O7NVtiWANScs7YvJIBR2Zq8RPv6wRVDKojFLVhisUI/BxalKpUNd2u15SUo8MxquNLfl XMCpGxdr6R2c9jPAYBcfRXoty9zRRyXPFkqIIK0hwoO7Yk5PBPt1dvyVEboCQjuVZPUZ 5NzA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=OpG3yhNTBJ5ts+/+v+o2pmtZg8jM+8wfirqs9Y70M2o=; b=uew8YyVaZRbelUx55+k/qR0vRyJ11nQ40FyvGDA0cHZj3vxvZedkUdgNXfLBaz7KSl LeXq+FFZKnPiom2kWr9MVZiaoseEvwo0llvlCn/AwrzrtNvS6e1qFQ1TdgVvrZTyXyDf KArYqek9nnJzY6aHLN0bqxBgaxRp47StdHDp4lAo31G+HJvuR3V/aHt9LwwnngpkYJbH +152uGmRRV6B6Oy9afXodwGjDA4VosjEyoG6y50aa9qRn2S6doGw50Cd8Sd7+6fHQQ5r 7EIqkSBoSQ5s73tujYCh3PB9T1WwPosur2pSs7nDYoz3gQ/c61UU5wqbYHGAdoCsQsKY 393Q== 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 f12si10539993pgq.61.2019.06.17.08.11.10; Mon, 17 Jun 2019 08:11:27 -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 S1728390AbfFQPKu convert rfc822-to-8bit (ORCPT + 99 others); Mon, 17 Jun 2019 11:10:50 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:42013 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726215AbfFQPKu (ORCPT ); Mon, 17 Jun 2019 11:10:50 -0400 Received: by mail-qk1-f195.google.com with SMTP id b18so6350417qkc.9 for ; Mon, 17 Jun 2019 08:10:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=54cAo5sToazz1E9yyx60Dd6u83R9yNhhfYqnU/wYvBY=; b=bm8Eg/BU04mbURgDWrIGzaNl8c87kD2wYPSZ7L1DSzJLj0hVgY8qispxpYXAtQMTJo U+IZJ5MFv+H7GYHCkUiJxwJw+wnMCacVu+yUw5687H3WWHRBDYaszrEt5Gx3DydcIuHz G3ctgbz+Wijhk5izke1A1WJwcVFcBjx+Ah22ouPg0tQSAOvxTr5/ZU4sPjvV1z9fSZiR SbOUqVXWaoVs2/cTLrG6K67f2y0GF7mW++H4ZYLc/GgryYIVSimZES0y85QsaqdVNdlC BxUsFaToydYoRavcDm55DAKbSdAwJD70iqp2KZfH2MRPQOIZOIu8BHv4S/s2F7a4g5vZ bx1g== X-Gm-Message-State: APjAAAXGrqOttGfc94OH/d7MCP6jQOD25hO3OzvCkJNNc1vrXZ8kg1hb Dg7P7F3fcJ5D047C786v+Fdylx/zxQ/e8e4xytNtDNq0m0s= X-Received: by 2002:ae9:c106:: with SMTP id z6mr68991875qki.285.1560784249188; Mon, 17 Jun 2019 08:10:49 -0700 (PDT) MIME-Version: 1.0 References: <20190617104237.2082388-1-arnd@arndb.de> <20190617112652.GB30800@fuggles.cambridge.arm.com> <87a7eg9s0o.fsf@zen.linaroharston> In-Reply-To: <87a7eg9s0o.fsf@zen.linaroharston> From: Arnd Bergmann Date: Mon, 17 Jun 2019 17:10:32 +0200 Message-ID: Subject: Re: [PATCH] arm64/sve: fix genksyms generation To: =?UTF-8?B?QWxleCBCZW5uw6ll?= Cc: Will Deacon , Catalin Marinas , Dave Martin , Ard Biesheuvel , Peter Maydell , Alan Hayward , Julien Grall , Marc Zyngier , Mark Rutland , Andrew Murray , Linux ARM , Linux Kernel Mailing List 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 On Mon, Jun 17, 2019 at 4:59 PM Alex Bennée wrote: > Arnd Bergmann writes: > > On Mon, Jun 17, 2019 at 1:26 PM Will Deacon wrote: > >> On Mon, Jun 17, 2019 at 12:42:11PM +0200, Arnd Bergmann wrote: > >> I suspect I need to figure out what genksyms is doing, but I'm nervous > >> about exposing this as an array type without understanding whether or > >> not that has consequences for its operation. > > > > The entire point is genksyms is to ensure that types of exported symbols > > are compatible. To do this, it has a limited parser for C source code that > > understands the basic types (char, int, long, _Bool, etc) and how to > > aggregate them into structs and function arguments. This process has > > always been fragile, and it clearly breaks when it fails to understand a > > particular type. > > Shouldn't the solution for this be to fix genksyms to be less fragile > and more understanding? The code base doesn't seem to be full of these > sorts of ifdef workarounds. It is one of the things I tried before I got to the version I send. Unfortunately the genksyms codebase is a big complex and I quickly got lost in it. You're welcome to volunteer fixing it though. My main problem was that I couldn't even find out which types exactly are supported, as __uint128_t is not even in the gcc documentation. "unsigned __int128" is a documented type, but is also not in genksyms. Arnd