From mboxrd@z Thu Jan 1 00:00:00 1970 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=-10.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 A929CC07E99 for ; Mon, 12 Jul 2021 09:27:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8E9AA6101D for ; Mon, 12 Jul 2021 09:27:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357055AbhGLJai (ORCPT ); Mon, 12 Jul 2021 05:30:38 -0400 Received: from mga09.intel.com ([134.134.136.24]:55241 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356641AbhGLJah (ORCPT ); Mon, 12 Jul 2021 05:30:37 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10042"; a="209924172" X-IronPort-AV: E=Sophos;i="5.84,232,1620716400"; d="scan'208";a="209924172" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jul 2021 02:27:47 -0700 X-IronPort-AV: E=Sophos;i="5.84,232,1620716400"; d="scan'208";a="459125160" Received: from shao2-debian.sh.intel.com (HELO localhost) ([10.239.13.11]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jul 2021 02:27:46 -0700 Date: Mon, 12 Jul 2021 17:27:44 +0800 From: kernel test robot To: Andreas Oetken Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Ley Foon Tan Subject: arch/nios2/kernel/setup.c:152:6: warning: Unused variable: dram_start [unusedVariable] Message-ID: <20210712092743.GR2022171@shao2-debian> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 1e16624d7b4376797ede36e3c955375cf0f23298 commit: 7f7bc20bc41a4fbcd2db75b375ac95e5faf958ae nios2: Don't use _end for calculating min_low_pfn date: 5 months ago compiler: nios2-linux-gcc (GCC) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot cppcheck possible warnings: (new ones prefixed by >>, may not real problems) >> arch/nios2/kernel/setup.c:152:6: warning: Unused variable: dram_start [unusedVariable] int dram_start; ^ arch/nios2/kernel/setup.c:131:6: warning: Uninitialized variable: cmdline_passed [uninitvar] if (cmdline_passed[0]) ^ vim +152 arch/nios2/kernel/setup.c 7f7bc20bc41a4f Andreas Oetken 2021-02-19 149 27d22413e60009 Ley Foon Tan 2014-11-06 150 void __init setup_arch(char **cmdline_p) 27d22413e60009 Ley Foon Tan 2014-11-06 151 { 0042379279bcac Mike Rapoport 2018-10-26 @152 int dram_start; :::::: The code at line 152 was first introduced by commit :::::: 0042379279bcac871d2a60172f942a3a255ec611 nios2: switch to NO_BOOTMEM :::::: TO: Mike Rapoport :::::: CC: Linus Torvalds --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org