From patchwork Tue Jun 29 02:40:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12349133 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 246E8C11F64 for ; Tue, 29 Jun 2021 02:40:05 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E5FC561D0F for ; Tue, 29 Jun 2021 02:40:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E5FC561D0F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 4C3FB8D00F6; Mon, 28 Jun 2021 22:40:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 473C78D00F0; Mon, 28 Jun 2021 22:40:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 33C088D00F6; Mon, 28 Jun 2021 22:40:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0158.hostedemail.com [216.40.44.158]) by kanga.kvack.org (Postfix) with ESMTP id 0FC528D00F0 for ; Mon, 28 Jun 2021 22:40:04 -0400 (EDT) Received: from smtpin13.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 0BA8A1F23D for ; Tue, 29 Jun 2021 02:40:04 +0000 (UTC) X-FDA: 78305206728.13.2247A5F Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf23.hostedemail.com (Postfix) with ESMTP id BAC92A0010CB for ; Tue, 29 Jun 2021 02:40:03 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id B713661D0C; Tue, 29 Jun 2021 02:40:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1624934403; bh=OhbioMAAdauUGjTAPryoLTTLuyBjIwurSWVhx+zWMd8=; h=Date:From:To:Subject:In-Reply-To:From; b=PTG3EIFDYCwe26Y+o0b2ZSyzIR1/u4ohUIB8aY1cYjyWfwwJtUU7BB+yJNfOGbVBe xkE+f50pArwFP2aL677ske4Yx7WbBXWOURFnCF0RxnV9PZfSvoEp6Y+yvTakN6OrIn xFjZcFdfkrcHvT+XaGmunQf9PQjs4L3kqGFQF92o= Date: Mon, 28 Jun 2021 19:40:02 -0700 From: Andrew Morton To: akpm@linux-foundation.org, jrdr.linux@gmail.com, linux-mm@kvack.org, lkp@intel.com, mm-commits@vger.kernel.org, rppt@linux.ibm.com, torvalds@linux-foundation.org, ysato@users.sourceforge.jp Subject: [patch 129/192] h8300: remove unused variable Message-ID: <20210629024002.dSR4vfhfg%akpm@linux-foundation.org> In-Reply-To: <20210628193256.008961950a714730751c1423@linux-foundation.org> User-Agent: s-nail v14.8.16 Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=PTG3EIFD; spf=pass (imf23.hostedemail.com: domain of akpm@linux-foundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: BAC92A0010CB X-Stat-Signature: 935kun7mmeprpo4yu1jy6n41g8hqor13 X-HE-Tag: 1624934403-462104 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Souptick Joarder Subject: h8300: remove unused variable Kernel test robot throws below warning -> >> arch/h8300/kernel/setup.c:72:26: warning: Unused variable: region [unusedVariable] struct memblock_region *region; Fixed it by removing unused variable. Link: https://lkml.kernel.org/r/20210602185431.11416-1-jrdr.linux@gmail.com Signed-off-by: Souptick Joarder Reported-by: kernel test robot Acked-by: Mike Rapoport Acked-by: Yoshinori Sato Signed-off-by: Andrew Morton --- arch/h8300/kernel/setup.c | 2 -- 1 file changed, 2 deletions(-) --- a/arch/h8300/kernel/setup.c~h8300-remove-unused-variable +++ a/arch/h8300/kernel/setup.c @@ -69,8 +69,6 @@ void __init h8300_fdt_init(void *fdt, ch static void __init bootmem_init(void) { - struct memblock_region *region; - memory_end = memory_start = 0; /* Find main memory where is the kernel */