From patchwork Mon Jul 12 12:52:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 12371077 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=-16.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 A853DC07E9C for ; Mon, 12 Jul 2021 12:52:27 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 54B5E610C7 for ; Mon, 12 Jul 2021 12:52:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 54B5E610C7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 5D2BC8D000A; Mon, 12 Jul 2021 08:52:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 583AD8D0001; Mon, 12 Jul 2021 08:52:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 44A6B8D000A; Mon, 12 Jul 2021 08:52:27 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0087.hostedemail.com [216.40.44.87]) by kanga.kvack.org (Postfix) with ESMTP id 22CFA8D0001 for ; Mon, 12 Jul 2021 08:52:27 -0400 (EDT) Received: from smtpin10.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 36E6D8248047 for ; Mon, 12 Jul 2021 12:52:26 +0000 (UTC) X-FDA: 78353924292.10.3BCAAA8 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf18.hostedemail.com (Postfix) with ESMTP id D44D3400208B for ; Mon, 12 Jul 2021 12:52:25 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 8AD176101E; Mon, 12 Jul 2021 12:52:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626094345; bh=23TYWgWEH92y6aJX56zuWW+jSgIiPkLpsptVCfnw4oU=; h=From:To:Cc:Subject:Date:From; b=PQ7wmc+B2ca1TZ4TyTAyruwy05fkTHLgIHtMv8U9T2FtyDG5zlZKDE4+rjBFcqdDW g2Ir/H+qQYSXChAh3RB1NUBzPbmlo+EVmc0fluzCD0Rupaf3WFd8Eh8LOac6jRhD37 t/RnAIxAs8aGEUtBeEcz7PifpCYZQOEcMgMic9pTfUb1Xl4hUCPiKzSTfrNWQLD2YB vVg1NVs13gfw72O43MEH1w4qTJRBKFRD+6hoI/eCY1z5qV0zGGdzsQY1aEHmNwjop8 DAZ5KBWp37KXaz54NLBzraDNwQkf+jIlRPTmcZV9R97IYxkNgZNOi/BfVdXZFexur1 8IF5hti0e1OYA== From: Mike Rapoport To: Andrew Morton Cc: Greentime Hu , kernel test robot , Nick Hu , Vincent Chen , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Rapoport , kernel test robot Subject: [PATCH] nds32/setup: remove unused memblock_region variable in setup_memory() Date: Mon, 12 Jul 2021 15:52:18 +0300 Message-Id: <20210712125218.28951-1-rppt@kernel.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: D44D3400208B X-Stat-Signature: 3qyn3rfqhc1uetfp7swqmb354au4s6ez Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=PQ7wmc+B; spf=pass (imf18.hostedemail.com: domain of rppt@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org X-HE-Tag: 1626094345-327984 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: Mike Rapoport kernel test robot reports unused variable warning: cppcheck possible warnings: (new ones prefixed by >>, may not real problems) >> arch/nds32/kernel/setup.c:247:26: warning: Unused variable: region >> [unusedVariable] struct memblock_region *region; ^ Remove the unused variable. Reported-by: kernel test robot Signed-off-by: Mike Rapoport Reviewed-by: Guenter Roeck Tested-by: Guenter Roeck --- arch/nds32/kernel/setup.c | 1 - 1 file changed, 1 deletion(-) base-commit: e73f0f0ee7541171d89f2e2491130c7771ba58d3 diff --git a/arch/nds32/kernel/setup.c b/arch/nds32/kernel/setup.c index 41725eaf8bac..b3d34d646652 100644 --- a/arch/nds32/kernel/setup.c +++ b/arch/nds32/kernel/setup.c @@ -244,7 +244,6 @@ static void __init setup_memory(void) unsigned long ram_start_pfn; unsigned long free_ram_start_pfn; phys_addr_t memory_start, memory_end; - struct memblock_region *region; memory_end = memory_start = 0;