From patchwork Thu Sep 29 05:03:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Storsj=C3=B6?= X-Patchwork-Id: 38459 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp716417pzh; Wed, 28 Sep 2022 22:04:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5A67WLZdOy0D5Z+l7HQVXwRJDu2oiHFx6ZYxphzMhpILcT23Rin5p6BitMxYCMR97Uo4qP X-Received: by 2002:a17:907:984:b0:77f:4d95:9e2f with SMTP id bf4-20020a170907098400b0077f4d959e2fmr1160455ejc.176.1664427842788; Wed, 28 Sep 2022 22:04:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664427842; cv=none; d=google.com; s=arc-20160816; b=Au3vG+vVVqcADNj1Jmsi/W25z9/8PfCHMDJoo996vEtHLJnmxt62VR10l9gg2etbHF GtNHqxbQJnmKqQoezCviI12n6lO/wEXiEggdhoJ5l3HNuCk4SPOggPwFvg+8EwzW70W1 nRfYeZCIWr6DTEiDg/uUaOhuNCCyep9EzeYkPqcJ6CiJRQxTY9ruvC1atTVmhTZSaNgT ElyCzoIqALo7dOf5rJf4QuDxesE2S8CXUPcvzV14tM64tB4FFKQ0zTocgFPDfIk6CynT j1G444iRi1tLuKDBsXkcjeAZ6IJkhiqi1zXjv8A1xB/FbJJM+KRFRLUTZkP5fwpts8qy Ltnw== 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 :dkim-signature:delivered-to; bh=OPntsoRMwmYdmgvsbm9J+dOC8a+LF7EwkzdOIg7ebE0=; b=f98xp6/RV+ThWcUpKZrE7ge8vvxp+6twgL2GGCNr00uyZ53oJKJeWcZsBymqOgCbzJ PhN+ROfOwEQJzHa90qB52YmJPAz9N76dvrkHMRoEEO4l2+ICS3b4p8qu76AfALj+Z/ip oeVAJrOg810XFEOHuy5U0z3n4sEXD3VizIunGG/xClodNn/BK/1VTK2w9/nZJ9ejMIEx cBjNT+5SEyXIu9BEfIai6cS8QbNE18fr66m6rXBJwRPye/ahqzqti9Cw8jgYA6p7xqdl 077aBgwSx/Ujka2cZVgl2NSMIz4GY6zM10hKLqIELj1PhPkfbBzLwWG/uXWeTjusC8xh TY6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@martin-st.20210112.gappssmtp.com header.s=20210112 header.b=WQQzSnvx; 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 c14-20020aa7c74e000000b00457015040fcsi6541274eds.315.2022.09.28.22.04.01; Wed, 28 Sep 2022 22:04:02 -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; dkim=neutral (body hash did not verify) header.i=@martin-st.20210112.gappssmtp.com header.s=20210112 header.b=WQQzSnvx; 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 7ED0D68BA4E; Thu, 29 Sep 2022 08:03:58 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BDB6B68B391 for ; Thu, 29 Sep 2022 08:03:51 +0300 (EEST) Received: by mail-lj1-f169.google.com with SMTP id s10so302044ljp.5 for ; Wed, 28 Sep 2022 22:03:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martin-st.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date; bh=m8ScZskd3z3dnSMOJkbO6I+Laljtn+MLn5m/ztfUz9Y=; b=WQQzSnvxr3v8+iHHHPyt1fUolo0OmTD6HuKevJQc0Cg4EcysDesT5utsdZo0OQUGip 4EkdQxwKjJgUFVaqh/VXpfWaOiFzy6pMbSq9VBrKgqs1Up5xhjS7WICPunWgGycPDmta IE4cijJSgIoi8uhJhe4cmCLyqUUy+zha5RJZvwizySMAyWZvYEA7iJx6PeRXABqgBjph fwrl2xbv/hhNVi7mTOwOeUVPf9AHycEBF6uKe7/8TLzLd2Q4uMGZPYFVNedGy2D65hZF 1R5ehnWGwL/rUZo9xf5cPCH2hoYWvT2147BLbzCSVJ37XWLDDm6Yl2SgoYypLWDWSKi6 /Zhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date; bh=m8ScZskd3z3dnSMOJkbO6I+Laljtn+MLn5m/ztfUz9Y=; b=u0whJVeescPzHL1OPcHowHJTzG1SdmvhDbo3Al908wDJrAk2zyqaG1xPcjoI4f7qnu nDu77McGOAyUqO6pycsfLBfCi/vYUxPUfYTPfkN7TrvlrpCI6bLXB1kR0c/xQwdpEjF2 SaADLxsz1+ha0eIUstGWy/gQ0cdj4q2N41cYoxdf9i7/Pt02QW61r0ReMIHPs5eLjRSX qevBgpsGtsSm+LPX21mgEM4HTj5cJKst1EnuCZkaUkWS20X7G9F/Xjf/GOTVVVibHkiE zsUJRCjZXfjkZbU09oyeetuMaw2qMRus5cOXtlh0DupTp59l28EP7be5YPjcdSElPgQn k8xg== X-Gm-Message-State: ACrzQf3+V9/LipCLGGZh2CQHrLNH6lAiCdL8sOpzZ2noTj/gErYkRriw GYhGvM5E5XS0yKjdBYXOYOUU1gOdMUpx6bA7 X-Received: by 2002:a2e:bc09:0:b0:26c:203:e38 with SMTP id b9-20020a2ebc09000000b0026c02030e38mr458878ljf.249.1664427830933; Wed, 28 Sep 2022 22:03:50 -0700 (PDT) Received: from localhost (host-97-187.parnet.fi. [77.234.97.187]) by smtp.gmail.com with ESMTPSA id u22-20020ac243d6000000b0049476667228sm670852lfl.65.2022.09.28.22.03.50 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 28 Sep 2022 22:03:50 -0700 (PDT) From: =?utf-8?q?Martin_Storsj=C3=B6?= To: ffmpeg-devel@ffmpeg.org Date: Thu, 29 Sep 2022 08:03:49 +0300 Message-Id: <20220929050349.61637-1-martin@martin.st> X-Mailer: git-send-email 2.37.0 (Apple Git-136) MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] riscv: Fix linking without RVV; change #ifdef into #if 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: UIOTBFwHiTtK --- This should hopefully fix the current build failures at http://fate.ffmpeg.org/history.cgi?slot=riscv64-linux-gnu-clang-14. --- libavcodec/riscv/fmtconvert_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/riscv/fmtconvert_init.c b/libavcodec/riscv/fmtconvert_init.c index fd1a8e0ca1..2ded9d3615 100644 --- a/libavcodec/riscv/fmtconvert_init.c +++ b/libavcodec/riscv/fmtconvert_init.c @@ -33,7 +33,7 @@ void ff_int32_to_float_fmul_array8_rvv(FmtConvertContext *c, float *dst, av_cold void ff_fmt_convert_init_riscv(FmtConvertContext *c) { -#ifdef HAVE_RVV +#if HAVE_RVV int flags = av_get_cpu_flags(); if (flags & AV_CPU_FLAG_RVV_F32) {