From: Sean Anderson Date: Sun, 1 Mar 2020 22:50:10 -0500 Subject: [PATCH v5 15/33] gpio: dw: Fix warnings about casting int to pointer In-Reply-To: References: <20200228210552.615672-1-seanga2@gmail.com> <20200228210552.615672-16-seanga2@gmail.com> Message-ID: <1d4c7d49-8f3f-dbe9-5082-a2f2fbb80c36@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 3/1/20 9:27 PM, Bin Meng wrote: > Hi Sean, > > On Sat, Feb 29, 2020 at 5:06 AM Sean Anderson wrote: >> >> Explicitly cast fdt_addr_t to a void pointer, since we pass it to readl. > > Explicitly cast => Change? > > As what the patch does The compiler was giving a warning since readl expects a pointer but fdt_addr_t is typedef to some numeric type. This patch doesn't change the variable we get from the fdt subsystem to a void pointer, but it does change the base address we store to one. --Sean