From patchwork Wed Feb 28 21:06:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 10249823 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 789FA60211 for ; Wed, 28 Feb 2018 21:16:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 67A55286F1 for ; Wed, 28 Feb 2018 21:16:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C03328B3E; Wed, 28 Feb 2018 21:16:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, FROM_LOCAL_NOVOWEL, HK_RANDOM_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F05C1286F1 for ; Wed, 28 Feb 2018 21:16:39 +0000 (UTC) Received: from localhost ([::1]:46979 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1er95b-0006Ar-2q for patchwork-qemu-devel@patchwork.kernel.org; Wed, 28 Feb 2018 16:16:39 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1er8vz-0005lu-DZ for qemu-devel@nongnu.org; Wed, 28 Feb 2018 16:06:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1er8vy-0000gK-Fl for qemu-devel@nongnu.org; Wed, 28 Feb 2018 16:06:43 -0500 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]:40368) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1er8vy-0000eq-6I for qemu-devel@nongnu.org; Wed, 28 Feb 2018 16:06:42 -0500 Received: by mail-lf0-x241.google.com with SMTP id 37so5615692lfs.7 for ; Wed, 28 Feb 2018 13:06:42 -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=VVt3M5X/OIuaAc2IzGNCQZUnLDMLMK+3b30OXJo+UdcLIKV5gEOgvuIkrjpmsrLxru attxHVkqtiU9+gybUeWan5RhibAU/oCHN+lznXeiiPkiqO0zxzr+bknqTn8ySrMuW1c3 Bzd7eMiPHhQyAiCU/miPZeJQZHfcE6mP2Kgyei01QrSwMRThJWububA8QHWeO3OfSKP9 zl5mAuY5E7iSS5klpBJHlIEC+ZYUBDATvXsFKWyqhZb3kubuI5EFT35dB6gMR41Te9Kl vxLF8GFNTpM6W6s4BpXOBAU+CIxmobfwbzfTjq06fOF36c43JZFQCkNQsYKS9UwjbLm9 ZvkA== 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=isZvmBohpOOMzAf+aWlQyLlJIk04Gk7lPJA7wrfvpFLnVQlEg1o0qCxkqcQM+MX5po k0VxChU6a6lK0yZeZjzrdqAWaNrW2gtLRBkPl07iBOa7BpAYWpasE0tlWB+iukodZ6Zk kfRrgIr91rKKYetNh8ZUpC9pLczbGngq602EZvv9GEkGzspO6Lsqa3GbaFlKLBq9Ybmo YZ8JidCo6XVrvT+ctd1AzwuHa4QTuE08+bCClPGY03AR4XJH2RlohypSP2i5pPhifASv OyJwayC/ZYRpamoBrXXjKU4muyX8yTFXNuWuWGfoRJKR8l6KPe9WTkFMHZATlWZ38sfH ddvQ== X-Gm-Message-State: APf1xPD/3UXbOiv7+RilqB06rUw2V6rWIOT+h1WXhC/mDHPIrupwmBcf ZbM/wMYTqHlg/OgvIyqHFmKVUQ== X-Google-Smtp-Source: AG47ELtL0zQHGA6wphG/4ITi7z6xMwCe8LCFRXp3KFBH5k3jVS9KRLGoMHLEX03PzPwigIUb4sUTgQ== X-Received: by 10.46.7.80 with SMTP id i16mr10727711ljd.78.1519852000835; Wed, 28 Feb 2018 13:06:40 -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 l8sm547134lfb.19.2018.02.28.13.06.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Feb 2018 13:06:40 -0800 (PST) From: Max Filippov To: qemu-devel@nongnu.org Date: Wed, 28 Feb 2018 13:06:13 -0800 Message-Id: <20180228210616.2756-9-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180228210616.2756-1-jcmvbkbc@gmail.com> References: <20180228210616.2756-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::241 Subject: [Qemu-devel] [PATCH 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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP target_msync is not used, remove its declaration and implementation. Cc: Riku Voipio Cc: Laurent Vivier Signed-off-by: Max Filippov --- 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);