Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4880848imu; Sat, 19 Jan 2019 21:52:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN61hjcCKf2KYtjVdvu3PW/5pRTXwn5b7A3URdZ4p4tJ9BHZ/sj9Wi+yF3CPbSS4LtLqY25s X-Received: by 2002:a65:6417:: with SMTP id a23mr23770903pgv.236.1547963567588; Sat, 19 Jan 2019 21:52:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547963567; cv=none; d=google.com; s=arc-20160816; b=TIt8o8wUBHxEOMDgRkjab/EFqpKLHF06cR8tCEAXg3D810VomRQkxypA3ky7n3Pdet ouyCIUkb+1QqBGF0of6GIPXvQa755uJMAPRnTbwqd+38d+iXo1xTt1zYnKWl6DvNcYH3 l7hoZlmIedjDaVLXinyVAK3WNzOaAamJKinDcejo7O0kTv1eSvuQE34J4vyisrSkb66D iNlWll3i8GXLwqragKTvepTlrHHsMBQPSWIvDkUKHrpdgsEkq/1rNTbnTfEMWI41yCh9 H5i0bAe3CIRRXkYogkWmyWTUqlMhukMXaKlIiKlK+FtZg2XToRV/OdK/u2wF4VrqBlQG CZ/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=sw7Rc9rz4ucD78++ut2sjWWZQzvY/lT7Jcq9f6EQ2Xc=; b=P4c/wCLv7LDyVwq7rNOnsTNQ1er6QoDGmWaIbXZCPmJwFGgtRB+rwVRrbRi9ao8b4Y 1TnB0rOwEQ6x0SZJJn1SuRw9sXgCjw3/kuTnjZOK3gPNaSJzTsD1SMQ5Ilx2go/Qi/Rw LC27aWsODzTM8FfRlmW8CV6FF4cOJgRH6LI7Kx4cYxNL/iItQxFu1xu/JsveD0yaq41b dK5qnhib6SRilAnTvxInGBRef7VOcBZzHgtWULsCo16M4di0CR0Zsh1yxeqgl+qoMSyc NNgKoEWk9883IH9Y6fX4M6DbhA+RL/nRyDwS5amDz1mOHMFnjwuk5gzaIo0XEr9zxGE8 fLeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fDiSuHW0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7si8724977plq.336.2019.01.19.21.52.02; Sat, 19 Jan 2019 21:52:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fDiSuHW0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726636AbfATFsO (ORCPT + 99 others); Sun, 20 Jan 2019 00:48:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:33468 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725993AbfATFsO (ORCPT ); Sun, 20 Jan 2019 00:48:14 -0500 Received: from localhost (unknown [122.178.235.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5150C2084F; Sun, 20 Jan 2019 05:48:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547963293; bh=ITe27/+0T+eU+ne2lJHm8YUJPa7N4RN1xKp5GksztqQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fDiSuHW0t0B/3N6VkrbcFW/Uh99iFB8EDrwL6+cSMuqdU7aG4x9lFMA/rxfLor0Bv T1weyKLmoVOsHtokZVpCW20JScJfe6cqhEzcziyb0gFEsSxZV9NaTZleSXcQwnz6+6 /3XyVXP4hRjXnlqbDvfQc7k1HQp9sp6/C1IQ5wrE= Date: Sun, 20 Jan 2019 11:16:39 +0530 From: Vinod Koul To: Anders Roxell Cc: Fabio Estevam , Dan Williams , dmaengine@vger.kernel.org, linux-kernel Subject: Re: [PATCH] dma: ixm-dma: fix warning comparison of distinct pointer types Message-ID: <20190120054639.GO4635@vkoul-mobl> References: <20190110111535.11235-1-anders.roxell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15-01-19, 15:14, Anders Roxell wrote: > On Mon, 14 Jan 2019 at 22:24, Fabio Estevam wrote: > > > > Hi Anders, > > > > On Thu, Jan 10, 2019 at 9:15 AM Anders Roxell wrote: > > > > > > The warning got introduced by commit 930507c18304 ("arm64: add basic > > > Kconfig symbols for i.MX8"). Since it got enabled for arm64. The warning > > > haven't been seen before since size_t was 'unsigned int' when built on > > > arm32. > > > > > > ../drivers/dma/imx-dma.c: In function ‘imxdma_sg_next’: > > > ../include/linux/kernel.h:846:29: warning: comparison of distinct pointer types lacks a cast > > > (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) > > > ^~ > > > ../include/linux/kernel.h:860:4: note: in expansion of macro ‘__typecheck’ > > > (__typecheck(x, y) && __no_side_effects(x, y)) > > > ^~~~~~~~~~~ > > > ../include/linux/kernel.h:870:24: note: in expansion of macro ‘__safe_cmp’ > > > __builtin_choose_expr(__safe_cmp(x, y), \ > > > ^~~~~~~~~~ > > > ../include/linux/kernel.h:879:19: note: in expansion of macro ‘__careful_cmp’ > > > #define min(x, y) __careful_cmp(x, y, <) > > > ^~~~~~~~~~~~~ > > > ../drivers/dma/imx-dma.c:288:8: note: in expansion of macro ‘min’ > > > now = min(d->len, sg_dma_len(sg)); > > > ^~~ > > > > > > Rework so that we use min_t and pass in the size_t that returns the > > > minimum of two values, using the specified type. > > > > > > Signed-off-by: Anders Roxell > > > > There is a typo in the Subject: s/ixm/imx/ and the prefix should be > > dmaengine instead: > > > > dmaengine: imx-dma: fix warning comparison of distinct pointer types > > > > With that fixed: > > > > Reviewed-by: Fabio Estevam > > OK, thanks Fabio. > > Dan, do you want me to resend the patch with an updated shortlog or will > you do that when you apply the patch? applied after fixing subsystem name and driver name -- ~Vinod