From nobody Tue Apr 12 21:59:25 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7B6741AFBD46; Tue, 12 Apr 2022 21:59:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KdKPn4LhJz4hZJ; Tue, 12 Apr 2022 21:59:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649800766; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1mTICgRUfjy4DUVu7hILtA5Le3wknia4Z+WWVZxQBrI=; b=OF1dnj7c0atQzhfEv/2/9YazAMqD9U3lwSaKXcp8yQdDxml9Y7qUHMZa+fxHniQBRV9VAr ZBdT6E4CFtsfeOyBptqr49dycVIHHFi+leLCtfPyan1KgTAc/vUDHBrLHcdqDVVy6RvAuO wNi7DLPX2k5Tg3CJL2Gj9XKxGlS0Ih/M3jjPjAKq6W/kIuubtx9uYle0E/NEzYf8LHuSQw gqlfYjeECw5YeE0D/g02K1cE/sZELei7+qOUnCyKf2uB57HP9uoqbwe2b3CaGEyh0t8bHC qPHEEhcXi4xGrqefsUQlTvPD5uZI4Rwq5J+XIueVAYhQm6Od7rcFkDfKct0ZrA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 658C61F80F; Tue, 12 Apr 2022 21:59:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23CLxPEF035501; Tue, 12 Apr 2022 21:59:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23CLxP1o035500; Tue, 12 Apr 2022 21:59:25 GMT (envelope-from git) Date: Tue, 12 Apr 2022 21:59:25 GMT Message-Id: <202204122159.23CLxP1o035500@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: da8b23852960 - main - powerpc: Remove unused variables. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: da8b23852960c60a52093474f2d2355bee3d340d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649800766; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1mTICgRUfjy4DUVu7hILtA5Le3wknia4Z+WWVZxQBrI=; b=HX/90cEFqFZJ5+ZLTZHVaZ1Sw/75HB3i/idhw1oXaG0A19qcuNYde9j/Yqm2YJbgNPetpf Ws4deq7goW1F7N9d2DKT6KCtTMbT9r+Edm4mvLEXbpdjFsWCBWQfQjemZpNMoi3HiGEAi3 FwfMn1IcOhNK0oT1M9u9bk7+eS1kjUL8PVAm1ToSFz/svK7GtxvRKXEtYe5MEep8fiR/Np 0zsiQnFpMiEHo479LIn8q1wGOFJ6ehnBMEeuf/ctq7KkAHGAAATHLE6BepdSKjOb100fyr 97wUBZW7uSX+XZmnjc+Zm2LF4l6I0rkyxF5bQ8oJFzVQTww+9oHDHNbWjTasvA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649800766; a=rsa-sha256; cv=none; b=AbOPmGXrtiiMDliqFHzSmwkBMPWl3WldSGcclo//pPXjyGrSZ2WsbvJeSHb/bYFgVxzuOE xPx74q3YcFckRCVTkV9JRtRnLF1NibBoHEe1v846nwYShund1aypYOchyUV5mNWr6fUOD0 p6h5BRZD8QgZhDiAGjAmA3Obfl2EpfujUKa6ptWfmSHRQW+nkXJwkQvTzp7VVJ8CYbHcAS W5k6i/U1mKdAkBLdJuyjgsDNpZa82mWsGySq4onBfvxWEzXL+9r4+K7ShyklSyGXD6BoPZ /rKhxOeNhJphGBX56Q9P0pFVcFWk8E+RCV4G93rcVyKLf7OB5+pVK89pxfdJBg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=da8b23852960c60a52093474f2d2355bee3d340d commit da8b23852960c60a52093474f2d2355bee3d340d Author: John Baldwin AuthorDate: 2022-04-12 21:58:58 +0000 Commit: John Baldwin CommitDate: 2022-04-12 21:58:58 +0000 powerpc: Remove unused variables. --- sys/powerpc/aim/mmu_oea64.c | 2 -- sys/powerpc/powerpc/machdep.c | 8 +------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/sys/powerpc/aim/mmu_oea64.c b/sys/powerpc/aim/mmu_oea64.c index 9e2bddb01344..a066511a863e 100644 --- a/sys/powerpc/aim/mmu_oea64.c +++ b/sys/powerpc/aim/mmu_oea64.c @@ -3430,7 +3430,6 @@ moea64_page_array_startup(long pages) vm_paddr_t pa; vm_offset_t va, vm_page_base; vm_size_t needed, size; - long page; int domain; int i; @@ -3447,7 +3446,6 @@ moea64_page_array_startup(long pages) return; } - page = 0; for (i = 0; i < MAXMEMDOM; i++) dom_pages[i] = 0; diff --git a/sys/powerpc/powerpc/machdep.c b/sys/powerpc/powerpc/machdep.c index 2dc9a3e9d549..84c3db924f68 100644 --- a/sys/powerpc/powerpc/machdep.c +++ b/sys/powerpc/powerpc/machdep.c @@ -271,7 +271,6 @@ powerpc_init(vm_offset_t fdt, vm_offset_t toc, vm_offset_t ofentry, void *mdp, bool symbols_provided = false; vm_offset_t ksym_start; vm_offset_t ksym_end; - vm_offset_t ksym_sz; #endif /* First guess at start/end kernel positions */ @@ -323,7 +322,7 @@ powerpc_init(vm_offset_t fdt, vm_offset_t toc, vm_offset_t ofentry, void *mdp, */ char *envp = NULL; uintptr_t md_offset = 0; - vm_paddr_t kernelstartphys, kernelendphys; + vm_paddr_t kernelendphys; #ifdef AIM if ((uintptr_t)&powerpc_init > DMAP_BASE_ADDRESS) @@ -350,8 +349,6 @@ powerpc_init(vm_offset_t fdt, vm_offset_t toc, vm_offset_t ofentry, void *mdp, if (fdt != 0) fdt += md_offset; } - kernelstartphys = MD_FETCH(kmdp, MODINFO_ADDR, - vm_offset_t); /* kernelstartphys is already relocated. */ kernelendphys = MD_FETCH(kmdp, MODINFOMD_KERNEND, vm_offset_t); @@ -361,7 +358,6 @@ powerpc_init(vm_offset_t fdt, vm_offset_t toc, vm_offset_t ofentry, void *mdp, #ifdef DDB ksym_start = MD_FETCH(kmdp, MODINFOMD_SSYM, uintptr_t); ksym_end = MD_FETCH(kmdp, MODINFOMD_ESYM, uintptr_t); - ksym_sz = *(Elf_Size*)ksym_start; db_fetch_ksymtab(ksym_start, ksym_end, md_offset); /* Symbols provided by loader. */ @@ -533,7 +529,6 @@ load_external_symtab(void) { int i; Elf_Ehdr *ehdr; - Elf_Phdr *phdr; Elf_Shdr *shdr; vm_offset_t ksym_start, ksym_sz, kstr_start, kstr_sz, @@ -589,7 +584,6 @@ load_external_symtab(void) { kernelimg = (u_char *)pmap_early_io_map(start, (end - start)); #endif - phdr = (Elf_Phdr *)(kernelimg + ehdr->e_phoff); shdr = (Elf_Shdr *)(kernelimg + ehdr->e_shoff); ksym_start = 0;