From patchwork Fri Aug 4 01:45:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 710226 Delivered-To: patch@linaro.org Received: by 2002:a05:6359:606:b0:129:c516:61db with SMTP id eh6csp233408rwb; Thu, 3 Aug 2023 18:48:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFX3f6ZUwRAtFcRLypHL2Qnpk6dU5B6R0cirkdWQy823KQtmWRpctlORpvhLCN0/KK2ggch X-Received: by 2002:a05:620a:44c6:b0:76c:af3e:3c14 with SMTP id y6-20020a05620a44c600b0076caf3e3c14mr534095qkp.71.1691113698200; Thu, 03 Aug 2023 18:48:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691113698; cv=none; d=google.com; s=arc-20160816; b=jwHWF7PMab42l5+zdg4OogdoqbiSZcSwswcx8wra825fv/YHCndfQM1pR5DPSBETHo JycVKoRw2C8687gnIViF4YUBQ+cDY4OOWxtnnEvDdiovaW/qfHofqw/v9zLwC5XvqQ3t 7VcFNbslzOIWpAq2ObOOFkYtMBydAmTHmO55dUuFRxJJgOZk9u4ONkv7+5gNL+/ko3bM umkP4POhLWqa/ToSzi8W9vqAIDQFl6xfnvPrQJe9dnDfSz7wzd6vTKtplevcZ/wGVNML dO9NHeEUKuROrsiyWOIHA4vuHHlyP3w0S/+/7Ut3aLmxUswG7NR6RIyH+4TELI2w9Eg0 styQ== 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=S4pOOuQWmq0xrR9pkY2S2VlYgAJ/fJTzo6NDmQNEUSw=; fh=oY0Hqs0mb1Sbw8XbQT7Frqsb6/GXc1LASz4nvWEMVJQ=; b=c8PQ+bC4bNAeojqKSpRFsiZR1BA9S2KtU4OtB2qKlwoK1NiULm1M5jiuT0dZeuc2KQ mCqg982dIWKMU86v6R83w9Nsws0Fapo9wZngNtM4JnrqopZVfm4l/s/FnCgFzzFmB00E v7DQGX+K2qUEccs72TbG+03fsBF8saZi2unYQmdEJJpNl/fwUiBl0CYegEWJ/Q9ocO9d C4gEc7oo5B9nd2BHydg0bI9NxFaUiwi2Qsft+ETzqmz86SM0+UqUx5ahrnGQpEAWB2TV AzQ81HRRZ61SPCqH9slSvu/Y491y22p61JX8JLDe/4u56bweE/GV8/EFVnVdkbhEF72Q gc2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xSyIUOh+; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id v17-20020a05620a091100b00767dd1e967dsi587605qkv.195.2023.08.03.18.48.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 Aug 2023 18:48:18 -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=xSyIUOh+; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qRjst-0002gc-Nm; Thu, 03 Aug 2023 21:45:43 -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 1qRjsg-0002cu-E3 for qemu-devel@nongnu.org; Thu, 03 Aug 2023 21:45:38 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qRjsc-00059e-4K for qemu-devel@nongnu.org; Thu, 03 Aug 2023 21:45:28 -0400 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-686ed1d2594so1418022b3a.2 for ; Thu, 03 Aug 2023 18:45:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691113524; x=1691718324; 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=S4pOOuQWmq0xrR9pkY2S2VlYgAJ/fJTzo6NDmQNEUSw=; b=xSyIUOh+RoJWrDmmPodBqLoqx556ANRBFz+nXQdmCxz/lT1UWXv3vVAGdVe7/EFDx1 wiAlw+hs9gYZOmmRAO8TsPQnapiPF0CRlQ7qEuitVZa3EaPvQyW+7qRKxqnzqDAuWI8m ErH3r4RybOmwCI5fFPnDGPQ2H82c4exx8GcaO573w8MxNuxuCCgJywAibAPdU9n95Q04 9n+oc9SSv9aRh5IHiZLX+C39sYOFcf4Jmh8pyr8q2x5MUhvZmx9+cShNaMOCrTyoxa/H 3E3aq/1BkPHnt7l/QmJ0fpVygReT/cPhrwbf3kAjNCZDoR2vdqReIfiv+fTMXhSJqMtj styA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691113524; x=1691718324; 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=S4pOOuQWmq0xrR9pkY2S2VlYgAJ/fJTzo6NDmQNEUSw=; b=leVwbRIMJ+JL7Njdmuf+ULX/fl71KivrRp2yfbQpphN71t7qVj52sI/bo2DbhtmOA7 1v7PjjVtY/09f5Ymyhg22iL4B0JrMpyqj9L789SUa9HdfLkOPAeUKppo8i70lCadneoh OluRvtMvKB/bAahAXkU5qQL+7bVK4KVy+0ySTLenzM0F4zt5ImeOGKoWEi4mkmVZy2np 5sAzzpjg9UEIx1AcUxBKHjnfnDbmscLlDBcODwGGxjBBYV+sKMr0V9Jf4RyAmNcGSJoa 0svgp4g3QcWowwrdHlYF+xvIiW8Jbs6B5vBX9s1POhPRGxKrpJ6HmcipEyCOwLtkxzLp sqEA== X-Gm-Message-State: AOJu0Yy3LDiUS7JzSjhh0+W8CGpcdpvfNljNtr0ejvP1NFYji+kqDCCK gCoIlQ6vr9ajL62NoPi7URromx6XmYMQggoAXUQ= X-Received: by 2002:a05:6a00:23d6:b0:67a:b045:e290 with SMTP id g22-20020a056a0023d600b0067ab045e290mr554874pfc.4.1691113524043; Thu, 03 Aug 2023 18:45:24 -0700 (PDT) Received: from stoup.. ([2602:47:d490:6901:9d52:4fe8:10ce:5c3]) by smtp.gmail.com with ESMTPSA id c5-20020aa78c05000000b0066f37665a63sm456138pfd.73.2023.08.03.18.45.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 18:45:23 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: joel@jms.id.au, akihiko.odaki@daynix.com, laurent@vivier.eu, deller@gmx.de Subject: [PATCH v8 07/17] linux-user: Remove last_brk Date: Thu, 3 Aug 2023 18:45:07 -0700 Message-Id: <20230804014517.6361-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230804014517.6361-1-richard.henderson@linaro.org> References: <20230804014517.6361-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42d.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=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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This variable is unused. Signed-off-by: Richard Henderson Reviewed-by: Akihiko Odaki Reviewed-by: Helge Deller --- linux-user/user-mmap.h | 1 - linux-user/mmap.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/linux-user/user-mmap.h b/linux-user/user-mmap.h index 3fc986f92f..7265c2c116 100644 --- a/linux-user/user-mmap.h +++ b/linux-user/user-mmap.h @@ -26,7 +26,6 @@ abi_long target_mremap(abi_ulong old_addr, abi_ulong old_size, abi_ulong new_size, unsigned long flags, abi_ulong new_addr); abi_long target_madvise(abi_ulong start, abi_ulong len_in, int advice); -extern unsigned long last_brk; extern abi_ulong mmap_next_start; abi_ulong mmap_find_vma(abi_ulong, abi_ulong, abi_ulong); void mmap_fork_start(void); diff --git a/linux-user/mmap.c b/linux-user/mmap.c index 90b3ef2140..eb04fab8ab 100644 --- a/linux-user/mmap.c +++ b/linux-user/mmap.c @@ -314,8 +314,6 @@ static bool mmap_frag(abi_ulong real_start, abi_ulong start, abi_ulong last, #endif abi_ulong mmap_next_start = TASK_UNMAPPED_BASE; -unsigned long last_brk; - /* * Subroutine of mmap_find_vma, used when we have pre-allocated * a chunk of guest address space.