Linus Torvalds
168fe32a07
Merge branch 'misc.poll' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
...
Pull poll annotations from Al Viro:
"This introduces a __bitwise type for POLL### bitmap, and propagates
the annotations through the tree. Most of that stuff is as simple as
'make ->poll() instances return __poll_t and do the same to local
variables used to hold the future return value'.
Some of the obvious brainos found in process are fixed (e.g. POLLIN
misspelled as POLL_IN). At that point the amount of sparse warnings is
low and most of them are for genuine bugs - e.g. ->poll() instance
deciding to return -EINVAL instead of a bitmap. I hadn't touched those
in this series - it's large enough as it is.
Another problem it has caught was eventpoll() ABI mess; select.c and
eventpoll.c assumed that corresponding POLL### and EPOLL### were
equal. That's true for some, but not all of them - EPOLL### are
arch-independent, but POLL### are not.
The last commit in this series separates userland POLL### values from
the (now arch-independent) kernel-side ones, converting between them
in the few places where they are copied to/from userland. AFAICS, this
is the least disruptive fix preserving poll(2) ABI and making epoll()
work on all architectures.
As it is, it's simply broken on sparc - try to give it EPOLLWRNORM and
it will trigger only on what would've triggered EPOLLWRBAND on other
architectures. EPOLLWRBAND and EPOLLRDHUP, OTOH, are never triggered
at all on sparc. With this patch they should work consistently on all
architectures"
* 'misc.poll' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (37 commits)
make kernel-side POLL... arch-independent
eventpoll: no need to mask the result of epi_item_poll() again
eventpoll: constify struct epoll_event pointers
debugging printk in sg_poll() uses %x to print POLL... bitmap
annotate poll(2) guts
9p: untangle ->poll() mess
->si_band gets POLL... bitmap stored into a user-visible long field
ring_buffer_poll_wait() return value used as return value of ->poll()
the rest of drivers/*: annotate ->poll() instances
media: annotate ->poll() instances
fs: annotate ->poll() instances
ipc, kernel, mm: annotate ->poll() instances
net: annotate ->poll() instances
apparmor: annotate ->poll() instances
tomoyo: annotate ->poll() instances
sound: annotate ->poll() instances
acpi: annotate ->poll() instances
crypto: annotate ->poll() instances
block: annotate ->poll() instances
x86: annotate ->poll() instances
...
2018-01-30 17:58:07 -08:00
..
ac97
ALSA: ac97: add an ac97 bus
2017-09-04 18:24:56 +01:00
ac97_codec.h
ALSA: ac97: split out the generic ac97 registers
2017-09-04 18:24:56 +01:00
aci.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
ad1816a.h
ALSA: ad1816a: Remove always NULL parameters
2015-01-02 16:26:20 +01:00
ad1843.h
adau1373.h
aess.h
ak4xxx-adda.h
ak4113.h
ALSA: ak411x: Use array instead of offsetof()
2017-05-17 07:13:03 +02:00
ak4114.h
ALSA: ak411x: Use array instead of offsetof()
2017-05-17 07:13:03 +02:00
ak4117.h
ALSA: ak411x: Use array instead of offsetof()
2017-05-17 07:13:03 +02:00
ak4531_codec.h
ak4641.h
alc5623.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
asequencer.h
asound.h
asoundef.h
compress_driver.h
ALSA: compress: Fix kernel-doc warnings
2016-11-15 07:28:15 +01:00
control.h
ALSA: hda - Fix yet remaining issue with vmaster 0dB initialization
2017-11-22 12:34:56 +01:00
core.h
ALSA: add snd_card_disconnect_sync()
2017-10-11 15:06:10 +02:00
cs35l33.h
ASoC: cs35l33: Initial commit of the cs35l33 CODEC driver.
2016-06-27 17:39:06 +01:00
cs35l34.h
ASoC: cs35l34: Initial commit of the cs35l34 CODEC driver.
2016-10-21 12:02:44 +01:00
cs35l35.h
ASoC: cs35l35: Add Boost Inductor Calculation
2017-05-19 17:31:34 +01:00
cs42l52.h
cs42l56.h
cs42l73.h
cs4231-regs.h
cs4271.h
cs8403.h
cs8427.h
da7213.h
ASoC: da7213: Add support to handle mclk data provided to driver
2015-10-07 15:11:34 +01:00
da7218.h
ASoC: da7218: Add da7218 codec driver
2015-11-30 12:24:12 +00:00
da7219-aad.h
ASoC: codecs: Add da7219 codec driver
2015-10-02 18:11:27 +01:00
da7219.h
ASoC: da7219: Disable AAD if codec is not a wake-up source
2016-09-26 09:39:50 -07:00
da9055.h
designware_i2s.h
ASoC: dwc: Added a quirk DW_I2S_QUIRK_16BIT_IDX_OVERRIDE to dwc driver
2017-06-28 19:01:12 +01:00
dmaengine_pcm.h
ASoC: Revert "Drop SND_DMAENGINE_PCM_FLAG_CUSTOM_CHANNEL_NAME flag"
2017-01-23 18:16:33 +00:00
emu10k1.h
ALSA: emu10k1: Use workqueue instead of kthread for emu1010 fw polling
2016-11-15 08:21:19 +01:00
emu10k1_synth.h
emu8000.h
emu8000_reg.h
emux_legacy.h
emux_synth.h
ALSA: seq: Allow the tristate build of OSS emulation
2017-06-09 22:09:45 +02:00
es1688.h
ALSA: es1688: Remove almost always NULL parameter
2015-01-02 16:27:03 +01:00
gus.h
ALSA: Include linux/io.h instead of asm/io.h
2015-01-28 16:49:33 +01:00
hda_chmap.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
hda_hwdep.h
hda_i915.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
hda_register.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
hda_regmap.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
hda_verbs.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
hdaudio.h
ASoC: Updates for v4.15
2017-11-13 15:45:57 +01:00
hdaudio_ext.h
ASoC: hdac_hdmi: clean up hdac_device variable names
2017-12-01 12:48:16 +00:00
hdmi-codec.h
ASoC: hdmi-codec: add .get_dai_id support
2017-05-24 18:45:29 +01:00
hwdep.h
->poll() methods should return __poll_t
2017-11-27 16:19:52 -05:00
i2c.h
ALSA: i2c: constify snd_i2c_ops structures
2015-11-30 11:40:08 +01:00
info.h
->poll() methods should return __poll_t
2017-11-27 16:19:52 -05:00
initval.h
jack.h
ALSA: jack: Allow building the jack layer without input device
2016-02-23 09:03:07 +01:00
l3.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
max9768.h
max98088.h
max98090.h
max98095.h
memalloc.h
minors.h
mixer_oss.h
ALSA: Use IS_ENABLED() in common headers
2017-05-17 07:13:04 +02:00
mpu401.h
omap-hdmi-audio.h
drm: omapdrm: hdmi: Pass HDMI core version as integer to HDMI audio
2017-08-16 12:52:41 +03:00
omap-pcm.h
opl3.h
ALSA: seq: Allow the tristate build of OSS emulation
2017-06-09 22:09:45 +02:00
opl4.h
pcm-indirect.h
ALSA: pcm: Fix negative appl_ptr handling in pcm-indirect helpers
2017-05-25 23:34:45 +02:00
pcm.h
ALSA: pcm: add SNDRV_PCM_FORMAT_{S,U}20
2017-11-29 09:26:33 +01:00
pcm_drm_eld.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
pcm_iec958.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
pcm_oss.h
pcm_params.h
ALSA: Add params_set_format helper
2015-02-24 00:43:18 +09:00
pt2258.h
pxa2xx-lib.h
Merge remote-tracking branches 'asoc/topic/ac97', 'asoc/topic/ac97-mfd', 'asoc/topic/amd' and 'asoc/topic/arizona-mfd' into asoc-next
2017-11-10 21:31:02 +00:00
rawmidi.h
ALSA: Use IS_ENABLED() in common headers
2017-05-17 07:13:04 +02:00
rt286.h
rt298.h
ASoC: add rt298 codec driver
2015-07-09 12:00:11 +01:00
rt5514.h
ASoC: rt5514: The DSP clock can be calibrated by the other clock source
2017-11-07 11:23:36 +01:00
rt5640.h
ASoC: rt5640: Fill up the IN3's support
2015-10-22 13:33:00 +01:00
rt5645.h
ASoC: rt5645: Set card long_name for GPD win / pocket
2017-12-12 10:41:56 +00:00
rt5651.h
ASoC: rt5651: Enable jack detection on JD* pins
2017-10-26 16:15:02 +02:00
rt5659.h
ASoC: rt5659: add rt5659 codec driver
2015-11-18 12:55:25 +00:00
rt5660.h
ASoC: rt5660: add rt5660 codec driver
2016-09-24 19:51:57 +01:00
rt5663.h
ASoC: rt5663: Add the function of impedance sensing
2017-09-19 12:57:59 +01:00
rt5665.h
treewide: Remove remaining executable attributes from source files
2017-02-25 12:12:50 -08:00
rt5670.h
ASoC: rt5670: Add IRQ function
2015-03-11 12:08:20 +00:00
s3c24xx_uda134x.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
sb.h
ALSA: Include linux/io.h instead of asm/io.h
2015-01-28 16:49:33 +01:00
sb16_csp.h
seq_device.h
ALSA: seq: Define driver object in each driver
2015-02-12 14:15:54 +01:00
seq_kernel.h
ALSA: seq: Avoid invalid lockdep class warning
2017-11-06 20:25:31 +01:00
seq_midi_emul.h
seq_midi_event.h
seq_oss.h
seq_oss_legacy.h
seq_virmidi.h
ALSA: seq: Fix copy_from_user() call inside lock
2017-10-09 14:10:13 +02:00
sh_dac_audio.h
sh_fsi.h
simple_card.h
ASoC: simple-card: use asoc_simple_card_parse_daifmt()
2016-07-01 17:34:02 +02:00
simple_card_utils.h
ASoC: make clock direction configurable in asoc-simple
2017-09-01 11:34:23 +01:00
snd_wavefront.h
ASoC: Updates for v4.15
2017-11-13 15:45:57 +01:00
soc-acpi-intel-match.h
ASoC: acpi: add missing includes for non-ACPI platforms
2018-01-08 15:56:34 +00:00
soc-acpi.h
ASoC: Intel - Convert to use acpi_dev_get_first_match_name()
2018-01-12 21:20:29 +00:00
soc-dai.h
Merge remote-tracking branches 'asoc/topic/stm32', 'asoc/topic/sun4i-i2s', 'asoc/topic/sunxi', 'asoc/topic/symmetry' and 'asoc/topic/tas5720' into asoc-next
2018-01-18 11:56:17 +00:00
soc-dapm.h
ASoC: dapm: Add new widget type for constructing DAPM graphs on DSPs.
2017-06-30 11:55:20 +01:00
soc-dpcm.h
ASoC: Make soc_dpcm_debugfs_add() non-fatal
2015-04-09 11:32:29 +01:00
soc-topology.h
ASoC: topology: Allow bespoke configuration post widget creation
2017-06-09 18:46:08 +01:00
soc.h
Merge remote-tracking branches 'asoc/topic/cs47l24', 'asoc/topic/cx20442', 'asoc/topic/da7213', 'asoc/topic/da7218' and 'asoc/topic/dai-drv' into asoc-next
2018-01-18 11:55:50 +00:00
soundfont.h
spear_dma.h
ASoC: Update email-id of Rajeev Kumar
2015-04-28 16:31:01 +01:00
spear_spdif.h
sta32x.h
ASoC: sta32x: add device tree binding.
2015-01-27 17:13:25 +00:00
sta350.h
tas2552-plat.h
tas5086.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
tea6330t.h
timer.h
ALSA: timer: Limit max instances per timer
2017-11-06 10:41:24 +01:00
tlv.h
ALSA: control: cage TLV_DB_RANGE_HEAD in kernel land because it was obsoleted
2016-09-25 22:16:49 +02:00
tlv320aic3x.h
tlv320aic32x4.h
ASoC: tlv320aic32x4: Add gpio configuration to the codec
2017-07-17 16:22:28 +01:00
tlv320dac33-plat.h
tpa6130a2-plat.h
uda134x.h
ASoC: uda134x: Remove is_powered_on_standby from platform data
2014-11-24 18:04:49 +00:00
uda1380.h
util_mem.h
vx_core.h
wavefront.h
wm0010.h
wm1250-ev1.h
wm2000.h
wm2200.h
wm5100.h
wm8903.h
wm8904.h
ASoC: wm8904: Correct number of EQ registers
2015-10-20 15:46:09 +01:00
wm8955.h
wm8960.h
wm8962.h
wm8993.h
wm8996.h
wm9081.h
wm9090.h
wss.h
ALSA: wss: Remove (almost) always NULL parameters
2015-01-02 16:30:08 +01:00