From patchwork Thu Sep 9 01:10:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Morton X-Patchwork-Id: 12482097 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.7 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,URIBL_BLOCKED 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 5E7D5C433FE for ; Thu, 9 Sep 2021 01:10:26 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 0700661166 for ; Thu, 9 Sep 2021 01:10:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0700661166 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=kvack.org Received: by kanga.kvack.org (Postfix) id 9335694000D; Wed, 8 Sep 2021 21:10:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8E0F5940007; Wed, 8 Sep 2021 21:10:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8027994000D; Wed, 8 Sep 2021 21:10:25 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0086.hostedemail.com [216.40.44.86]) by kanga.kvack.org (Postfix) with ESMTP id 6DCD6940007 for ; Wed, 8 Sep 2021 21:10:25 -0400 (EDT) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 2298618411DC9 for ; Thu, 9 Sep 2021 01:10:25 +0000 (UTC) X-FDA: 78566254410.25.A43AB6F Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf01.hostedemail.com (Postfix) with ESMTP id C745D5059712 for ; Thu, 9 Sep 2021 01:10:24 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id D12F161158; Thu, 9 Sep 2021 01:10:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1631149824; bh=NnqWfeDW33Zyv+mR5GNV//cYwvzlzImsqF2TL+vuJbs=; h=Date:From:To:Subject:In-Reply-To:From; b=ZkCsIgOm8sSo9ZxeqOQG1KUcr5bpmSrWvUYLT1uu/mguFQ8Ww28tuYrk/Ps76VwUq Yn/lu8RxwNRlqWttdcdFKP3dLxVeCU6QK3fRAsZ2xW7bjaiq+2fQTvxZS7HtD9l9ed xfWv043Dr4H5LBLq+y0JAGUpczHkxzi5Ft7eYVlk= Date: Wed, 08 Sep 2021 18:10:23 -0700 From: Andrew Morton To: akpm@linux-foundation.org, deanbo422@gmail.com, green.hu@gmail.com, linux-mm@kvack.org, linux@roeck-us.net, lkp@intel.com, mm-commits@vger.kernel.org, nickhu@andestech.com, rppt@linux.ibm.com, torvalds@linux-foundation.org Subject: [patch 8/8] nds32/setup: remove unused memblock_region variable in setup_memory() Message-ID: <20210909011023.FwapIlJdh%akpm@linux-foundation.org> In-Reply-To: <20210908180859.d523d4bb4ad8eec11c61500d@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: C745D5059712 X-Stat-Signature: 6hb8pn6taxa6sjz6r9d8jpp9hhszqstk Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=ZkCsIgOm; spf=pass (imf01.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-HE-Tag: 1631149824-700637 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 Subject: nds32/setup: remove unused memblock_region variable in setup_memory() 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. Link: https://lkml.kernel.org/r/20210712125218.28951-1-rppt@kernel.org Signed-off-by: Mike Rapoport Reported-by: kernel test robot Reviewed-by: Guenter Roeck Tested-by: Guenter Roeck Cc: Greentime Hu Cc: Nick Hu Cc: Vincent Chen Signed-off-by: Andrew Morton --- arch/nds32/kernel/setup.c | 1 - 1 file changed, 1 deletion(-) --- a/arch/nds32/kernel/setup.c~nds32-setup-remove-unused-memblock_region-variable-in-setup_memory +++ a/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;