From patchwork Tue May 7 15:28:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?R=C3=A9mi_Denis-Courmont?= X-Patchwork-Id: 48621 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:6816:b0:1af:836d:81b3 with SMTP id wr22csp452803pzb; Tue, 7 May 2024 08:28:57 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUK1A2q7PODep8XHBAg0NUNIVvfW55u7Dp1gLb4WbDZahCRoNMxy/BKEMugdTBD/RGiSPS2FiNr/2ZnAlKCWFa1XlQlwxEPgGBU2g== X-Google-Smtp-Source: AGHT+IFOz9xKVpKwY79i2W4wPL/Q5xbGSlEvV1EcC4m3Mtg1mze9ly6vx8yMdQeQp+uVFarKxocL X-Received: by 2002:ac2:4959:0:b0:51a:bebb:690c with SMTP id o25-20020ac24959000000b0051abebb690cmr8767887lfi.12.1715095736882; Tue, 07 May 2024 08:28:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715095736; cv=none; d=google.com; s=arc-20160816; b=CxXPQe3M7WvolzU7vQNiJe8b2xJFYleapnTuDjqpiUicRrAgT7O4vAEFWuktGd7QGz 4jM7KPXClKj2Jr2Ka/HvEAxAPy2PzD7RjTnCtVga0omCY6TXqd7aEDZcVqHT9cqIYjou 8USE7Bt4sb7kWOMZiswSZlhWUQOzwDwuxdKKrVFx05wHzrY43OGwKu+N8aXUYhMEYqvt hlCl0RUdh8cEnwgicJAU8zCG5PL2zp2Dy1m8Kn/AxKhulcgoE8bTTzJMKWPWrYe6Ec6y +RLNflBAvBEJMTs0OguePM+q7uyeyxSW8nMWWD261urp5aIJEXkhC8h7mMe4M7UBKiHr rDgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :delivered-to; bh=euOzbtw6oNg0HVtZ7YM0gZMvDZEy6FtLMFzLcy5Iazc=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=RTjwwNXPuldfsS2HBwO4US8O5AUdXlfWGZQ8FOaaAR4AF0lECdQmQ9WhRqOh9zY2R9 CvhiARo7OoOirEX9accfOIkN4zQFEg27/I56IeapAV1QbUX9JfQJVssPg/8oqNp4hPm+ ohhzxQCqadZ5IhnKztVimTNQ8/QMm2GvLgCkUkybIWqU9Qv74fLTwCeX1gGFdFAtIanM rql24PZJSlSKxSyF/fWIVt/yXJ/VB3TYtua/kC2g9avMGTIiiw5RKew8+0Y4ksDa3M9C fgUg+tM7D3w+neVvqJjYiW+y7NfHN0lAejWuPaSQD/eIrXBjd4lGFceMIAMtfFYUFKFA CSFQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a26-20020ac2505a000000b00515d60c3dfcsi3614565lfm.590.2024.05.07.08.28.56; Tue, 07 May 2024 08:28:56 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4E13368D06F; Tue, 7 May 2024 18:28:51 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from ursule.remlab.net (vps-a2bccee9.vps.ovh.net [51.75.19.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id DDE0C68D709 for ; Tue, 7 May 2024 18:28:44 +0300 (EEST) Received: from basile.remlab.net (localhost [IPv6:::1]) by ursule.remlab.net (Postfix) with ESMTP id 88A6BC00C0 for ; Tue, 7 May 2024 18:28:43 +0300 (EEST) From: =?utf-8?q?R=C3=A9mi_Denis-Courmont?= To: ffmpeg-devel@ffmpeg.org Date: Tue, 7 May 2024 18:28:43 +0300 Message-ID: <20240507152843.4674-1-remi@remlab.net> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] lavu/riscv: fix build without X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: lQuq2ksk6Vy0 --- libavutil/riscv/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavutil/riscv/cpu.c b/libavutil/riscv/cpu.c index c3683b06d0..69d1afe853 100644 --- a/libavutil/riscv/cpu.c +++ b/libavutil/riscv/cpu.c @@ -29,14 +29,14 @@ #include #define HWCAP_RV(letter) (1ul << ((letter) - 'A')) #endif -#ifdef HAVE_SYS_HWPROBE_H +#if HAVE_SYS_HWPROBE_H #include #endif int ff_get_cpu_flags_riscv(void) { int ret = 0; -#ifdef HAVE_SYS_HWPROBE_H +#if HAVE_SYS_HWPROBE_H struct riscv_hwprobe pairs[] = { { RISCV_HWPROBE_KEY_BASE_BEHAVIOR, 0 }, { RISCV_HWPROBE_KEY_IMA_EXT_0, 0 },