From patchwork Tue Jul 27 14:11:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pavo Banicevic X-Patchwork-Id: 487353 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC88AC4320A for ; Tue, 27 Jul 2021 14:12:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BA1AE61AA5 for ; Tue, 27 Jul 2021 14:12:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236764AbhG0OMi (ORCPT ); Tue, 27 Jul 2021 10:12:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236648AbhG0OMh (ORCPT ); Tue, 27 Jul 2021 10:12:37 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A026C061757 for ; Tue, 27 Jul 2021 07:12:34 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id b9so14548212wrx.12 for ; Tue, 27 Jul 2021 07:12:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wxFe0uNWW9r8apP/FU5g02YgcMO4sIOQrIvQ0ldAwCE=; b=tKqva2x/CG8NzNjWImVr+kujX/2pkcv6GBJov7A0FHrtTM+AWUaZg2RbsIt+2FlCm9 MzAOgq5MVu7g44j7ba+GmRwMWp8FsuxUIzw2wnBV/giol1NiN51RCQeb/dbT/KdDnbcN xOM10soYVdAlqUz8jz9HAMYFBVicmcOR3rAcAyR3eVJocoqUN2Ei0IVTNdgM/RDIKr8G xfDdwLzGJAEsvexyVUv4E2q3DnwYOgmYcTdfoKlH+zb4+LA36Y6VluffdgsH+KN89DNL ZP2UaaUjHblc3whx0DDG85xV38HvCrZ0PgS9Oly7LyceGcyk6DUTkcSn995pXbHOt3s0 tf2w== 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:mime-version :content-transfer-encoding; bh=wxFe0uNWW9r8apP/FU5g02YgcMO4sIOQrIvQ0ldAwCE=; b=MJW1RldmzNYeMdwHAYKcxKF+kbYnV4l6z0xqib3PtXfD/oEUrKSkSSQVtufqQEOy06 5SHctrqanVgENfuBSJrsIpI/6kM57a+PIGnAYdskpT/Qt+Na6FClPBYLBo7ZXg1gU2dR 5tcONUXsIULmqoT1xS7b/GWss2myliTzEirEG4quYYVHtWB0cLiFMW1tZdBtZMwiLY73 QJ7ztatnfnGYt8M4EFkJghuABJ5YVZT0CTTt6jkNvp/+y0rtQE48NQcYp3GEkG+LFAWu y6XE5+BISFD5+/02atokRFyZkRd0V8Bk8aotbz/NNHOPXC+tIiy2W2ljAbtB5ro3UiCg FE8Q== X-Gm-Message-State: AOAM5314e+LYcuoz/NHf9lKZnw5sJN4knFg8BIg1kvdZn8XfudVvBrlP B5opGA4awtdWlshAb+xsmM4p3g== X-Google-Smtp-Source: ABdhPJyo/1NSvfJMApolEVn/Cme3lrJZj6EUMJjCA+6U4kBT2iMR/FUJLcqUvmi6jmSG+c2lQdwkTg== X-Received: by 2002:a5d:64c8:: with SMTP id f8mr25032728wri.290.1627395152923; Tue, 27 Jul 2021 07:12:32 -0700 (PDT) Received: from localhost.localdomain ([89.18.44.40]) by smtp.gmail.com with ESMTPSA id t1sm3403912wrm.42.2021.07.27.07.12.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jul 2021 07:12:32 -0700 (PDT) From: Pavo Banicevic To: linux@armlinux.org.uk, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, nathan@kernel.org, ndesaulniers@google.com, ivan.khoronzhuk@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, clang-built-linux@googlegroups.com, matt.redfearn@mips.com, mingo@kernel.org, dvlasenk@redhat.com, juraj.vijtiuk@sartura.hr, robert.marko@sartura.hr, luka.perkov@sartura.hr, jakov.petrina@sartura.hr Cc: Pavo Banicevic Subject: [PATCH 0/3] Address compilation of eBPF related software with clang compiler on arm architecture Date: Tue, 27 Jul 2021 16:11:16 +0200 Message-Id: <20210727141119.19812-1-pavo.banicevic@sartura.hr> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patchset is fixing compilation issues that are encountered in our usage of the Linux kernel. Two patches are addressing compilation of eBPF related software with clang compiler on arm architecture. The third patch resolves compilation of the perf tool in this specific scenario. We are also interested in possible alternative approaches in fixing these compilation issues which could then be incorporated into the mainline. Ivan Khoronzhuk (2): arm: include: asm: swab: mask rev16 instruction for clang arm: include: asm: unified: mask .syntax unified for clang Matt Redfearn (1): include/uapi/linux/swab: Fix potentially missing __always_inline arch/arm/include/asm/swab.h | 3 +++ arch/arm/include/asm/unified.h | 4 +++- include/uapi/linux/swab.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) Reviewed-by: Petr Vaněk