Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp322530ybg; Sun, 26 Jul 2020 05:45:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMNw0qdIDotM6DgQOcfygQe6cXzAJcYILnmkOj3qaPHzFANTK2TzO6LVbkpt8qFfkNvQYE X-Received: by 2002:a50:d4cc:: with SMTP id e12mr5950828edj.143.1595767553448; Sun, 26 Jul 2020 05:45:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595767553; cv=none; d=google.com; s=arc-20160816; b=QwRH2Dn+3o+M64dieysQaKjnSFfJDBQdFp1geh59Zp2389okEebqNGDLe/fVL9EIP+ kkexVoaKu+V5gg5PnYiObLv3QA0Ycy5PLTgaxg8VUoNL38kV5tnX/3/IVwaTGbkIt1fm AU+9DJsB3HxPqNvcDZDVA7MqIG7K+kvmJuCQID9ruR3EfgL4vs7fSX8iNdfcaMVk5Ff3 62MgRKKS6OFoBuyCm/UdlxII8DBnSO0axPohzswIF4HhgZJTG4su07n5rQ9MoFOr3xg8 CN74lvDZ0kf6RCGBiuC1gLaKW9f67NrKM1F6EgkuLc6rtZCT3KLBzdKekhGUurDxObep fcvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=e+Ro9qEI6AyWRi4eIuMD74bKYBfhn/pGYIO+bQw8Jns=; b=ufYFtH5odlCRMEn+GOZ0iw3H5kk8n/FTVHvRCoCI0Mod3ryx0PLs4gUsYWOSx9yz1M OwimovHTrdaAEVd1/caz8DQLCbW2ytLBzt1DJKSks3VlmUC+J1ZCNZSUl5qCQtnKXCnO DVVN77v/fdh3oDw4v8iMob5jw0mvQwPEz4/fSWHlob3BQlWVd/8deHHmwXCCOk/85BUx 1vjXCMCRk3bqK6zWwzPxLkj+P/+K8Ca9Ql0p7kvHNq/riJfVxn+HkNOlwDpfUiIWqUPQ dbwCtegrodqeHgFZPFxn9wc209+2tDc6ewTtBWAFDzIKsPtBz6+fnNLuRb0CsUrrJgDK IKYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="HSaFUNV/"; 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 ds15si5118247ejc.463.2020.07.26.05.45.31; Sun, 26 Jul 2020 05:45:53 -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="HSaFUNV/"; 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 S1727866AbgGZMnI (ORCPT + 99 others); Sun, 26 Jul 2020 08:43:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:44438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727038AbgGZMnH (ORCPT ); Sun, 26 Jul 2020 08:43:07 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (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 58F9B2076A; Sun, 26 Jul 2020 12:43:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595767387; bh=rD1nqH0BQds6In7swJllLJX+GDj9Q+kPi3fN2kFuZg8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HSaFUNV/4NLoHCg1VodFMbHzZKRFNJ8jqhFlOQEO5M8+Zzs4o9MdrZKnoFbd7j5Ng Tp76SmsyRvOaQFTy8bXfK3M6jyjApUnHqf8WxmHYgtvyDqqdwSqN7KHATmljMpReFZ I6hpv13/ZeOOtA8NmbJCTeCFFyhQqN7pfQzzGAmU= Date: Sun, 26 Jul 2020 13:43:03 +0100 From: Jonathan Cameron To: Alexandru Ardelean Cc: , , Subject: Re: [PATCH v2] iio: trigger: make stub functions static inline Message-ID: <20200726134303.35c01f07@archlinux> In-Reply-To: <20200720135133.72154-1-alexandru.ardelean@analog.com> References: <20200714142456.67054-1-alexandru.ardelean@analog.com> <20200720135133.72154-1-alexandru.ardelean@analog.com> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 20 Jul 2020 16:51:33 +0300 Alexandru Ardelean wrote: > 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 As it's only warning suppression I'm not going to rush this one. applied to the togreg branch of iio.git Thanks, Jonathan > --- > > 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) > { > } >