diff mbox series

[1/2] selftests: Use lirc.h from kernel tree, not from system

Message ID dad2fab452d98aaadea210807f9e0545a7814b32.1547738495.git.sean@mess.org (mailing list archive)
State New, archived
Headers show
Series rcmm with minor tweaks and selftest | expand

Commit Message

Sean Young Jan. 17, 2019, 3:29 p.m. UTC
When the system lirc.h is older than v4.16, you will get errors like:

ir_loopback.c:32:16: error: field ‘proto’ has incomplete type
  enum rc_proto proto;

Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Sean Young <sean@mess.org>
---
 tools/testing/selftests/ir/Makefile | 2 ++
 1 file changed, 2 insertions(+)

Comments

shuah Jan. 22, 2019, 3:51 p.m. UTC | #1
On 1/17/19 8:29 AM, Sean Young wrote:
> When the system lirc.h is older than v4.16, you will get errors like:
> 
> ir_loopback.c:32:16: error: field ‘proto’ has incomplete type
>    enum rc_proto proto;
> 
> Cc: Shuah Khan <shuah@kernel.org>
> Signed-off-by: Sean Young <sean@mess.org>
> ---
>   tools/testing/selftests/ir/Makefile | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/tools/testing/selftests/ir/Makefile b/tools/testing/selftests/ir/Makefile
> index f4ba8eb84b95..ad06489c22a5 100644
> --- a/tools/testing/selftests/ir/Makefile
> +++ b/tools/testing/selftests/ir/Makefile
> @@ -1,5 +1,7 @@
>   # SPDX-License-Identifier: GPL-2.0
>   TEST_PROGS := ir_loopback.sh
>   TEST_GEN_PROGS_EXTENDED := ir_loopback
> +APIDIR := ../../../include/uapi
> +CFLAGS += -Wall -O2 -I$(APIDIR)
>   
>   include ../lib.mk
> 

Thanks for the fix. I can take this through kselftest tree if
there are no dependencies on any media patches. It looks that
way, just confirming. It will be very likely for rc5.

thanks,
-- Shuah
Sean Young Jan. 22, 2019, 4:47 p.m. UTC | #2
On Tue, Jan 22, 2019 at 08:51:01AM -0700, shuah wrote:
> On 1/17/19 8:29 AM, Sean Young wrote:
> > When the system lirc.h is older than v4.16, you will get errors like:
> > 
> > ir_loopback.c:32:16: error: field ‘proto’ has incomplete type
> >    enum rc_proto proto;
> > 
> > Cc: Shuah Khan <shuah@kernel.org>
> > Signed-off-by: Sean Young <sean@mess.org>
> > ---
> >   tools/testing/selftests/ir/Makefile | 2 ++
> >   1 file changed, 2 insertions(+)
> > 
> > diff --git a/tools/testing/selftests/ir/Makefile b/tools/testing/selftests/ir/Makefile
> > index f4ba8eb84b95..ad06489c22a5 100644
> > --- a/tools/testing/selftests/ir/Makefile
> > +++ b/tools/testing/selftests/ir/Makefile
> > @@ -1,5 +1,7 @@
> >   # SPDX-License-Identifier: GPL-2.0
> >   TEST_PROGS := ir_loopback.sh
> >   TEST_GEN_PROGS_EXTENDED := ir_loopback
> > +APIDIR := ../../../include/uapi
> > +CFLAGS += -Wall -O2 -I$(APIDIR)
> >   include ../lib.mk
> > 
> 
> Thanks for the fix. I can take this through kselftest tree if
> there are no dependencies on any media patches. It looks that
> way, just confirming. It will be very likely for rc5.

There are no dependencies on media patches. Thank you very much!


Sean
diff mbox series

Patch

diff --git a/tools/testing/selftests/ir/Makefile b/tools/testing/selftests/ir/Makefile
index f4ba8eb84b95..ad06489c22a5 100644
--- a/tools/testing/selftests/ir/Makefile
+++ b/tools/testing/selftests/ir/Makefile
@@ -1,5 +1,7 @@ 
 # SPDX-License-Identifier: GPL-2.0
 TEST_PROGS := ir_loopback.sh
 TEST_GEN_PROGS_EXTENDED := ir_loopback
+APIDIR := ../../../include/uapi
+CFLAGS += -Wall -O2 -I$(APIDIR)
 
 include ../lib.mk