Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp3091532rdb; Tue, 13 Feb 2024 06:44:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFe/0HaE/947zVWMj0TDOOZFwriPDcuUv+eg6e/5GXIlzadFQj5wOEkqACZ7o7Mmoj6SFtN X-Received: by 2002:a05:622a:15c6:b0:42c:80f3:d63c with SMTP id d6-20020a05622a15c600b0042c80f3d63cmr4744076qty.19.1707835485750; Tue, 13 Feb 2024 06:44:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707835485; cv=pass; d=google.com; s=arc-20160816; b=m6C+NLNMixWexkgmVtLD1ocaaMFpokmSPISPp1zT9LF79fe83qEnpRYFpikN7pggWb mSbjnMcJq1nsnWg1CesgXgv3DaA4JGjGheK5zQmPnHyfsEnzbjM3soUMmFXLdXEDh/m2 rk176GCAsXgG9Ez2txqt9BqmL23vBSTkBlqQPHzVlq0FbKBbC2sgOz+FKrNCRfYtRvdk PtOtkAr3Lb8l9W4e650N6lc3qiHykq5xfJWM9reQYl3O7RNlfl7DgZZDUjfJBT37Ue+r bj2L0Km4lUrq58kIYmPfSwqpq29iXwY0VmTnoEATQgvGtoXGwLv9Njd/VPcM4knG4dhG sx7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=v75aQJES6KHpgRI+zp3E6jafD97xnQh4HKoDzFBuMR4=; fh=EWHsjbN3RqgqoCj6BV/bncQCSrFQ4VDM+CoxDZ7w5NQ=; b=HG0fJM07UHkvxW83senr82MnfKt7n1pWMjyh/o/C60kGoL18kebgL50CrdBruzUSPk gs0ME/HKRUGQ9P0YqFSyLB6ywCWxuhmsqMSO2ahMylbjBTZ2FacO7Z97VNKRLJa82VAL JDWjv9dRHCc9S/eONxbBPcgc0yb7pAFCNXcJHG7KkiF7iqjXCld8LM/H1NawlOwxxGBH 6vWV4IPRr+zg7F3pCL5YN8gF6BIMRk/TghgKHosAUUCP2Dj2cUZI5ZkBrJiQyrshTGg/ Rd/j4Pub2NrGTfYHe0EcbMQO43y07R3RVpAdvlDxYKdlV1x8xtRXwFEVXOC0e26XKwwN 0TOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="uPS/Lasm"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-63702-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63702-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCU9o4joMBjzrozhfRZMlxZUm6k4tn+CxMhK/jMMUM+KmjU4CnqwFiFJm/pl02uBCXe2Nx4mUx0/7oNOnIbfP7fIc0kSGc4jKFOvO4XnYA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b8-20020ac85bc8000000b0042c7c29a554si3094868qtb.420.2024.02.13.06.44.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 06:44:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63702-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="uPS/Lasm"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-63702-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63702-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7C9351C2694B for ; Tue, 13 Feb 2024 14:44:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E12F57895; Tue, 13 Feb 2024 14:44:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uPS/Lasm" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8598958124; Tue, 13 Feb 2024 14:44:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707835468; cv=none; b=OoBMVKGt1OSRfkHwHsX584PW4gAf4SU6vCJXzOS48E2H/w+I6WtWGjAYmta9PVUABcuB6IEeMl7enKqP7UzHLEaGP8MKDld+dbt+d2HXN9h+S21Hz2Xevo9R1h2imjwDx8+cxSdnQt4MtFNS1EriqL5e+Ou1wCXD63yCXo2NRI4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707835468; c=relaxed/simple; bh=V4zHtxpagFTSsO4FJDZDl2e3AjDYrOT8ZsV+wFFx6DA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KVfSJ+f8Cr0h8otU7KVB9VyXQKyhUN6JoIBXBJ+XLZpC2Jtj/hGD+cav9IZJr/H+dCs9UsB3KKR4Ju1jGIpFa/zUkr9XabJCJZO9iY1+Mpos7N+2jEkPL5TTegl5/w++jfq56EDAaxOAWHH3gkVpaDK4wrVWsQw0Bm6F3VKCvyk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uPS/Lasm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E20C4C433F1; Tue, 13 Feb 2024 14:44:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707835468; bh=V4zHtxpagFTSsO4FJDZDl2e3AjDYrOT8ZsV+wFFx6DA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uPS/LasmSMMOACrMEim5NP3opwIVzDNE8aeKqdOMpPZetUne8qUjq3Hl+ELQ5wFJh 5OHtjUE9KOEuyX7bl8kBTeV6KNCFmOPdvDwkdI/19Ry7CjZpOALRBk9cuWtm09UPOV yCvW1VbbY8zRvm6uo8goJpNzncltvl73q3WakaXHHJgjB9S78u3KWTkZbWnVUyVIaB 0R5PvMkb3h5ZiOu9+1GaBtRBmfde2fJodDTZdn7w/drSYtgrjiYv8/SoxtHJHKlaKs 708mlo0aOKpWg5neoTVoanYzKMoqxQRJn6/PwexFT4pGxRraEUHCnted5iOrAN2tmS tFiSygxqLzWfw== Date: Tue, 13 Feb 2024 08:44:25 -0600 From: Rob Herring To: Dawei Li Cc: lkp@intel.com, frowand.list@gmail.com, oe-kbuild-all@lists.linux.dev, devicetree@vger.kernel.org, stephen.boyd@linaro.org, robh+dt@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] of: Make explicit cpu_to_be32 conversion to mute sparse warning Message-ID: <170783546379.1178222.11395927035166507245.robh@kernel.org> References: <202402042134.GEb3Bgwl-lkp@intel.com> <20240205024033.3572617-1-dawei.li@shingroup.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240205024033.3572617-1-dawei.li@shingroup.cn> On Mon, 05 Feb 2024 10:40:33 +0800, Dawei Li wrote: > Kernel test robot reports sparse warning: > sparse warnings: (new ones prefixed by >>) > >> drivers/of/base.c:1337:73: sparse: sparse: incorrect type in initializer > (different base types) @@ expected restricted __be32 @@ got int @@ > drivers/of/base.c:1337:73: sparse: expected restricted __be32 > drivers/of/base.c:1337:73: sparse: got int > > Thus, Make explicit conversions to mute warning(Although BE and LE are > exactly same in binary representation for 0/~0). > > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202402042134.GEb3Bgwl-lkp@intel.com/ > Signed-off-by: Dawei Li > --- > drivers/of/base.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Applied, thanks!