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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1DFC2C4345F for ; Wed, 1 May 2024 17:06:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A364D6B0088; Wed, 1 May 2024 13:06:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9E6256B0089; Wed, 1 May 2024 13:06:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 885DD6B008A; Wed, 1 May 2024 13:06:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 65DD86B0088 for ; Wed, 1 May 2024 13:06:30 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 2AB6D140A91 for ; Wed, 1 May 2024 17:06:30 +0000 (UTC) X-FDA: 82070455740.03.1636DF1 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by imf07.hostedemail.com (Postfix) with ESMTP id 83FFE40033 for ; Wed, 1 May 2024 17:06:26 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b="B2 SXLdy"; dmarc=pass (policy=none) header.from=quicinc.com; spf=pass (imf07.hostedemail.com: domain of quic_obabatun@quicinc.com designates 205.220.180.131 as permitted sender) smtp.mailfrom=quic_obabatun@quicinc.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1714583186; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=LdHuB/Pttr2MzBH59IrCt2SNp2ciL/2HumnTzw4Ae0w=; b=rm1w5nSPqc/ehCEI0AMDU9aBw+HhPjy/sGWvAILj+heKmm7EFeA4iMlM1gTu5HBOGeJ0Zo 7ORviM7nEvi0P1z591c99CvxdGZ9sNM+DC4TlLVrnprMOvzNNny8Fmdh8k6y8BhTcTYHzb WeqXrQfSwTrvtliosCiX75TEyQ84Yeo= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b="B2 SXLdy"; dmarc=pass (policy=none) header.from=quicinc.com; spf=pass (imf07.hostedemail.com: domain of quic_obabatun@quicinc.com designates 205.220.180.131 as permitted sender) smtp.mailfrom=quic_obabatun@quicinc.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714583186; a=rsa-sha256; cv=none; b=mDuWP205BtOIz8bPOmyCFpaF2zWN+doFaPOKlobsClKiMSsDHVEPwn3/IgR3xxU6L1tvbm Bpo+vbnFfCZbtsYhP1STmU2mB4Whvat88mrxiUm093PNd4WZVQE7ixDcZt57vXxYosb63v MEXnb+taL7NZghtksVzZ2yInzZ2U5O4= Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 441DgKoC024525; Wed, 1 May 2024 17:06:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=LdHuB/Pttr2MzBH59IrCt2SNp2ciL/2HumnTzw4Ae0w=; b=B2 SXLdyA4TkWy/rjgL+4Bhzcd9KKibNm7GUj03nltF+qjNH6uuIe7DLW+c0v8pONtE iqdy0EQWY5n/zjkK18ZGmT84XAcO29UnEme5KAH9UtQX97Qk1joSPneqyicD9Oiq Ncai00+dz5dDxoIDwNoxPCqdApeAE2CTYN/PL3afQRPahL95VR7j75YYI1dbulo7 qdq/cTr0LMNsdeMU+KDfXWQinz7JzxqHDEDUexWxGwi8X4Exo4bZsOhckXow5pvp mYKLoQe3ejU8Vrrnqhe7gshObICyLXtCE0oN1sjbrL9yr5JSZmCjiHy5U6/7QJ86 NrqMUo9Eu+qm+zkdjd5w== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xu199341f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 01 May 2024 17:06:23 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 441H5lwi025672 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 1 May 2024 17:05:47 GMT Received: from [10.71.110.192] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Wed, 1 May 2024 10:05:47 -0700 Message-ID: Date: Wed, 1 May 2024 10:05:46 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [linux-next:master 9793/10134] drivers/of/of_reserved_mem.c:465:6: warning: variable 'nomap' is uninitialized when used here Content-Language: en-US To: "Rob Herring (Arm)" CC: , , Linux Memory Management List References: <202405012148.1dCXzomq-lkp@intel.com> From: Oreoluwa Babatunde In-Reply-To: <202405012148.1dCXzomq-lkp@intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: XzY_gQna6a8JqHHzQiijkclqX7N01GD7 X-Proofpoint-GUID: XzY_gQna6a8JqHHzQiijkclqX7N01GD7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-01_16,2024-04-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 mlxlogscore=999 lowpriorityscore=0 mlxscore=0 adultscore=0 bulkscore=0 phishscore=0 priorityscore=1501 malwarescore=0 suspectscore=0 impostorscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2405010121 X-Stat-Signature: 3ogf8zd8cctc5q1pr4iayhw46aca3qom X-Rspamd-Queue-Id: 83FFE40033 X-Rspam-User: X-Rspamd-Server: rspam12 X-HE-Tag: 1714583186-456230 X-HE-Meta: U2FsdGVkX18u8b6Qr4oi7xI4EpuuQjt48vUDUXN3QvfiEsmSB9KP1jKsv8dlaF7GHc1LGyPDx2kDAw5VQda5vy2FbCAaSQWGOUpViffEVbootYv8VVlz1llqmcBR3G1LFNpKomlP4WeZ/RywSTGVGP5z4F3ZDdDL22FcSmTbQ8fqSUSkTpHvm8Usfq0onyP7VmTkNk7DFbaXcH/tgxVxn2eqHxvHaAatw4UH6ujrA+R0U16SxQ3KFiPlbAnYr12XuzrYp/fdJ7mJ8l8A8tlAYlhesjsFEAB8KV+7t/uYvN1k3z/NxJf8eugmgFb2N8/+dp+PhfVUMEOxyNpUBCmGbX5si2HQHWTxQDbFM6yJLyT0MA/NJmJPm/7Erer9HqK9jMb62wX2BT/yeR1MdA2UsJdkywXr7RE4Y/FiNjFilu6Rn/jApsj9Dx0njwGxKKCcl+hBZvMiwWPKHqgq0bciQ+cHKUI7pLpxOGQFpu6X820UeovCftcbFotCaybAdLje6xPEb9b9iEpECz0IMXmf8GDUtIKtFLfGjBPdYqtvOMnGDiDAgtw6m8jo1+QP14OYuPymIE4md4nBUkbfQMfOLDwAYBNe4Es2fDjYgHYYeONGlEibIdSmr99ocZLfb5QIb637DsOHGucGXwWLyvoD5RcZwu9Wz/hyeCFelTtRK5xl+ymA85g59obww8jGwEbchqRvAd4T71rLn+YXWJ+8VfqTxqV93y6cuA13qlh+XhN1yWkYzU8StcMs1VVW+SP7pfh9YAUFfRgENe33Mcdq8v4azBrEjcpxix8k8F2mfgUIQP9xx5u2Abu7SdgFHKW3/rKpywf2A8rIAjvlBqImvm+KYfxoSvOFFpbKbquYLFjzKw66WpQ7dyhcP1VinUT4Uz4ZxC+iWTQY1ilzIZuCECTv90ae+2hbjGL4kRvF6tvfjEukVifAexJbe54B3ELJfolCF9GfdJRQo4rrgka /pQ== 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: List-Subscribe: List-Unsubscribe: Hi Rob, On 5/1/2024 6:45 AM, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: f68868ba718e30594165879cc3020607165b0761 > commit: 2acef04ad57cab44b33001542791fc93f81cadf1 [9793/10134] of: reserved_mem: Remove the use of phandle from the reserved_mem APIs > config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20240501/202405012148.1dCXzomq-lkp@intel.com/config) > compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 37ae4ad0eef338776c7e2cffb3896153d43dcd90) > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240501/202405012148.1dCXzomq-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202405012148.1dCXzomq-lkp@intel.com/ > > All warnings (new ones prefixed by >>): > > In file included from drivers/of/of_reserved_mem.c:19: > In file included from include/linux/mm.h:2208: > include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] > 522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" > | ~~~~~~~~~~~ ^ ~~~ >>> drivers/of/of_reserved_mem.c:465:6: warning: variable 'nomap' is uninitialized when used here [-Wuninitialized] > 465 | nomap ? "nomap" : "map", > | ^~~~~ > include/linux/printk.h:530:34: note: expanded from macro 'pr_info' > 530 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) > | ^~~~~~~~~~~ > include/linux/printk.h:457:60: note: expanded from macro 'printk' > 457 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__) > | ^~~~~~~~~~~ > include/linux/printk.h:429:19: note: expanded from macro 'printk_index_wrap' > 429 | _p_func(_fmt, ##__VA_ARGS__); \ > | ^~~~~~~~~~~ > drivers/of/of_reserved_mem.c:441:13: note: initialize the variable 'nomap' to silence this warning > 441 | bool nomap; > | ^ > | = 0 > 2 warnings generated. Would you like me to upload another version to fix this error? Should just need to undo a one line change I made while I was restructuring the code. Regards, Oreoluwa