Received: by 2002:a17:906:fcb7:b0:974:3dd3:6e73 with SMTP id qw23csp2955849ejb; Mon, 5 Jun 2023 10:57:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ57sLDtZ5TjpJUl3YdAFCF6Lgnup7b8EOCMqOTNihBjYE0QX14Alu+GNS9Po5w9D2MPtmxZ X-Received: by 2002:ac8:5c4b:0:b0:3ef:25ad:27fb with SMTP id j11-20020ac85c4b000000b003ef25ad27fbmr8115159qtj.30.1685987831600; Mon, 05 Jun 2023 10:57:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685987831; cv=none; d=google.com; s=arc-20160816; b=vzgG0Z9w5p2wodym+7rtWm77nKazDVgnaGdpEZ2CfT0pL/983zItn3fQhxgWRiXCBz Ge/iOrRJRL5pGitfMi6ZHXbrFYCwmcyfc6pFp6k8hjKOhCcU2R7SJMGPPGDifkV0PedY 283f0rgfn9l+KFWPK/IDuJXAfETCrrbAenYGQ9Op3FhRn18v3Y82p+yUdj6rbRfZOukB 2dv3pwqHgDyiYMNnKmsG4kJSgvNB/DxgBLAulEB1VRitYkWl7PXpfnWIbwYPcmEjolnl +Y9RrZXub+BtMoGOnrXwYS6Rim0jAuJHZw0AZsITUCAJK+W8PTOO1efzfKgm0tsheayp Os3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=p+Iw/1QCn4gWIQqU6bYdv/xs2QcFa6+Ox3iNu9xY0wY=; b=OfsCOwM0El6rnoZiiLb6mgdNpRhyWChEap/87Y8+W8rGefugFHW8iBUIt6eSmiNgR4 oII5AgCHQ9FzSQQOe7BMBZ/w41mYe42+Spkz5W5bQkewRmc3yZE7UrUSriRxxQrLnrYB wsSgxkMJd/OeWtOCS0Mdm6djAFjxJjzTrWJe66FOQWdtzfhxmYnKyqPiGvMAXNeoIVj5 yVjWyEoCAKr2d88DrHg1lgEnFJFvoAkiDjDSQG2qQucogjpQAQ/VUOcKKTqTnS3Hsi3m /9A1DmVEyk1VtR765nSNRIGqGCHovNVysiOv1pPuTnQ0D9qg8+aSuqNcOsYCHNRy77jq yVzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EYcvUE2q; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a16-20020a05622a065000b003f0afcf5dd2si5009198qtb.310.2023.06.05.10.57.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Jun 2023 10:57:11 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EYcvUE2q; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6ERw-00062i-Uq; Mon, 05 Jun 2023 13:57:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6ERv-00061H-8m for qemu-devel@nongnu.org; Mon, 05 Jun 2023 13:56:59 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q6ERt-0001UC-OH for qemu-devel@nongnu.org; Mon, 05 Jun 2023 13:56:59 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3f61530506aso52256205e9.1 for ; Mon, 05 Jun 2023 10:56:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685987816; x=1688579816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=p+Iw/1QCn4gWIQqU6bYdv/xs2QcFa6+Ox3iNu9xY0wY=; b=EYcvUE2qaOy/LJ5rv8Urz0q81DiVWO+ZCG4mfAsG95HaBAnrbWenxPtDjy421pFkRo 27f7ipDxYr8e2f6rNqtbF5YSmF66Fm2lVlebDOw06K2j+cOWnDoE5hdg4WzjRRrXhI47 S8SBXi/uWg9wWLzjWm4n6Eo/JH92d4sO0uDEXQUSQW7EDCE63uNo7q13gApCwVLSTSZG qNCv/GkBmXISWj3QUYegi1FGe42B8lUQbj0NEzMfbeeCxp5ZwkRy8Mhyp34mMoqeL4bY rOpEuHmt2CpwAu1BYYl1DUh9a1fdsFJ8GMZzAKpYmax8NzbUa/rkGPms94ZbV8ni7Hrr WfSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685987816; x=1688579816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p+Iw/1QCn4gWIQqU6bYdv/xs2QcFa6+Ox3iNu9xY0wY=; b=DySXHrd16UZo7hWNtytZWfZm0xyhQ/XhNhhMzycgVOGnEzZG+LNE473qDKoIkyrekh HN/LXqyDI6vDEkXwyvmGQqOX2I1aovq58UF7W2vmEni2S2RmCjRYMVljqzJFrdv8WDhe neY0SKne0WjovugBG5qEwkq6DE1niQeAkksC8Eu5lwZ2y1XQnHA5ypPtesbWCgCOu2/N HFtKDs9LVUzEsl9m6o09svVVDHG+TD6MbMPLq3vHF/yyTOeko9dIxjmXRUHIVVF5WRw6 BY1UexqMDKOvdebFCNlIaPHPI2eT86Gg3vM6gmHMPWXdiYcBJ9qnhPZyEQpw6v78LoO6 OlpA== X-Gm-Message-State: AC+VfDxqs9RFdnr3mSoqQkvGBXAxu8qEgOla8U6Gu47tlQo5Aihs+1/Q A49GaoO9fDL4y9pP7otxDTsbNoMD+YkFSwRlnpI= X-Received: by 2002:a1c:f711:0:b0:3f6:53a:6665 with SMTP id v17-20020a1cf711000000b003f6053a6665mr8873070wmh.19.1685987816071; Mon, 05 Jun 2023 10:56:56 -0700 (PDT) Received: from localhost.localdomain ([176.187.217.157]) by smtp.gmail.com with ESMTPSA id q25-20020a7bce99000000b003f182a10106sm11524598wmj.8.2023.06.05.10.56.55 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 05 Jun 2023 10:56:55 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , qemu-arm@nongnu.org, qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2 1/5] util/cacheflush: Use declarations from on Darwin Date: Mon, 5 Jun 2023 19:56:43 +0200 Message-Id: <20230605175647.88395-2-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230605175647.88395-1-philmd@linaro.org> References: <20230605175647.88395-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=philmd@linaro.org; helo=mail-wm1-x32b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: pmr6J716i7E2 Per the cache(3) man page, sys_icache_invalidate() and sys_dcache_flush() are declared in . Signed-off-by: Philippe Mathieu-Daudé --- util/cacheflush.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/cacheflush.c b/util/cacheflush.c index 06c2333a60..de35616718 100644 --- a/util/cacheflush.c +++ b/util/cacheflush.c @@ -237,8 +237,8 @@ static void __attribute__((constructor)) init_cache_info(void) #ifdef CONFIG_DARWIN /* Apple does not expose CTR_EL0, so we must use system interfaces. */ -extern void sys_icache_invalidate(void *start, size_t len); -extern void sys_dcache_flush(void *start, size_t len); +#include + void flush_idcache_range(uintptr_t rx, uintptr_t rw, size_t len) { sys_dcache_flush((void *)rw, len); -- 2.38.1