From patchwork Fri Jun 22 08:59:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Ardelean X-Patchwork-Id: 10481537 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D947960388 for ; Fri, 22 Jun 2018 08:59:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB6C028D06 for ; Fri, 22 Jun 2018 08:59:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BFFE928D11; Fri, 22 Jun 2018 08:59:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25E3C28D06 for ; Fri, 22 Jun 2018 08:59:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751119AbeFVI74 (ORCPT ); Fri, 22 Jun 2018 04:59:56 -0400 Received: from mail-by2nam01on0049.outbound.protection.outlook.com ([104.47.34.49]:64096 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751057AbeFVI7y (ORCPT ); Fri, 22 Jun 2018 04:59:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.onmicrosoft.com; s=selector1-analog-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BLcWei0oKffosGi4sEQOMKU+OD8m808j1OcqVQFmZKU=; b=RPtz2ji05Ch25lPgBu78sFepGvE0dYKW6lSaQchxizapj6BGgctN5MYdgTyc8gE/F4tOklTIEmASk2LyLFYsWPmRvNYjxlD3pEvMcAMTQ/0UuTno2aMck4Z7ZGpkOcvjJaXoa4OJ0d5si0NzO5KEL22cX43PhJyQohf/x8nV8SE= Received: from BN6PR03CA0056.namprd03.prod.outlook.com (2603:10b6:404:4c::18) by MWHPR03MB3134.namprd03.prod.outlook.com (2603:10b6:301:3c::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.19; Fri, 22 Jun 2018 08:59:53 +0000 Received: from BL2FFO11FD021.protection.gbl (2a01:111:f400:7c09::109) by BN6PR03CA0056.outlook.office365.com (2603:10b6:404:4c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.884.19 via Frontend Transport; Fri, 22 Jun 2018 08:59:52 +0000 Authentication-Results: spf=pass (sender IP is 137.71.25.55) smtp.mailfrom=analog.com; kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=bestguesspass action=none header.from=analog.com; Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.55 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.55; helo=nwd2mta1.analog.com; Received: from nwd2mta1.analog.com (137.71.25.55) by BL2FFO11FD021.mail.protection.outlook.com (10.173.161.100) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.820.5 via Frontend Transport; Fri, 22 Jun 2018 08:59:52 +0000 Received: from NWD2HUBCAS8.ad.analog.com (nwd2hubcas8.ad.analog.com [10.64.69.108]) by nwd2mta1.analog.com (8.13.8/8.13.8) with ESMTP id w5M8xqDo012294 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 22 Jun 2018 01:59:52 -0700 Received: from zeus.spd.analog.com (10.64.82.11) by NWD2HUBCAS8.ad.analog.com (10.64.69.108) with Microsoft SMTP Server id 14.3.301.0; Fri, 22 Jun 2018 04:59:52 -0400 Received: from saturn.analog.com ([10.50.1.244]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id w5M8xoVU016039; Fri, 22 Jun 2018 04:59:50 -0400 From: Alexandru Ardelean To: CC: , Alexandru Ardelean Subject: [PATCH] iio:buffer: fix iio_dma_buffer_set_length() prototype mismatch Date: Fri, 22 Jun 2018 11:59:42 +0300 Message-ID: <20180622085942.24253-1-alexandru.ardelean@analog.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-ADIRoutedOnPrem: True X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:137.71.25.55; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(346002)(39380400002)(376002)(39860400002)(396003)(2980300002)(438002)(189003)(199004)(7696005)(5660300001)(47776003)(1076002)(51416003)(50226002)(77096007)(186003)(106002)(356003)(59450400001)(305945005)(7636002)(478600001)(26005)(6916009)(8676002)(6666003)(246002)(8936002)(126002)(50466002)(54906003)(426003)(106466001)(16586007)(476003)(44832011)(48376002)(2616005)(2351001)(336012)(107886003)(316002)(86362001)(36756003)(2906002)(53416004)(1857600001)(4326008)(486006); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB3134; H:nwd2mta1.analog.com; FPR:; SPF:Pass; LANG:en; PTR:nwd2mail10.analog.com; MX:1; A:1; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD021; 1:kHiiVEBBLP5CST1B7up/8DkiBSRr2os9DZdHU/re9F4jzvdlVBo1VuUKuy3H7gLx/td+nAbq+hv0F7L0m49BMdPYX6+Blgt9tly6KpfM3bMNxN6pSaZqIwB48uBDn30B X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: da4a76b2-ec88-4be8-7a10-08d5d81e847e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(8989114)(4534165)(4627221)(201703031133081)(201702281549075)(8990104)(5600026)(711020)(4608076)(2017052603328)(7153060); SRVR:MWHPR03MB3134; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB3134; 3:6sRlKCDNgpQhbdS3MAUnZyWJwEnatHT9WFrYoLYMIicKRsDgwSuBI2QFJ1INpam5UTizlN9pDEPTq6OmPmnw4WguQZmKeqk5wgX6GHBGmnBt1Yu9JP4wnIwvtDFBo4Wd4jgeZ16hQuLIsNDLBOkg4i+60CIi3iXld8jEozuOb6L5I8UYagX055fNf2zsqlrL6qz5l+Spme88x3J23Sn8jmpliheDLNpIXEzX0IP3KsPgEMCc4Qd8b/n1wGh0pGM7L1hq+lv7C9edGEL0hA7mMzsM+U9sLBEh2VPOAnRpRfFzrbcT1nMCi6qTOZyGWhosYQm47g8nJEAeji+Vs5ZZGMrCegIw2gDw8ELZUYbaqbc=; 25:NEAzRsrTndGIHU4BIzdqKmqtlxbaGv9k9HDoadl66b/wZeyfj3EejKa12/0RspU+glB5cbUNwg27dUmKAZIDHb3v18Xfk+poECMwYHpa8iPSQJTXv8k/QTFq/dea/aNu9DJI81424nXxo1Eg3yEu23mc1Wxy1vfATwd4xLUQfALgJxoI1TGM+lRJtKmalzGUkRa5kiCEq2ahMkN7ilKPWRNW57n4z2UbSSruPJ4l65B19crLTBo3k26o+lhexjcNQAzAj+VGjhYgzfUZySYZQwvt1v2ZDYxF+cAFXRcNy54BmpVCkuoIF1ea62b8mplwdaNsKXltCVjCxUnjR7kqiQ== X-MS-TrafficTypeDiagnostic: MWHPR03MB3134: X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB3134; 31:78Ku9TSPfrGIMkhyXyToiJLI4UPt9ktnt2Vqy+qOSkb+RoVLkJxEPG/VjC9QhWqviOXF4U0fHKRnuwyWBCIapIdI2z5pz1jHosM20Gnglk+Myer9mmVrv/ndOUllVamwHaPgEdQsFCdPt1dHjPnU7d1gVYV2gN1Hjb+nIlvB7YvdC2gBpVkDW6rvaq1fSMjMkOMFGAyuaUwzvxOsDf/m9XpbhOypMiKtJC2aTBLTKI8=; 20:FHGyJrSxXsQh91LfMv9lDrxGrjGuGwdZANshQAssma5cbKLsQPIC7PyCHSMCnZ29Ndszv+KY3tsWYoS38YL+m6oHb7h6Ac92NrhEmHME1FlHNoRP+pyjYwQi6aQFAbCZO+1E3aMjT9tfatztRpn0MdsZ3M74/oK3j6L4TI4RoYxpA6P+1AmXOg1fCTSKQ5aTu+q6wj+hqYEIj5AbBcYwnGxf/8c7d3/y9h80mUVPdnYfC3MhFtYLQkg15KwqtbOLSH5hyW/lh6wRv+6KphXauEU+o9KJR6gFsf0au8kJ5FrA+PBqNvObfVsPgQ/3H7y/I9cY/tYGis2ZV5WiXyApJAoadAI1uwnOmHWMKrBzEm0KiOgvXinjiLk5gqJIqq3IfVQ8SisJaIbcLcz6xgo199QNksii0roiWBQffy7SvV3vWqkxm27GBm/0jnVAv8u9oMKMPiL9nGlfXjw6IVNKNoGZyw8EbePkXsi3HzTyuEuggyKr9cY27eg8TJSBAzm4 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(232431446821674); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93004095)(3231254)(944501410)(52105095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:MWHPR03MB3134; BCL:0; PCL:0; RULEID:; SRVR:MWHPR03MB3134; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB3134; 4:AjUk88/2/qAOleQFhJ5PyK293bn8FUO6qNMtz9iTJ7lNbDvgadiBMbFcAOVtCrBeJkICZsFyMd7auMi0jlU19GxIKPiwzNNe1taujQ1jFCeDm8D5HyyEhiRYnHdn8cBWGchlQiK7Tt/o+XTVeyU9XgaLrBEienxLRqJt0x9WfI9NAQEpj780SSU1mkJdRGqt0UfpUlfLhjslxWypTAoInMNSfbog729crbwVvdyteXndz8Wp7CLA8NXE6mvVpBKqgw6vpGS60/LuN0UDIOiezUuxkBZh/y7B9jdCPwwrJadUIz60hxKcEJgNKr5VciwN X-Forefront-PRVS: 071156160B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR03MB3134; 23:ATCShbqMVd0xjYlhuac4h+pHb3k+fzodk8oEvhXcD?= =?us-ascii?Q?aVODTCiL5qNvdQJYGKvkVQfNLeFeKI4ztujC7ISkNer1BIiSY3zVcN3pdSBz?= =?us-ascii?Q?TjPtZjX/A7xX7ys90r3RrobZecNVbJbyz/14+BndQLGmAmWzeECp4JeFQZj3?= =?us-ascii?Q?fJLfYpD1Q+Xz6K9ZRlbO6lEsZxIKPIiIAilksnieC7B3iLi41bIv+fo3rvUL?= =?us-ascii?Q?+8HFxRGGkh/vRMFkP3uR8GuGjZZiNarF1SJ93As5LfFx4Xk47mmXA2reY2ZI?= =?us-ascii?Q?peAtW8osQkzsuokiNULmRqkVy3ILH9/UCaEU61CLMjXl9yOZCuQu9j3roB1K?= =?us-ascii?Q?xBwnYxPiVYLeLNXWhdKOvIKgGkn7MCNujftQs/ctP4RKUqeUgeQ1k8HxLtAt?= =?us-ascii?Q?fw5DyIls6j3HqFM5JhEcvX/+1Kwir+MSkZh62nxfr00MXp750ETA6Gc3Xe9h?= =?us-ascii?Q?7xpXuu5H+qDzjdUD9XhLunPKMsszoct2EfKz2iIlpay7rypIHPoeyOd8l3uG?= =?us-ascii?Q?kRi5RW2lVuwwTKKs/8Ta3rsuUFyCImVXlPRJaSSSMw2N1nnkgoiEvrSULWMw?= =?us-ascii?Q?LmeQv/wcYNY7E2gyrMl1TsXFd3EkFKK1acdTWmlJTs8Eo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og.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2018 08:59:52.5357 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: da4a76b2-ec88-4be8-7a10-08d5d81e847e X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a; Ip=[137.71.25.55]; Helo=[nwd2mta1.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB3134 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes commit c043ec1ca5ba ("iio:buffer: make length types match kfifo types"). When the length parameter's type was updated in the `iio_dma_buffer_set_length()` function, the prototype was omitted in the `include/linux/iio/buffer-dma.h` header. This causes a build error when running certain CFLAGS configurations that are a bit more pedantic. Signed-off-by: Alexandru Ardelean --- include/linux/iio/buffer-dma.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/iio/buffer-dma.h b/include/linux/iio/buffer-dma.h index 767467d886de..67c75372b691 100644 --- a/include/linux/iio/buffer-dma.h +++ b/include/linux/iio/buffer-dma.h @@ -141,7 +141,7 @@ int iio_dma_buffer_read(struct iio_buffer *buffer, size_t n, char __user *user_buffer); size_t iio_dma_buffer_data_available(struct iio_buffer *buffer); int iio_dma_buffer_set_bytes_per_datum(struct iio_buffer *buffer, size_t bpd); -int iio_dma_buffer_set_length(struct iio_buffer *buffer, int length); +int iio_dma_buffer_set_length(struct iio_buffer *buffer, unsigned int length); int iio_dma_buffer_request_update(struct iio_buffer *buffer); int iio_dma_buffer_init(struct iio_dma_buffer_queue *queue,