Subject: Re: randconfig build error with next-20140828, in drivers/media/radio/radio-miropcm20.c

From: Sudip Mukherjee <[email-masked]>
Date: Thu, 28 Aug 2014 23:23:59 +0530

On Thu, Aug 28, 2014 at 09:17:14AM -0700, Jim Davis wrote:
> Building with the attached random configuration file,
> 
>  CC [M]  drivers/media/radio/radio-miropcm20.o
> drivers/media/radio/radio-miropcm20.c: In function ‘rds_waitread’:
> drivers/media/radio/radio-miropcm20.c:90:3: error: implicit
> declaration of function ‘inb’ [-Werror=implicit-function-declaration]
>    byte = inb(aci->aci_port + ACI_REG_RDS);
>    ^
> drivers/media/radio/radio-miropcm20.c: In function ‘rds_rawwrite’:
> drivers/media/radio/radio-miropcm20.c:106:3: error: implicit
> declaration of function ‘outb’ [-Werror=implicit-function-declaration]
>    outb(byte, aci->aci_port + ACI_REG_RDS);
>    ^
> cc1: some warnings being treated as errors
> make[3]: *** [drivers/media/radio/radio-miropcm20.o] Error 1
> make[2]: *** [drivers/media/radio] Error 2
> make[1]: *** [drivers/media] Error 2

Hi,
Can you please try the attached patch , for me it solved the error/

thanks
sudip

diff --git a/drivers/media/radio/radio-miropcm20.c b/drivers/media/radio/radio-miropcm20.c
index 998919e..3309f7c 100644
--- a/drivers/media/radio/radio-miropcm20.c
+++ b/drivers/media/radio/radio-miropcm20.c
@@ -36,6 +36,7 @@
 #include <media/v4l2-fh.h>
 #include <media/v4l2-event.h>
 #include <sound/aci.h>
+#include<linux/io.h>
 
 #define RDS_DATASHIFT          2   /* Bit 2 */
 #define RDS_DATAMASK        (1 << RDS_DATASHIFT)