From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.72 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793281835; b=IwgFeGamWiyEGf+fVAy784ocTCCLPBOdL0zzl0ybxtDp4JH7eCDN3T4XjhnPiyUrlao8 LHu7oGv3zBWHjt615IpQeC5Ou42f5+2k2Uik3WMMH0wbA61fLAfs9cjQHU3uxhY3IImfj Hfl42UqMvTTXTJBCsXWqLlL/rqQQ+k5nro/E5vhyU8Sy3UndsxyEaWeWz1frJGZb8a6Lm HyJUiZQXFmvrkniVuNc6Kes9ErhEYgDi9KXwoanobqad1co6N5QeprIjTW82MF2x0QZ8J 3w0wt5m+WlYNbRZXx8ecq4ID7RBsRGdcvdIaUsNbR9ZWAxTWO7sJJTrYPay3bo/0qGw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793281835; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Received:Date:Mime-Version:X-Mailer:Message-ID: Subject:From:To:Cc:Content-Type; bh=L70Byn5v8ZFkrMF0OAudmvIVEZ2EuogOofsD9gsL04E=; b=qfD+CHrln+WEUwFOUGBvHcTKizVzUTxfMlF0H9+a/PySLdEzStAyRiUn5W/eS+GBTgpl 2lkh2zhb3S8RyLHR5QXH5EIu+51LpdwJ/qaUYzX5NBBfXvOzSHNuOwQjJ76orVXtmAzZ/ dTkJJbV4uvb5P4wjUPujMHwr49w44lXUmRyPU711vb3P4BcyIH8npQ0t+uKu4c2Z+x/YS rvHafPl4wd00ghr4xJu1OloDik8V9s+Q/tis56KXaRQ/Td9GTV9Pa2itb7Cp0MwSB2y91 phsKagDrB4gxQj5cSui/fU0Z+HjQA3xEIFtMYcjGlt/S9bLG3FlsianiaXillfzkILQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--ardb.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=Zuqno8QW; arc=none smtp.remote-ip=209.85.128.72 Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5748606A335 for ; Thu, 29 Oct 2026 13:50:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C5748606A335 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--ardb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=Zuqno8QW Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-4994d67d0e3so15231215e9.2 for ; Thu, 29 Oct 2026 06:50:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1793281833; x=1793886633; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:mime-version:date:from :to:cc:subject:date:message-id:reply-to:content-type; bh=L70Byn5v8ZFkrMF0OAudmvIVEZ2EuogOofsD9gsL04E=; b=Zuqno8QWGdM4HcfmTqzXaTvYRoQXFk8DU6M/7++6ldWU6V7snx6jc/xDwcJkDo0Z59 FOYwOzLbPkjIHCmOEy2dM3SH0J4vMM97Q7IPAltISCQninP84XnasYbk/IfFEG4/7ynq AY2U3/HPYg3qzb6pMIQrLZs71UUvuu8o8U2pVfXTtYnCfYp6rRE49IkAB0WcEQaQZ9IS Z8sceOO4WjdOngdWsJ7yKk0RBA2fjYa5tF+W3f4IAzWPUzzXTjiPbXXiwx3vG8qh125D wVkSBrwwdiVzZkspQKlsUzPlk2Zj3XdGjFkOD/MDi7egwMdTG/SxOEnFOi+5YJKTJoPK uurw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793281833; x=1793886633; h=content-type:cc:to:from:subject:message-id:mime-version:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=L70Byn5v8ZFkrMF0OAudmvIVEZ2EuogOofsD9gsL04E=; b=OmJUoD1xulwWhxfH0gEphsirxCp2q+iz3XlMxveMsrHX2R8ml/HFoOLDxsdjVZhT8g J/kXbWtRt/lEnqmqeKiIsiwPrYlaFcmAA5T46s792GlSABxLbHlriQlx/KpZ7ziyLQD/ smdVVrSZOpjGO0mD14V3cBlBi6dBgDvoyHjBvx4jX8+WLIPtitOlaANdfAOcATU6Av7Z Y9qfZeDCFpHY6xABIKszgnRFLDC5jHmzE47ls252QqPzMWAcLITDo8Hbjj2LDFN19Yg4 3c6PYSSh8evk+xMzV7dReKzp/HScVMl0yRuZSKn7I39JLHhkhmsC3tI5uCHHaZO5YsQT egtQ== X-Gm-Message-State: AFq9FYJymkpnxc6Q4E8sX8I0P1BlaA4nKYE26/iztrwQuDJNP0VEOPhs N931jMkJsYQEHuX5eGGn/TF3MgrnZV1x9Tjiq7ZR8yHZyFJk+19zFdXqUdRhuQluHLuRkpZSPkE GRfx8Qj3BBmiHGcw66oOm1ejdKiUcHiLD5W86q7rmUEU6t4ychO1dYtLReKR+OW48lG76a+rPHo fAB61ywR+eDGMe8G6bVcRs4BfYQ3p3cTgpTQ== X-Received: from wmdd24.prod.google.com ([2002:a05:600c:a218:b0:4a1:e51d:9268]) (user=ardb job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:e493:b0:4aa:2339:a375 with SMTP id 5b1f17b1804b1-4aa2339a4a1mr77860825e9.13.1793281832038; Thu, 29 Oct 2026 06:50:32 -0700 (PDT) Date: Thu, 29 Oct 2026 14:50:20 +0100 X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 X-Mailer: git-send-email 2.56.0.313.g2479322e68-goog Message-ID: <20261029135020.272082-6-ardb+git@google.com> Subject: [PATCH 0/4] Get rid of all NEON intrinsics stdint.h type hacks From: Ard Biesheuvel To: linux-kbuild@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org Cc: Ard Biesheuvel , Christoph Hellwig , Eric Biggers , Nathan Chancellor Content-Type: text/plain; charset="UTF-8" From: Ard Biesheuvel Recent Clang has become more finicky when it comes to overriding the type macros that the freestanding stdint.h consumes when defining the uintXX_t types, and so it is time to finally get rid of this entirely. So instead of making stdint.h (which comes from the compiler when -ffreestanding is set on the command line) agree with the kernel's linux/types.h header, avoid the latter entirely in the compilation units that actually use the NEON intrinsics (which are always leaf functions that are not tightly coupled to kernel APIs). Note that the disagreements are about long vs. long long on arm64, and long vs. int on 32-bit ARM, so never about types that actually have conflicting representations. Cc: Christoph Hellwig Cc: Eric Biggers Cc: Nathan Chancellor Ard Biesheuvel (4): lib/crc: Don't include in NEON intrinsics code xor: arm/arm64: Move NEON xor_gen() dispatch into the glue code arm64: Drop stdint.h type overrides from asm/neon-intrinsics.h ARM: Drop stdint.h type overrides from asm/neon-intrinsics.h Documentation/arch/arm/kernel_mode_neon.rst | 10 +++-- arch/arm/include/asm/neon-intrinsics.h | 43 +++----------------- arch/arm64/include/asm/neon-intrinsics.h | 24 +++-------- lib/crc/crc64-neon.c | 10 ++--- lib/raid/xor/arm/xor-neon-glue.c | 3 ++ lib/raid/xor/arm/xor-neon.h | 16 +++++++- lib/raid/xor/arm64/xor-eor3.c | 15 ++----- lib/raid/xor/arm64/xor-neon-glue.c | 5 +++ lib/raid/xor/arm64/xor-neon.h | 31 ++++++++++++-- lib/raid/xor/xor-neon.c | 16 ++------ 10 files changed, 78 insertions(+), 95 deletions(-) -- 2.56.0.313.g2479322e68-goog