Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp767570imm; Tue, 15 May 2018 08:54:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq8JP3jPflOfl3gKfIa2PZYpzLMMo5lI6NaO5lsKCqLm20zbq0flyEpYN24x208s9YC7XB6 X-Received: by 2002:a62:dc4e:: with SMTP id t75-v6mr15579589pfg.139.1526399661726; Tue, 15 May 2018 08:54:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526399661; cv=none; d=google.com; s=arc-20160816; b=YijoM1qeuvKNjRyP+IdiWXY57LZaRsfPhdrAPSo/kdaC4sdQaKdezSTfvg2guH1Ajv +bNCS49LTu2GllnsjDJo2RFlw2KbCulbAHLLX8AcZZqpWAMAUMnDOxlOEzzuEOxiYu0Z xhx7oVRUiHpJzsyPCAHvxh5+QbmMhcoT4H0+FPV7ydTG6iVZFVoctW/xUs1wljUj0BWu CCrNGoKEyZYxVU+rcnr5rEhSxsgfQcMhahfHazbZYkZMzYg35y2anmxpZ6xvqbfhRrBf zmSIF9d8yM94Mm2bOhYavkttHcycIRGb3HwMH05cuSE8v0M2IKaOLj9qVcsfBFw0gmIX GJOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=xIe0PEcTeOznd133Pwx/VD54Pu6XGdT9wjrQUMPNWmQ=; b=QhwJqg6WXY5JxzDObaGQvnjnB4v5HXyjAAo4RsP8zzaxx21NKio0Eezq0yo+xn8IZZ 88N26nEOe1gTSgUsK07nkuxHUCYCeB0X8UbN7ftwUMo0+S8zRTDQFmCYPpPYyT9APr/D eV45hjQpXiYHZfpFn6keHmVB/3rUlF3bjfM608mZUbp6f6y0aDgXwsvHlbQ7hK6q1BW/ CfTc64drFiIGYpziImh7RoZkrQRIjq2vmnkcCL32fOR0um1TRxGK29Zg8xzchtffytE8 v17DSMpcCkY2S4GWBPpvgBgBtTF0yZUCUXV7bV6m91nZxkLH78O6G6xXjLR8p4BqM6P/ qRGA== 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 w73-v6si342310pfd.19.2018.05.15.08.54.07; Tue, 15 May 2018 08:54:21 -0700 (PDT) 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 S1754171AbeEOPUI (ORCPT + 99 others); Tue, 15 May 2018 11:20:08 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:4122 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752425AbeEOPUG (ORCPT ); Tue, 15 May 2018 11:20:06 -0400 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w4FFJ4rP004083; Tue, 15 May 2018 17:19:24 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2hystn2vw6-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 15 May 2018 17:19:24 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 111003A; Tue, 15 May 2018 15:19:23 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node3.st.com [10.75.127.15]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D666C5184; Tue, 15 May 2018 15:19:22 +0000 (GMT) Received: from localhost (10.75.127.45) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 15 May 2018 17:19:21 +0200 From: Fabrice Gasnier To: CC: , , , , , , , , , , Subject: [PATCH] iio: adc: stm32-dfsdm: include stm32-dfsdm-adc.h Date: Tue, 15 May 2018 17:19:17 +0200 Message-ID: <1526397557-31389-1-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG5NODE3.st.com (10.75.127.15) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-15_04:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warnings: CHECK drivers/iio/adc/stm32-dfsdm-adc.c symbol 'stm32_dfsdm_get_buff_cb' was not declared. Should it be static? symbol 'stm32_dfsdm_release_buff_cb' was not declared. Should it be static? BTW, move interrupt.h to sort headers alphabetically. Signed-off-by: Fabrice Gasnier --- drivers/iio/adc/stm32-dfsdm-adc.c | 4 ++-- include/linux/iio/adc/stm32-dfsdm-adc.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/stm32-dfsdm-adc.c b/drivers/iio/adc/stm32-dfsdm-adc.c index 1b78bec..31462ae 100644 --- a/drivers/iio/adc/stm32-dfsdm-adc.c +++ b/drivers/iio/adc/stm32-dfsdm-adc.c @@ -8,11 +8,11 @@ #include #include -#include +#include #include #include -#include #include +#include #include #include #include diff --git a/include/linux/iio/adc/stm32-dfsdm-adc.h b/include/linux/iio/adc/stm32-dfsdm-adc.h index e7dc7a5..0da298b 100644 --- a/include/linux/iio/adc/stm32-dfsdm-adc.h +++ b/include/linux/iio/adc/stm32-dfsdm-adc.h @@ -9,6 +9,8 @@ #ifndef STM32_DFSDM_ADC_H #define STM32_DFSDM_ADC_H +#include + int stm32_dfsdm_get_buff_cb(struct iio_dev *iio_dev, int (*cb)(const void *data, size_t size, void *private), -- 1.9.1