Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1770229ybh; Mon, 20 Jul 2020 06:52:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTBmDTFTzdDB4jKlOEW8xr6SxwHN3WGEpR+7JVae9rRLf0+5MfmhPgBrXQ/mljrqaE4L1u X-Received: by 2002:a17:906:2c18:: with SMTP id e24mr21950710ejh.335.1595253160626; Mon, 20 Jul 2020 06:52:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595253160; cv=none; d=google.com; s=arc-20160816; b=KHH4HBU13m4bgTC5ZTBRlU0d9hiw1bwdj3ve5uc369PpTkw31CsgfwC2cukn9plyNn f/wUZqJLwOWTriF/s9Ck75U4RmLQdCy+BuLexLGdyj6yMU3MlkxpZE+d1RfWq4KnGcFz e5oqPoGpD6SZgXAvYpe9QjDXY+/m9FkobaKBYgVulRj+LccIhOiQutcE8cwVzO0z+kjk FsCdyQXLP8mToziZufI7l/L9bL6v0nB8ql3qtjI7FTWlvdVRHBPHxuhcBgXdMrt/6MFH to46KXJowTu3kngLZ/s+AqGM9IZ9icSUP4fKrYgGhZKyPXfaKp7EkPrOzteHS90jThUc cwxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=8FTiLpvPCyzfCf64PKaIWBnPAuF1qNLISeQJE+OJKek=; b=J2z4gDdhgXOSwshNVjhIFsLhTfx8r0WnIQufBeruDp8vxEmb3eFqh7zchH0pvoDSSl jDrv5fR8zgbDxWYrFUuBgMvmOIgRgXW3qJKF2SE3Da+ZGZBkMj98IdsXjUEfnrLIj3bO 2wIA8ZvaVdETd/94uL2YYpC67iffkw7ndq7FzfCMRLIDt5ddMWk+0tfDVKcE+R6jS8kS 9xwZa6sgSyhC2V1sXfFhC29IIbqS6z4TWYPeOBxoBO5eUmU9b3gz6Bizy1/lEjxrzNmC sMm7q11DDIB3hPSDxkDkc0tXH66ZZzD3jsCouAGxTDxR1M57V8j4nKbas4SelxfFwzp7 dhEg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a19si10413443eje.150.2020.07.20.06.52.16; Mon, 20 Jul 2020 06:52:40 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726483AbgGTNtx (ORCPT + 99 others); Mon, 20 Jul 2020 09:49:53 -0400 Received: from mx0a-00128a01.pphosted.com ([148.163.135.77]:9252 "EHLO mx0a-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725936AbgGTNtx (ORCPT ); Mon, 20 Jul 2020 09:49:53 -0400 Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06KDimtX000539; Mon, 20 Jul 2020 09:49:40 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com with ESMTP id 32cv13vhqr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Jul 2020 09:49:40 -0400 Received: from SCSQMBX10.ad.analog.com (scsqmbx10.ad.analog.com [10.77.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 06KDncjp061593 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Mon, 20 Jul 2020 09:49:38 -0400 Received: from SCSQMBX10.ad.analog.com (10.77.17.5) by SCSQMBX10.ad.analog.com (10.77.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Mon, 20 Jul 2020 06:49:37 -0700 Received: from zeus.spd.analog.com (10.64.82.11) by SCSQMBX10.ad.analog.com (10.77.17.5) with Microsoft SMTP Server id 15.1.1779.2 via Frontend Transport; Mon, 20 Jul 2020 06:49:37 -0700 Received: from localhost.localdomain ([10.48.65.12]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 06KDnYqS003178; Mon, 20 Jul 2020 09:49:34 -0400 From: Alexandru Ardelean To: , CC: , , Alexandru Ardelean Subject: [PATCH v2] iio: trigger: make stub functions static inline Date: Mon, 20 Jul 2020 16:51:33 +0300 Message-ID: <20200720135133.72154-1-alexandru.ardelean@analog.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200714142456.67054-1-alexandru.ardelean@analog.com> References: <20200714142456.67054-1-alexandru.ardelean@analog.com> MIME-Version: 1.0 Content-Type: text/plain X-ADIRoutedOnPrem: True X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-07-20_09:2020-07-20,2020-07-20 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 phishscore=0 clxscore=1015 adultscore=0 suspectscore=0 mlxlogscore=999 impostorscore=0 priorityscore=1501 malwarescore=0 bulkscore=0 lowpriorityscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007200096 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lars-Peter Clausen Make sure that the trigger function stubs are all static inline. Otherwise we might see compiler warnings about declared but unused functions. Fixes 77712e5fbe2e4: ("Staging: iio: Staticise non-exported functions") Signed-off-by: Lars-Peter Clausen Signed-off-by: Alexandru Ardelean --- Changelog v1 -> v2: * fix commit description & title * added proper Fixes tag drivers/iio/iio_core_trigger.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/iio_core_trigger.h b/drivers/iio/iio_core_trigger.h index 9d1a92cc6480..374816bc3e73 100644 --- a/drivers/iio/iio_core_trigger.h +++ b/drivers/iio/iio_core_trigger.h @@ -30,7 +30,7 @@ int iio_trigger_detach_poll_func(struct iio_trigger *trig, * iio_device_register_trigger_consumer() - set up an iio_dev to use triggers * @indio_dev: iio_dev associated with the device that will consume the trigger **/ -static int iio_device_register_trigger_consumer(struct iio_dev *indio_dev) +static inline int iio_device_register_trigger_consumer(struct iio_dev *indio_dev) { return 0; } @@ -39,7 +39,7 @@ static int iio_device_register_trigger_consumer(struct iio_dev *indio_dev) * iio_device_unregister_trigger_consumer() - reverse the registration process * @indio_dev: iio_dev associated with the device that consumed the trigger **/ -static void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev) +static inline void iio_device_unregister_trigger_consumer(struct iio_dev *indio_dev) { } -- 2.17.1