linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Denis Ciocca <denis.ciocca@st.com>, Arnd Bergmann <arnd@arndb.de>
Cc: Hartmut Knaack <knaack.h@gmx.de>,
	Lars-Peter Clausen <lars@metafoo.de>,
	Peter Meerwald <pmeerw@pmeerw.net>,
	Giuseppe BARBA <giuseppe.barba@st.com>,
	Linus Walleij <linus.walleij@linaro.org>,
	"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] iio: st_magn: always define ST_MAGN_TRIGGER_SET_STATE
Date: Sun, 3 Apr 2016 10:57:22 +0100	[thread overview]
Message-ID: <5700E902.5050705@kernel.org> (raw)
In-Reply-To: <20160330063353.GA6253@beicxl1122>

On 30/03/16 07:33, Denis Ciocca wrote:
> Hi Arnd,
> 
> yup, my fault. Thanks.
> 
> Acked-by: Denis Ciocca <denis.ciocca@st.com>
Applied to my fixes-togreg-post-rc1 branch and marked for stable.

Thanks,

Jonathan
> 
> 
> On |29 Mar 16 @ 22:27|, Arnd Bergmann wrote:
>> When CONFIG_IIO_TRIGGER is enabled but CONFIG_IIO_BUFFER is
>> not, we get a build error in the st_magn driver:
>>
>> drivers/iio/magnetometer/st_magn_core.c:573:23: error: 'ST_MAGN_TRIGGER_SET_STATE' undeclared here (not in a function)
>>   .set_trigger_state = ST_MAGN_TRIGGER_SET_STATE,
>>                        ^~~~~~~~~~~~~~~~~~~~~~~~~
>>
>> Apparently, this ST_MAGN_TRIGGER_SET_STATE macro was meant to
>> be set to NULL when the definition is not available because
>> st_magn_buffer.c is not compiled, but the alternative definition
>> was not included in the original patch. This adds it.
>>
>> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
>> Fixes: 74f5683f35fe ("iio: st_magn: Add irq trigger handling")
>> ---
>>  drivers/iio/magnetometer/st_magn.h | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/iio/magnetometer/st_magn.h b/drivers/iio/magnetometer/st_magn.h
>> index 06a4d9c35581..9daca4681922 100644
>> --- a/drivers/iio/magnetometer/st_magn.h
>> +++ b/drivers/iio/magnetometer/st_magn.h
>> @@ -44,6 +44,7 @@ static inline int st_magn_allocate_ring(struct iio_dev *indio_dev)
>>  static inline void st_magn_deallocate_ring(struct iio_dev *indio_dev)
>>  {
>>  }
>> +#define ST_MAGN_TRIGGER_SET_STATE NULL
>>  #endif /* CONFIG_IIO_BUFFER */
>>  
>>  #endif /* ST_MAGN_H */
>> -- 
>> 2.7.0
>>


      reply	other threads:[~2016-04-03  9:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-29 20:27 [PATCH] iio: st_magn: always define ST_MAGN_TRIGGER_SET_STATE Arnd Bergmann
2016-03-30  6:33 ` Denis Ciocca
2016-04-03  9:57   ` Jonathan Cameron [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5700E902.5050705@kernel.org \
    --to=jic23@kernel.org \
    --cc=arnd@arndb.de \
    --cc=denis.ciocca@st.com \
    --cc=giuseppe.barba@st.com \
    --cc=knaack.h@gmx.de \
    --cc=lars@metafoo.de \
    --cc=linus.walleij@linaro.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pmeerw@pmeerw.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).