Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp57585pxx; Wed, 28 Oct 2020 18:04:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxToyBto8nUyccvuJ8ofBRsioeOolKRNA0XNBFZ6VmwaecwBuCtwfX9e31xB0XOxYYWrzWv X-Received: by 2002:a17:906:1a07:: with SMTP id i7mr1660500ejf.473.1603933462477; Wed, 28 Oct 2020 18:04:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603933462; cv=none; d=google.com; s=arc-20160816; b=knvfdgSaSMSLH5SFDJDXsjU5U6ucgJgwFeYuRj3akATb8vTT7/16RT2Aaj9A8s5gn8 cNiXgbm29e0kEDEOdN4ZTyzHksUqiuBdtyb3Md/t70K9WPjiG5P2rbSYuRbyrFbzcW/D GFXyr9V8IY9KyFJTm59BzCoXL/oAA3HyBYOg4F4fNZoMwRSw/XrUcjWEHTnU9LW7Hc3z yWaUeebaWQ65nWEvGy8vJ0nsjRrwdB3Hu5MOGNGanfwbfSn+JOes/DV+dpsK4KLHmlJJ v0mhNMYNjslcGCJEiFNe+IUB7HUPmLDQ3tsd1d9M5ZOf1BxZ8M75WuUBf6u6hocm8bld t2Bg== 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=xpFAgi+N4E60B+pOg8sgdYVtKncWEJTcx6nkb7c2s3U=; b=KqD8S63H+0bpyfqi+1nUceH8AcViGIU/7MXE0YyaZmJSBksor5ICLowi3vRzBuCOOa M4Pad/sFdZp5BI1lExOkmYOqp8wlPi4uQzaQWr/MGzTcB5gieOhExmpVWqIKQ1mGrTpi QCVFcwukzWSBlfNiKjMwaHyr+ZD4vGXUbqFk1Wo6NDfGgBJ4lJaHj7mgAaGE6VYf/s1A KA04mmMIQJ8sc/4U7jcLTgaOB9SzI6Cz/Z7+KXWYUyGy4G9E0x5lLbnaeJer2ukpzbjd PXXhE73qaNi9lfxRre0vWoStMoisC76MZ2dfA/bA0vn8UedKrULb7zcli8MLpKGEzxzO +6aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HP0BdWTB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id le9si750719ejb.208.2020.10.28.18.04.00; Wed, 28 Oct 2020 18:04:22 -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=@kernel.org header.s=default header.b=HP0BdWTB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732100AbgJ1WSb (ORCPT + 99 others); Wed, 28 Oct 2020 18:18:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:60548 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731747AbgJ1WRo (ORCPT ); Wed, 28 Oct 2020 18:17:44 -0400 Received: from localhost (unknown [122.171.163.58]) (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 4968E207DE; Wed, 28 Oct 2020 05:52:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603864339; bh=P7c4bOTUqJL1K3sIAdeq9Skrg7YWtzHj1bj36iol3sk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HP0BdWTBW0SRlhwiC8W3xnh0G23DSa3UhTs++DhWbFh4ttKkggCPSdzX/jeNrF/nh XA6DKIuD5rSgt8JUOiNSwlo7lHZi4nF1jifrIAhHy0jWbrjbyjbEzoYczmbi/aueNG JHplevZhmwuBaGqPal8B1iKgMNjRrPBxdNVbIkr8= Date: Wed, 28 Oct 2020 11:22:14 +0530 From: Vinod Koul To: Arnd Bergmann Cc: Peter Ujfalusi , Grygorii Strashko , Arnd Bergmann , Dan Williams , Yu Kuai , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dmaengine: ti: k3-udma: fix -Wenum-conversion warning Message-ID: <20201028055214.GG3550@vkoul-mobl> References: <20201026160123.3704531-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201026160123.3704531-1-arnd@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26-10-20, 17:01, Arnd Bergmann wrote: > From: Arnd Bergmann > > gcc warns about a mismatch argument type when passing > 'false' into a function that expects an enum: > > drivers/dma/ti/k3-udma-private.c: In function 'xudma_tchan_get': > drivers/dma/ti/k3-udma-private.c:86:34: warning: implicit conversion from 'enum ' to 'enum udma_tp_level' [-Wenum-conversion] > 86 | return __udma_reserve_##res(ud, false, id); \ > | ^~~~~ > drivers/dma/ti/k3-udma-private.c:95:1: note: in expansion of macro 'XUDMA_GET_PUT_RESOURCE' > 95 | XUDMA_GET_PUT_RESOURCE(tchan); > | ^~~~~~~~~~~~~~~~~~~~~~ > > In this case, false has the same numerical value as > UDMA_TP_NORMAL, so passing that is most likely the correct > way to avoid the warning without changing the behavior. Applied, thanks -- ~Vinod