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

From: Sudip Mukherjee
Date: Thu Aug 28 2014 - 13:54:29 EST


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)