Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2856386pxb; Mon, 1 Nov 2021 03:19:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnmmg5qadK8MhZmHwbMpbvRCEpvjE5gxiLVSepdP0KSx+QN7BTPR4MMBTL4pgYW/ZNt/MV X-Received: by 2002:a92:ca46:: with SMTP id q6mr1853471ilo.230.1635761963333; Mon, 01 Nov 2021 03:19:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635761963; cv=none; d=google.com; s=arc-20160816; b=S8xLRsrMjY5Cd5M+IUyqegFwkt4EVhm9DfOuvjd+xDl8fp6ZA6bnT0ezzXgpr6Noun 7QvUqsuIsiXaAlhoaixQlIBUQjZmUbx0HT2wr8YcsF1yjVq1FYbIh1CjVAzusQOnrB80 bOeXwQ1mH/KcMPaGoPPESUAkOC2pFhMO1Q0O1NSuiFBCuSokaiFYnVLqSXc7tI1r/irf Jk201/D9rnNaXJgd3HwNDH8e3R3mIV1f5en/XeYQO9zS2fgRnfZZ/gzasCtgDaS0ZcR/ DJAUBtWVkxtwVXmHHgm0kr0tzWtGbG1SFDRpPgPIO1lPqP+6v3EhaSr8sGukaTV/sn8j ts2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=oYkYwA/2dIbGzKgJMwo2/gyHeXXzrEzdf/BzDdeRQYA=; b=Kg/5spOCeOGxvakKlqvifsteLRXPFktkcXSWpHWnIb1LCISDxKPAql+E5w9Rqu/Mxg cHU3Zv4bh7O69pQtXKN9d16hzS34+TPy7VQh1rhfT4g4GZWt7FhTijkqjh7u/0Z/DjiL ahkfKb35XyK5DgTF5LkUVbFCtsaFKE33HQArhaKNfpR3UjdArXuD5sMR5wkDyGQNrHdK nuOf2QDuCAClLJEx3iGajoStdoAIX6FN9rkWItibqOU9IrXAyKcb6ZWXafVNtNPsapWQ du5qm/AQ9YVQJ30rntNjji4lOLxGQ9Z5jQtT9YofTAil+mqSTFsEXggG6sKmYTWvESJ8 Vk1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="B/ANsDuh"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si3828544ilv.137.2021.11.01.03.19.10; Mon, 01 Nov 2021 03:19:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="B/ANsDuh"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231841AbhKAKUK (ORCPT + 99 others); Mon, 1 Nov 2021 06:20:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231693AbhKAKUK (ORCPT ); Mon, 1 Nov 2021 06:20:10 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26DBDC061714 for ; Mon, 1 Nov 2021 03:17:37 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id t21so11229175plr.6 for ; Mon, 01 Nov 2021 03:17:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=oYkYwA/2dIbGzKgJMwo2/gyHeXXzrEzdf/BzDdeRQYA=; b=B/ANsDuh9hFhnDCEr03H/+WltnM+MqPmj6syRy87S7MAMDiRYGF/x3Cu0Q9mh7XLV6 9uCCBkB+ICcjo9XV5lBU6QwH+O9orWD4mc3purMHhtulYY4kHTmOm6JA+zs7+3taMrH/ Ft0AvCkn6/XlS1wLg+SobkQJ6BJno0ZHJNRGZtFJk7IwEAcPaSyFZCJmqDYgRQZK5NtO QVMve5ualc28/2Dqvj25xqum1C2ZIbU3ot2VJUVlgZFuLpi+tUsp2HBt+17okhBTsgk7 LPYuganUngqgRR4UBX6PqLtA+KRA4atrap4PIzjGJf4fTR/c9DSSEo6n15sPXuEs0MrU f3TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=oYkYwA/2dIbGzKgJMwo2/gyHeXXzrEzdf/BzDdeRQYA=; b=7FN+KvUdw7zYzss27pnpaQ6Dkt/oeQ7Equg5pbI1Hu3xhu401DxX7gD/X3NPeiv5Vz GyZQPDpPUyYF7Hl80Ijju4heAa8JMjEDcBvT4IcldL5GBqlN0bPzOnB7ZWhHgGBQdvZ2 zPDRARILVgDDKtQ+CYJKH09KA1gU9TDeEusnU4e+yaMBe6UNM3Uu/cDPqks+VBq42/+D ZWnR+c9qIa5z4iqYsGpU36mtIlpfZcKJvanmO6QO9XsLrhSFjtQaQQH0gz7XXf/g0PCu XAjUQMtNxgx4HSJ4zj8EDcdTbhhxKIqX+6BfcwSFY5WM7Pe8AX+sD8uDsAYt6zahqKlI cuOQ== X-Gm-Message-State: AOAM530HLrvasn8xEK0ZyfQGUEfleHCn4NUaFiKBBLUWsu6R7nxOV8ET RVsNo1r/V9Wgf2WAHbGNi44= X-Received: by 2002:a17:902:d50d:b0:141:ea03:5193 with SMTP id b13-20020a170902d50d00b00141ea035193mr4871880plg.89.1635761856537; Mon, 01 Nov 2021 03:17:36 -0700 (PDT) Received: from kushal ([115.96.218.96]) by smtp.gmail.com with ESMTPSA id y6sm15891676pfi.154.2021.11.01.03.17.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Nov 2021 03:17:36 -0700 (PDT) From: Kushal Kothari To: rppt@kernel.org, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, mike.rapoport@gmail.com, kushalkothari2850@gmail.com Cc: Kushal Kothari Subject: [PATCH] staging: mm: Fix ERROR:do not initialise statics to 0 or NULL in memblock.c Date: Mon, 1 Nov 2021 15:47:19 +0530 Message-Id: <20211101101719.22538-1-kushalkothari285@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The default value of static variable is zero and bool is false so not need to set it here. This patch fixes this ERROR in memblock.c Signed-off-by: Kushal Kothari --- mm/memblock.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mm/memblock.c b/mm/memblock.c index 5c3503c98b2f..57b9153b2278 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -16,7 +16,7 @@ #include #include #include - +#include #include #include @@ -152,10 +152,10 @@ static __refdata struct memblock_type *memblock_memory = &memblock.memory; } while (0) static int memblock_debug __initdata_memblock; -static bool system_has_some_mirror __initdata_memblock = false; +static bool system_has_some_mirror __initdata_memblock; static int memblock_can_resize __initdata_memblock; -static int memblock_memory_in_slab __initdata_memblock = 0; -static int memblock_reserved_in_slab __initdata_memblock = 0; +static int memblock_memory_in_slab __initdata_memblock; +static int memblock_reserved_in_slab __initdata_memblock; static enum memblock_flags __init_memblock choose_memblock_flags(void) { -- 2.25.1