From patchwork Wed Feb 28 22:16:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 879453 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="U5li1eXe"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zs94K2DMGz9s23 for ; Thu, 1 Mar 2018 09:20:33 +1100 (AEDT) Received: from localhost ([::1]:47330 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erA5P-0005wY-BM for incoming@patchwork.ozlabs.org; Wed, 28 Feb 2018 17:20:31 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erA1l-0003Q1-AD for qemu-devel@nongnu.org; Wed, 28 Feb 2018 17:16:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erA1h-0003R7-5p for qemu-devel@nongnu.org; Wed, 28 Feb 2018 17:16:45 -0500 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]:44317) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1erA1g-0003PB-Mx for qemu-devel@nongnu.org; Wed, 28 Feb 2018 17:16:40 -0500 Received: by mail-lf0-x243.google.com with SMTP id v9so5848903lfa.11 for ; Wed, 28 Feb 2018 14:16:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OK7h+/9uHboAsDyd1zRzLv+xyBO1r/6IIvD5eTp4pm8=; b=U5li1eXehllF+qjxeeFNYPdWiZmL58yS+mxG6hsNrf4diPCo9aZaA2tB4wGDNwlu1g cL1bhygW+m9KYbA1nXYw3HromtHNObgNymZG0d6tH0IurS0s+87rhlSAZCPhnppRbUGf 59mCNQh1iUjBIv8DmIEy3bW+MsLpFU6shYRta6nJjNzCG4v7+vYureDMkUqifjN7wC2i hTQYELDZ69vKSyOCL/tE52YRS73oyP00kG8uH5+9nSaQaFs3Cu6ikRH2mtmlnHRJhL+g AImS3Y/etIRBmu1pRZaLwTHtDlXfSSumvSIXV4wknnrK+Gs5Ys9wBZxN/AwZkDRJArqQ wMmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OK7h+/9uHboAsDyd1zRzLv+xyBO1r/6IIvD5eTp4pm8=; b=aL18UhclblzEsh0PTdhVyKMrdBRvDgCqfXukbwOor1kJLAgBibWleRElXYx0KsafOR 2bPftt5CcKi9OUnzRNC0mCoB8bKyNGFM4jxG2GqWNtkCx6ytmlvcZWCb9oB4aC5Oah3g VE61EFTD04SpsIFZcOPo3OZBn47W/EWlOqLWoeM5C12g53aszCcbibaPn/6NrJY4NAOB Kx43+lrUzcU84m3yCmKPN3fjPfXR3sqKlhf+KkSifCQbm9COLKZC/kiM9xmFuRouFHuK CCn2RTn0APNDrfDJ3qv8Nnn4oVWwV/sLLW2eknNuqNxnDEdsBFsyUL2h61XvRQTZF+sm cmHw== X-Gm-Message-State: APf1xPBiiX5cKVLJE60NdpwDQA5WSg5LHCKxRtxeMxxi8gzl27ySxspl 5CxhtAjQOnTgrg0a4QkHXgXQOw== X-Google-Smtp-Source: AG47ELsvr2jMyYmKNQRVjekkhpY92BOlX78IyNDZLHAqttP9/hm4goH4jElMozBVckBRICjluf/ZgA== X-Received: by 10.25.43.136 with SMTP id r130mr14213761lfr.48.1519856199310; Wed, 28 Feb 2018 14:16:39 -0800 (PST) Received: from octofox.cadence.com (jcmvbkbc-1-pt.tunnel.tserv24.sto1.ipv6.he.net. [2001:470:27:1fa::2]) by smtp.gmail.com with ESMTPSA id s82sm566984lja.7.2018.02.28.14.16.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Feb 2018 14:16:38 -0800 (PST) From: Max Filippov To: qemu-devel@nongnu.org Date: Wed, 28 Feb 2018 14:16:06 -0800 Message-Id: <20180228221609.11265-9-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180228221609.11265-1-jcmvbkbc@gmail.com> References: <20180228221609.11265-1-jcmvbkbc@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::243 Subject: [Qemu-devel] [PATCH v2 08/11] linux-user: drop unused target_msync function X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Max Filippov , Riku Voipio , Laurent Vivier Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" target_msync is not used, remove its declaration and implementation. Cc: Riku Voipio Cc: Laurent Vivier Signed-off-by: Max Filippov Reviewed-by: Laurent Vivier --- linux-user/mmap.c | 17 ----------------- linux-user/qemu.h | 1 - 2 files changed, 18 deletions(-) diff --git a/linux-user/mmap.c b/linux-user/mmap.c index 84b15c9a1699..9168a2051c34 100644 --- a/linux-user/mmap.c +++ b/linux-user/mmap.c @@ -754,20 +754,3 @@ abi_long target_mremap(abi_ulong old_addr, abi_ulong old_size, mmap_unlock(); return new_addr; } - -int target_msync(abi_ulong start, abi_ulong len, int flags) -{ - abi_ulong end; - - if (start & ~TARGET_PAGE_MASK) - return -EINVAL; - len = TARGET_PAGE_ALIGN(len); - end = start + len; - if (end < start) - return -EINVAL; - if (end == start) - return 0; - - start &= qemu_host_page_mask; - return msync(g2h(start), end - start, flags); -} diff --git a/linux-user/qemu.h b/linux-user/qemu.h index f4b4ca72adb0..23712bbca860 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -428,7 +428,6 @@ int target_munmap(abi_ulong start, abi_ulong len); abi_long target_mremap(abi_ulong old_addr, abi_ulong old_size, abi_ulong new_size, unsigned long flags, abi_ulong new_addr); -int target_msync(abi_ulong start, abi_ulong len, int flags); extern unsigned long last_brk; extern abi_ulong mmap_next_start; abi_ulong mmap_find_vma(abi_ulong, abi_ulong);