Message ID | 20240723203855.65033-13-philmd@linaro.org |
---|---|
State | Accepted |
Commit | 007643bddcebf9e7fb8460a4e8068c4f80afa17e |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:f288:0:b0:367:895a:4699 with SMTP id k8csp2490037wro; Tue, 23 Jul 2024 13:43:46 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV7MqBA6FSadmO85/BcFFSDaOePljtUvZxFt+x9pvFO3RioDOmpxA6HXNmLXV590fH0oYkbEPfPJlBPmqkF7eRk X-Google-Smtp-Source: AGHT+IECXSZUQO7oaH9f1WQawsOzVgF5du5p+zaFBqdUlfU3Hh6u7mFJ0CsRuAPlInnFXtRu+BB0 X-Received: by 2002:a05:622a:40b:b0:445:229:3879 with SMTP id d75a77b69052e-44fa52a4303mr147545071cf.29.1721767425671; Tue, 23 Jul 2024 13:43:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721767425; cv=none; d=google.com; s=arc-20160816; b=HyovSR0SIeyyYKkCXWLa1DH3o13+fdl6liqkmnJWG/Ag2Jrq3mccSqcbRDoMTYwnei H0QiwdbBK7RtYq4Y8qYk01sKooCB9An+HT6jqSPVBoaXBBbATbTIzD2ImctqMjZwYnOM h3oKiFPltUCIw/1jsyowfStmoOkWLQ2uWAv1FlkVGn73D+zx42sEZlX/rYp+VxhnIEhO UljKtjVnbO238Vlo3VWk3NRBZmYj+NYTBxb2AVvWqUMIoQZtI6GEUqCDtZD+RsXZ75qM lzR4aSorSF7c1TQZ2w5ArYe3Gv42D6t1zJrVrz4sWaoxI6yp+FjjVy8kiKGhc0/k3XLJ UuLA== 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=rcNZQQ0nKhi9U2udqnFLIBFior9dBlBIvCxC4fyrbfU=; fh=2T+KfhuSLAapjLkuIGm4M/wQO1FbRA2dukK4EuTVnoI=; b=NmERwTEEhnClJUpbqi4T6Drg7Ko18W4OUJUYbvT7Go3fuULbHZrb55VzSvPDFWfdWE QXcjMpxrYfbWTdMzsyRiMVeFvNq8DgbbQXtGLgNLiHbmxarFCRSz8hVM9KLKGs88zGpu YvhtEthh4TnNB3FIKYe3AzfPsCJWf6K7IVUX3ULTmblIZd4VN4NNi4cGvSM/dHgblPKl j+oTBL2fOdP+a8wR21rhMSTUPcDbLsRMzC82Uz0VP7zrPFWbar/LEgdGTrJpsjWHk0CC Q464vOGmnxzi1cHY4oWJCKWzOsV7ZzHbV4SjKLuGhhbWVGd1fOACAf+yPtB24w5SmGLn O+jw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MQZBDdsh; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-44f9ce00262si119700381cf.582.2024.07.23.13.43.45 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Jul 2024 13:43:45 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=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=MQZBDdsh; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1sWMJ8-0008Jn-4p; Tue, 23 Jul 2024 16:40:30 -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 <philmd@linaro.org>) id 1sWMIs-0006s0-AQ for qemu-devel@nongnu.org; Tue, 23 Jul 2024 16:40:10 -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 <philmd@linaro.org>) id 1sWMIp-0004EA-K6 for qemu-devel@nongnu.org; Tue, 23 Jul 2024 16:40:10 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-427b4c621b9so40018475e9.1 for <qemu-devel@nongnu.org>; Tue, 23 Jul 2024 13:40:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721767205; x=1722372005; darn=nongnu.org; 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=rcNZQQ0nKhi9U2udqnFLIBFior9dBlBIvCxC4fyrbfU=; b=MQZBDdsh+8KfLeZJK2ROecLVJs+FsUan2KWdDAwamQ0iryU4J/0x74sYbU5aMLfKPg ljwiqJHpYSpC71cRUgBzCSHGsPnxmaure0A/oRAMXeJN93oAwE2Ew3vrzVXhqJixoYdE K9atdKa6UAXmMKF/01eOP/ZXlG/A9XROSRBEfCLB2zf3E9YjRdusHxq2lO00VgqmNcyY wz/hrW5SnBjkLfPetYl965rHFT4J1S816cVoiPrkZbXn+UlAE88mk5BNy8cdAKUfTTQx SJSQB8/xA81zqIR0PBjtQJrXxze8F56un9f97Gd6sO/C92VREJgUx0Kyk8tBusF73bcU rCfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721767205; x=1722372005; 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=rcNZQQ0nKhi9U2udqnFLIBFior9dBlBIvCxC4fyrbfU=; b=vET8tUIwUC/GQTpaNrhGq7bxHvWA7T4C/WA2r/9y0zA1boYhppLr8zi4y/wvKoeO93 I9EFXz28QjrQxUim+kCIl9dtH3VtMJoJiKMS5LA2lu7DwUtaAs91G0MAiKKYore4PIpI Y3yASJor4F/t5EKtZaRx20rU2BXaYXwr6qWLptFMrFGn2wJK8cs1t5xGgy8LYtqPDnAi Ka0sqLn/SgZ27WI+8DMsw1Aaqfd4mZsEVtlRb1XE3ZajYAEhF3qMkNxfMOYIieF52YjD HaBWEKDP2qQGbp6a9O868hs+Sjq7GzyEmlt4XipUnRbBXQpm1ieG70I1DVRZ72rdyhZD GwGA== X-Gm-Message-State: AOJu0Yz2o2gUZUerRJJNx+y5YNp0Upq8xkYW3JUevd4H12PGxmoCss7p bmCBs4Z8glu3b2cPQhsJsMzc1JRYa/1V7xqOwxMe+okcfo7xKvPGWY+ZRulVpMATiMRr0JoUpGc 86Ok= X-Received: by 2002:a05:600c:4ecd:b0:426:6ee7:c05a with SMTP id 5b1f17b1804b1-427f95562b9mr114755e9.15.1721767205614; Tue, 23 Jul 2024 13:40:05 -0700 (PDT) Received: from localhost.localdomain (vbo91-h01-176-184-50-4.dsl.sta.abo.bbox.fr. [176.184.50.4]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-427f93abff8sm442335e9.38.2024.07.23.13.40.04 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 23 Jul 2024 13:40:05 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: Yao Xingtao <yaoxt.fnst@fujitsu.com>, =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= <philmd@linaro.org> Subject: [PULL 12/28] util/range: Make ranges_overlap() return bool Date: Tue, 23 Jul 2024 22:38:39 +0200 Message-ID: <20240723203855.65033-13-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240723203855.65033-1-philmd@linaro.org> References: <20240723203855.65033-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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
[PULL,01/28] accel: Restrict probe_access*() functions to TCG
|
expand
|
diff --git a/include/qemu/range.h b/include/qemu/range.h index 4ce694a3983..d446ad885d2 100644 --- a/include/qemu/range.h +++ b/include/qemu/range.h @@ -210,8 +210,8 @@ static inline int range_covers_byte(uint64_t offset, uint64_t len, /* Check whether 2 given ranges overlap. * Undefined if ranges that wrap around 0. */ -static inline int ranges_overlap(uint64_t first1, uint64_t len1, - uint64_t first2, uint64_t len2) +static inline bool ranges_overlap(uint64_t first1, uint64_t len1, + uint64_t first2, uint64_t len2) { uint64_t last1 = range_get_last(first1, len1); uint64_t last2 = range_get_last(first2, len2);