Skip to contentSkip to conversation

Fix em28xx compilation warnings

PATCH New Nicola Soranzo 1 participant 1 message Jan 15, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix em28xx compilation warnings

Fix em28xx compilation warnings.

From: Nicola Soranzo <[email protected]>

Inline ac97_return_record_select() function to fix compilation warnings like:

CC [M] /home/nicola/v4l-dvb-11a5eb383205/v4l/em28xx-audio.o
/home/nicola/v4l-dvb-11a5eb383205/v4l/em28xx.h:326: warning:
'ac97_return_record_select' defined but not used
CC [M] /home/nicola/v4l-dvb-11a5eb383205/v4l/em28xx-video.o
/home/nicola/v4l-dvb-11a5eb383205/v4l/em28xx.h:326: warning:
'ac97_return_record_select' defined but not used
...

introduced by changeset 10228.

Priority: normal

diff -ur v4l-dvb-11a5eb383205/linux/drivers/media/video/em28xx/em28xx.h v4l- dvb-new/linux/drivers/media/video/em28xx/em28xx.h
--- v4l-dvb-11a5eb383205/linux/drivers/media/video/em28xx/em28xx.h 2009-01-14
08:58:36.000000000 +0100
+++ v4l-dvb-new/linux/drivers/media/video/em28xx/em28xx.h 2009-01-15
12:54:11.000000000 +0100
@@ -322,7 +322,7 @@
EM28XX_AOUT_PCM_PHONE = 7 << 8,
};

-static int ac97_return_record_select(int a_out) +static inline int ac97_return_record_select(int a_out)
{
return (a_out & 0x700) >> 8;
}