Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3094589pxb; Mon, 1 Nov 2021 07:46:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNyArs7ScqRvM35FIoJMDmfnolhdjJ1BdVEzby6kcjoco+zwpPFlS6STFthJN7ltvRngMe X-Received: by 2002:a50:d984:: with SMTP id w4mr41821813edj.375.1635778000605; Mon, 01 Nov 2021 07:46:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635778000; cv=none; d=google.com; s=arc-20160816; b=tIk2bhQtVZxJ4BcBSRxmyVUiuKsws1nrro5IwNe/ZwuHT45eQn7HtnlAMRaHcWd/Ly pgZkzzZEDSjiyWfGmwTUVO/quDT+YK6ZflAbEPS++xb/udikPX1nmCUudf+FlQqvIkUg AZjtoyI14tNrjEQhcsXaz57rA9ec7g/Isi5Kwzhq0axBBM9JvnVgXqJkAIIqdhL12KPm zW60Zf2zBvIbRGBhKDdAK0Sf6hefeM0ZCFKQNJBaFSsL33BeGSKSwyNE+Wn8S3zAXhKg 50VosQh8Aa2scpX9huRhCs1bODipXGoS1GWIknOOMpvbPNrsxovYdtFSsS05xBo0ervD T7oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uUUawBfqof3MazZFelNAf+4jZ9WvINAWpNw9e92RjoE=; b=yganIqrZvYbvkwqMtN33RN7KXtzaV2UE4DjLvrJtHuLDeFzU7cjg5ODpx7tsy/3rLs G+2HaGxebzJ3qinxJOSKLW6TsRcpxcfmsaB51xwAikn/G3k8mdUFxvnUX48Wuq/aiPz3 V3LrWAwMeTiXkSuPJVb/8Tz2P7IVbqwXWPBP975jXUtglHw9QQu/efJEE1fLcaLpf/8O 1uSAVvBPRXjPDSpv3omWKFKqZbuVpNE8L80BWHmN0c7BGN4HmSyASve6aXpxLkpN2Y+X sps1Mi4n93DMqOK9SDS0Iuj9ot+6pGrGNfCSBv0sVGqpvVR7a+gcZAHb4GMmrf7v4nRs +1sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=FeuCOGrV; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qw14si10452942ejc.370.2021.11.01.07.46.16; Mon, 01 Nov 2021 07:46:40 -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=@infradead.org header.s=casper.20170209 header.b=FeuCOGrV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231811AbhKAOo3 (ORCPT + 99 others); Mon, 1 Nov 2021 10:44:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230204AbhKAOo2 (ORCPT ); Mon, 1 Nov 2021 10:44:28 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87215C061714 for ; Mon, 1 Nov 2021 07:41:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=uUUawBfqof3MazZFelNAf+4jZ9WvINAWpNw9e92RjoE=; b=FeuCOGrVu8nkciBsbui2puCSHA 89IKHilpx/fkmRdLIJlqJlNBsNS94j0gMomVdAwptCcpmJYsXW2qkbbnXZKxNDYadEqw+ZF+9/PiH O2RqeuRgQZYtn9w4a29lheXPcM5Q1zDXN8K16K+WMJIYkeU2ONWloXtJxY2A22TB4rWp5CG4avYsB kDN4itCsCjY9Dl1i+vjJW1WaiHasFB20cVwZckoRPUevBi147E500qYKVhpEL6/YlYDPIzX1ff92O ffmZPuSF2m78XHzf0TKJZA3yM05jeqbjxw3qr9O9iQzy9u1qKRIPF3SzcOd4S7Q2rmLUSg/573sVN GOrO6hwQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mhYSq-003pMp-Ex; Mon, 01 Nov 2021 14:39:50 +0000 Date: Mon, 1 Nov 2021 14:39:08 +0000 From: Matthew Wilcox To: Kushal Kothari Cc: rppt@kernel.org, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, mike.rapoport@gmail.com, kushalkothari2850@gmail.com Subject: Re: [PATCH] staging: mm: Fix ERROR:do not initialise statics to 0 or NULL in memblock.c Message-ID: References: <20211101101719.22538-1-kushalkothari285@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211101101719.22538-1-kushalkothari285@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 01, 2021 at 03:47:19PM +0530, Kushal Kothari wrote: > 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 Why does the subject line say "staging"? What tool reports this as an "ERROR"? > 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 Why are you including stdbool here? Why do you not justify it in the changelog?