Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9175278ybl; Fri, 17 Jan 2020 07:31:59 -0800 (PST) X-Google-Smtp-Source: APXvYqwutR9YEHTlXggFHc/zXwkILM4cpR8ZYPW2xi41toyoXS8rKrvmAeGgm6t9VJUgUAw8tnDB X-Received: by 2002:aca:d985:: with SMTP id q127mr3670940oig.132.1579275119197; Fri, 17 Jan 2020 07:31:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579275119; cv=none; d=google.com; s=arc-20160816; b=x6feWnErCcOjA2Fx5PR1Oh3+eh8Zpo6zfwFsXenQSg530/Q2ZTtZBAe1U/7z++Yre6 mzt0Kq0+yR7udNhKF4ngzym4ds8Yy3HKmSVkRoNIpYrZr8aDEjgmMJZlVq6D4PUMxmvQ RkkIVsJrEws1Xf1LCd0ApF8qxDbBzMQWEw/ZYIa3+JK5oP0/AlHtL+LpcMOnZpcBjv+v kSB4/l89oWCB2Kqwne14QwlXaHAYxQ7+bIZunrZfHgBASNWOBbNnEoYHk1bMHEgpQIx5 d3ck83gmNEr0vFVPGfxFVFCv4riykeqNJyu1tHSE9fcX3M7RCFNHnAUYRjjet8xcafQV CLAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=XpVHop7Ib99Rtoc6iOpyaFA0QBTARgab2L+E8n0YqVc=; b=SbejY+WqcR1SEGQ37WF/OKCfwNcHtF7n95JqRU+8CtvbIYz5csLJgjcB8vLJK6luLp UTzN7J5+2DtmWFUBYs79j99yLyav3Ti/RjgMEJtNb4ljraiTa/L4pjmgmqIs6WcNlRmL R4ncSjI48JeY330AbApB1GWDLikZnUa0+OPzDLoFP1hdoI/YiJ63v2JpGDHRUh6tJwiE bsAhCfcT2AUQadM3/Xq7jI8lfi0rhPt3hHHfSacFHuXylA9BZS1fcZ6iHtFzTjWNWmj7 LyzEfxu1Uxb9Lqk8U6rDMOhBOBDQj77OJDZwzzaStKDmZPmm8quhkZd+75+hddksXPpg G18w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6si17846468otg.248.2020.01.17.07.31.47; Fri, 17 Jan 2020 07:31:59 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729214AbgAQP3p (ORCPT + 99 others); Fri, 17 Jan 2020 10:29:45 -0500 Received: from andre.telenet-ops.be ([195.130.132.53]:45348 "EHLO andre.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728884AbgAQP3l (ORCPT ); Fri, 17 Jan 2020 10:29:41 -0500 Received: from ramsan ([84.195.182.253]) by andre.telenet-ops.be with bizsmtp id rTVe210025USYZQ01TVeB5; Fri, 17 Jan 2020 16:29:38 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1isTZ3-0002FC-Va; Fri, 17 Jan 2020 16:29:37 +0100 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1isTZ3-00087f-Uc; Fri, 17 Jan 2020 16:29:37 +0100 From: Geert Uytterhoeven To: Vinod Koul , Dan Williams Cc: Lars-Peter Clausen , Matt Porter , Arnd Bergmann , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 2/3] dmaengine: Remove dma_request_slave_channel_compat() wrapper Date: Fri, 17 Jan 2020 16:29:32 +0100 Message-Id: <20200117152933.31175-3-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200117152933.31175-1-geert+renesas@glider.be> References: <20200117152933.31175-1-geert+renesas@glider.be> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At its original introduction, dma_request_slave_channel_compat() used a wrapper, to accommodate filter functions that modify the mask passed. Filter functions can no longer modify masks, and the mask parameter was made const in commit a53e28da574a40bc ("dma: Make the 'mask' parameter of __dma_request_channel const") consecutively. Hence remove the wrapper, and rename __dma_request_slave_channel_compat() to dma_request_slave_channel_compat(), to get rid of one more function name starting with a double underscore. Signed-off-by: Geert Uytterhoeven --- include/linux/dmaengine.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index 0e486bb224c5e6ce..8318645ddc1289c9 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h @@ -1415,11 +1415,9 @@ struct dma_chan *dma_get_slave_channel(struct dma_chan *chan); struct dma_chan *dma_get_any_slave_channel(struct dma_device *device); #define dma_request_channel(mask, x, y) \ __dma_request_channel(&(mask), x, y, NULL) -#define dma_request_slave_channel_compat(mask, x, y, dev, name) \ - __dma_request_slave_channel_compat(&(mask), x, y, dev, name) static inline struct dma_chan -*__dma_request_slave_channel_compat(const dma_cap_mask_t *mask, +*dma_request_slave_channel_compat(const dma_cap_mask_t mask, dma_filter_fn fn, void *fn_param, struct device *dev, const char *name) { @@ -1432,6 +1430,6 @@ static inline struct dma_chan if (!fn || !fn_param) return NULL; - return __dma_request_channel(mask, fn, fn_param, NULL); + return __dma_request_channel(&mask, fn, fn_param, NULL); } #endif /* DMAENGINE_H */ -- 2.17.1