include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.hpercpu.h is included by sched.h and module.h and thus ends up beingincluded when bu
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.hpercpu.h is included by sched.h and module.h and thus ends up beingincluded when building most .c files. percpu.h includes slab.h whichin turn includes gfp.h making everything defined by the two filesuniversally available and complicating inclusion dependencies.percpu.h -> slab.h dependency is about to be removed. Prepare forthis change by updating users of gfp and slab facilities include thoseheaders directly instead of assuming availability. As this conversionneeds to touch large number of source files, the following script isused as the basis of conversion. http://userweb.kernel.org/~tj/misc/slabh-sweep.pyThe script does the followings.* Scan files for gfp and slab usages and update includes such that only the necessary includes are there. ie. if only gfp is used, gfp.h, if slab is used, slab.h.* When the script inserts a new include, it looks at the include blocks and try to put the new include such that its order conforms to its surrounding. It's put in the include block which contains core kernel includes, in the same order that the rest are ordered - alphabetical, Christmas tree, rev-Xmas-tree or at the end if there doesn't seem to be any matching order.* If the script can't find a place to put a new include (mostly because the file doesn't have fitting include block), it prints out an error message indicating which .h file needs to be added to the file.The conversion was done in the following steps.1. The initial automatic conversion of all .c files updated slightly over 4000 files, deleting around 700 includes and adding ~480 gfp.h and ~3000 slab.h inclusions. The script emitted errors for ~400 files.2. Each error was manually checked. Some didn't need the inclusion, some needed manual addition while adding it to implementation .h or embedding .c file was more appropriate for others. This step added inclusions to around 150 files.3. The script was run again and the output was compared to the edits from #2 to make sure no file was left behind.4. Several build tests were done and a couple of problems were fixed. e.g. lib/decompress_*.c used malloc/free() wrappers around slab APIs requiring slab.h to be added manually.5. The script was run on all .h files but without automatically editing them as sprinkling gfp.h and slab.h inclusions around .h files could easily lead to inclusion dependency hell. Most gfp.h inclusion directives were ignored as stuff from gfp.h was usually wildly available and often used in preprocessor macros. Each slab.h inclusion directive was examined and added manually as necessary.6. percpu.h was updated not to include slab.h.7. Build test were done on the following configurations and failures were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my distributed build env didn't work with gcov compiles) and a few more options had to be turned off depending on archs to make things build (like ipr on powerpc/64 which failed due to missing writeq). * x86 and x86_64 UP and SMP allmodconfig and a custom test config. * powerpc and powerpc64 SMP allmodconfig * sparc and sparc64 SMP allmodconfig * ia64 SMP allmodconfig * s390 SMP allmodconfig * alpha SMP allmodconfig * um on x86_64 SMP allmodconfig8. percpu.h modifications were reverted so that it could be applied as a separate patch and serve as bisection point.Given the fact that I had only a couple of failures from tests on step6, I'm fairly confident about the coverage of this conversion patch.If there is a breakage, it's likely to be something in one of the archheaders which should be easily discoverable easily on most builds ofthe specific arch.Signed-off-by: Tejun Heo <tj@kernel.org>Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>Cc: Ingo Molnar <mingo@redhat.com>Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
show more ...
Merge branch 'topic/hda' into for-linus
ALSA: tea575x-tuner: fix muteFix mute state reporting in tea575x-tuner.This fixes mute function in kradio on SF64-PCR radio card.Signed-off-by: Ondrej Zary <linux@rainbow-software.org>Signed-of
ALSA: tea575x-tuner: fix muteFix mute state reporting in tea575x-tuner.This fixes mute function in kradio on SF64-PCR radio card.Signed-off-by: Ondrej Zary <linux@rainbow-software.org>Signed-off-by: Takashi Iwai <tiwai@suse.de>
ALSA: ice1712: Use bitrev8Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>Signed-off-by: Takashi Iwai <tiwai@suse.de>
ALSA: ak4113 support* complete support for ak4113* based on code for ak4114 and ak4117Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>Signed-off-by: Takashi Iwai <tiwai@suse.de>
ALSA: ak4620 support, codec regs listed in proc* complete support for ak4620* codec regs listed in proc for all codecs/chips* adding total regs for each codec* fixing nb. of steps in input atten
ALSA: ak4620 support, codec regs listed in proc* complete support for ak4620* codec regs listed in proc for all codecs/chips* adding total regs for each codec* fixing nb. of steps in input attenuation controlsSigned-off-by: Pavel Hofman <pavel.hofman@ivitera.com>Signed-off-by: Takashi Iwai <tiwai@suse.de>
V4L/DVB (10771): tea575x-tuner: convert it to V4L2 APISigned-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
ALSA: drop outdated and broken sa11xx-uda1341 driverIt depends on L3 support from 2.4 kernel (CONFIG_L3) that never gotmerged into mainline. Since there's no way to use it on any ofsupported mach
ALSA: drop outdated and broken sa11xx-uda1341 driverIt depends on L3 support from 2.4 kernel (CONFIG_L3) that never gotmerged into mainline. Since there's no way to use it on any ofsupported machines (iPaq h3100 or h3600), better drop it for now.It can be reimplemented later using ASoC infrastructure (there'salready a driver for uda1341 codec in mainline, so only CPU and machineparts need to be written).Signed-off-by: Dmitry Artamonow <mad_soft@inbox.ru>Cc: Russell King <linux@arm.linux.org.uk>Signed-off-by: Takashi Iwai <tiwai@suse.de>
V4L/DVB (10138): v4l2-ioctl: change to long return type to match unlocked_ioctl.Since internal to v4l2 the ioctl prototype is the same regardless of itbeing called through .ioctl or .unlocked_ioct
V4L/DVB (10138): v4l2-ioctl: change to long return type to match unlocked_ioctl.Since internal to v4l2 the ioctl prototype is the same regardless of itbeing called through .ioctl or .unlocked_ioctl, we need to convert it allto the long return type of unlocked_ioctl.Thanks to Jean-Francois Moine for posting an initial patch for this andthus bringing it to our attention.Cc: Jean-Francois Moine <moinejf@free.fr>Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
V4L/DVB (10135): v4l2: introduce v4l2_file_operations.Introduce a struct v4l2_file_operations for v4l2 drivers.Remove the unnecessary inode argument.Move compat32 handling (and llseek) into the
V4L/DVB (10135): v4l2: introduce v4l2_file_operations.Introduce a struct v4l2_file_operations for v4l2 drivers.Remove the unnecessary inode argument.Move compat32 handling (and llseek) into the v4l2-dev core: this is nowhandled in the v4l2 core and no longer in the drivers themselves.Note that this changeset reverts an earlier patch that changed the returntype of__video_ioctl2 from int to long. This change will be reinstatedlater in a much improved version.Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
V4L/DVB (9533): cx88: Add support for TurboSight TBS8910 DVB-S PCI cardThe card based on stv0299 or stv0288 demodulators.Signed-off-by: Igor M. Liplianin <liplianin@me.by>Signed-off-by: Mauro Ca
V4L/DVB (9533): cx88: Add support for TurboSight TBS8910 DVB-S PCI cardThe card based on stv0299 or stv0288 demodulators.Signed-off-by: Igor M. Liplianin <liplianin@me.by>Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
V4L/DVB (8788): v4l: replace video_get_drvdata(video_devdata(filp)) with video_drvdata(filp)Use the new video_drvdata(filp) function where it is safe to do so.Signed-off-by: Hans Verkuil <hverkui
V4L/DVB (8788): v4l: replace video_get_drvdata(video_devdata(filp)) with video_drvdata(filp)Use the new video_drvdata(filp) function where it is safe to do so.Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
V4L/DVB (8777): tea575x-tuner: replace video_exclusive_open/releaseMove the video_exclusive_open/release functionality into thedriver itself.Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>Sign
V4L/DVB (8777): tea575x-tuner: replace video_exclusive_open/releaseMove the video_exclusive_open/release functionality into thedriver itself.Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
ALSA: revo51: add headphone outputIt is ALSA bug #1754. D6 bit in 02 register is PW4.Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed
ALSA: revo51: add headphone outputIt is ALSA bug #1754. D6 bit in 02 register is PW4.Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ALSA: Kill snd_assert() in other placesKill snd_assert() in other places, either removed or replaced withif () with snd_BUG_ON().Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by: Jarosl
ALSA: Kill snd_assert() in other placesKill snd_assert() in other places, either removed or replaced withif () with snd_BUG_ON().Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by: Jaroslav Kysela <perex@perex.cz>
V4L/DVB (8523): v4l2-dev: remove unused type and type2 field from video_deviceThe type and type2 fields were unused and so could be removed.Instead add a vfl_type field that contains the type of t
V4L/DVB (8523): v4l2-dev: remove unused type and type2 field from video_deviceThe type and type2 fields were unused and so could be removed.Instead add a vfl_type field that contains the type of the videodevice.Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
V4L/DVB (8484): videodev: missed two more usages of the removed 'owner' field.Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
[ALSA] remove CVS keywordsThis patch removes CVS keywords that weren't updated for a long timefrom comments.Signed-off-by: Adrian Bunk <bunk@kernel.org>Signed-off-by: Takashi Iwai <tiwai@suse.d
[ALSA] remove CVS keywordsThis patch removes CVS keywords that weren't updated for a long timefrom comments.Signed-off-by: Adrian Bunk <bunk@kernel.org>Signed-off-by: Takashi Iwai <tiwai@suse.de>
[ALSA] i2c: cs8427.c use put_unaligned helperSigned-off-by: Harvey Harrison <harvey.harrison@gmail.com>Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by: Jaroslav Kysela <perex@perex.cz>
[ALSA] some fixes and cleanup for ICE1724 cards* removing the hack with NON_AKM ak4xxx type* support for card-specific flags in ak4114_stats* definition of the flags for corresponding cardsSign
[ALSA] some fixes and cleanup for ICE1724 cards* removing the hack with NON_AKM ak4xxx type* support for card-specific flags in ak4114_stats* definition of the flags for corresponding cardsSigned-off-by: Pavel Hofman <dustin@seznam.cz>Signed-off-by: Takashi Iwai <tiwai@suse.de>
[ALSA] AK4114 - listing regs in procA simple patch for listing AK4114 regs in proc.Signed-off-by: Pavel Hofman <dustin@seznam.cz>Signed-off-by: Takashi Iwai <tiwai@suse.de>
[ALSA] fm801 - Add mute support for FM-only card with FM801 PCI to tuner bridgeThis is improvement of the early support of the FM-only cards where thefm801 chip represents the PCI to tuner bridge.
[ALSA] fm801 - Add mute support for FM-only card with FM801 PCI to tuner bridgeThis is improvement of the early support of the FM-only cards where thefm801 chip represents the PCI to tuner bridge.The tuner initialization isn't included the mute on as well as mute supportvia V4L request. Proposed patch should fix this at least for 64-PCR model.Signed-off-by: Andy Shevchenko <andy@smile.org.ua>Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by: Jaroslav Kysela <perex@perex.cz>
[ALSA] Remove sound/driver.hThis header file exists only for some hacks to adapt alsa-drivertree. It's useless for building in the kernel. Let's move a fewlines in it to sound/core.h and remove
[ALSA] Remove sound/driver.hThis header file exists only for some hacks to adapt alsa-drivertree. It's useless for building in the kernel. Let's move a fewlines in it to sound/core.h and remove it.With this patch, sound/driver.h isn't removed but has just a singlecompile warning to include it. This should be really killed infuture.Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by: Jaroslav Kysela <perex@perex.cz>
[ALSA] switching rate in STAC9460 codec of Prodigy192* support for switching rate in STAC9460 - using set_rate_val of the akminfrastructure* listing all STAC9460 registers in proc* disabling mpu
[ALSA] switching rate in STAC9460 codec of Prodigy192* support for switching rate in STAC9460 - using set_rate_val of the akminfrastructure* listing all STAC9460 registers in proc* disabling mpu401 device for Prodigy192 - otherwise the currently flawed mpu401 code hangs kernel when opening the midi device* removing old unused commented-out codeSigned-off-by: Pavel Hofman <dustin@seznam.cz>Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by: Jaroslav Kysela <perex@perex.cz>
[ALSA] Check value range in ctl callbacksCheck the value ranges in ctl put callbacks properly (in the rest drivers).Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by: Jaroslav Kysela <per
[ALSA] Check value range in ctl callbacksCheck the value ranges in ctl put callbacks properly (in the rest drivers).Signed-off-by: Takashi Iwai <tiwai@suse.de>Signed-off-by: Jaroslav Kysela <perex@perex.cz>
123456