Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: core: Use *-y instead of *-objs in Makefile

*-objs suffix is reserved rather for (user-space) host programs while
usually *-y suffix is used for kernel drivers (although *-objs works
for that purpose for now).

Let's correct the old usages of *-objs in Makefiles.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20240507135513.14919-2-tiwai@suse.de

+19 -19
+1 -1
sound/Makefile
··· 17 17 obj-y += last.o 18 18 endif 19 19 20 - soundcore-objs := sound_core.o 20 + soundcore-y := sound_core.o
+9 -9
sound/core/Makefile
··· 24 24 CFLAGS_pcm_lib.o := -I$(src) 25 25 CFLAGS_pcm_native.o := -I$(src) 26 26 27 - snd-pcm-dmaengine-objs := pcm_dmaengine.o 27 + snd-pcm-dmaengine-y := pcm_dmaengine.o 28 28 29 - snd-ctl-led-objs := control_led.o 30 - snd-rawmidi-objs := rawmidi.o 31 - snd-ump-objs := ump.o 29 + snd-ctl-led-y := control_led.o 30 + snd-rawmidi-y := rawmidi.o 31 + snd-ump-y := ump.o 32 32 snd-ump-$(CONFIG_SND_UMP_LEGACY_RAWMIDI) += ump_convert.o 33 - snd-timer-objs := timer.o 34 - snd-hrtimer-objs := hrtimer.o 35 - snd-hwdep-objs := hwdep.o 36 - snd-seq-device-objs := seq_device.o 33 + snd-timer-y := timer.o 34 + snd-hrtimer-y := hrtimer.o 35 + snd-hwdep-y := hwdep.o 36 + snd-seq-device-y := seq_device.o 37 37 38 - snd-compress-objs := compress_offload.o 38 + snd-compress-y := compress_offload.o 39 39 40 40 obj-$(CONFIG_SND) += snd.o 41 41 obj-$(CONFIG_SND_CTL_LED) += snd-ctl-led.o
+1 -1
sound/core/oss/Makefile
··· 4 4 # Copyright (c) 1999 by Jaroslav Kysela <perex@perex.cz> 5 5 # 6 6 7 - snd-mixer-oss-objs := mixer_oss.o 7 + snd-mixer-oss-y := mixer_oss.o 8 8 9 9 snd-pcm-oss-y := pcm_oss.o 10 10 snd-pcm-oss-$(CONFIG_SND_PCM_OSS_PLUGINS) += pcm_plugin.o \
+7 -7
sound/core/seq/Makefile
··· 4 4 # Copyright (c) 1999 by Jaroslav Kysela <perex@perex.cz> 5 5 # 6 6 7 - snd-seq-objs := seq.o seq_lock.o seq_clientmgr.o seq_memory.o seq_queue.o \ 7 + snd-seq-y := seq.o seq_lock.o seq_clientmgr.o seq_memory.o seq_queue.o \ 8 8 seq_fifo.o seq_prioq.o seq_timer.o \ 9 9 seq_system.o seq_ports.o 10 10 snd-seq-$(CONFIG_SND_PROC_FS) += seq_info.o 11 11 snd-seq-$(CONFIG_SND_SEQ_UMP) += seq_ump_convert.o 12 - snd-seq-midi-objs := seq_midi.o 13 - snd-seq-midi-emul-objs := seq_midi_emul.o 14 - snd-seq-midi-event-objs := seq_midi_event.o 15 - snd-seq-dummy-objs := seq_dummy.o 16 - snd-seq-virmidi-objs := seq_virmidi.o 17 - snd-seq-ump-client-objs := seq_ump_client.o 12 + snd-seq-midi-y := seq_midi.o 13 + snd-seq-midi-emul-y := seq_midi_emul.o 14 + snd-seq-midi-event-y := seq_midi_event.o 15 + snd-seq-dummy-y := seq_dummy.o 16 + snd-seq-virmidi-y := seq_virmidi.o 17 + snd-seq-ump-client-y := seq_ump_client.o 18 18 19 19 obj-$(CONFIG_SND_SEQUENCER) += snd-seq.o 20 20 obj-$(CONFIG_SND_SEQUENCER_OSS) += oss/
+1 -1
sound/core/seq/oss/Makefile
··· 4 4 # Copyright (c) 1999 by Jaroslav Kysela <perex@perex.cz> 5 5 # 6 6 7 - snd-seq-oss-objs := seq_oss.o seq_oss_init.o seq_oss_timer.o seq_oss_ioctl.o \ 7 + snd-seq-oss-y := seq_oss.o seq_oss_init.o seq_oss_timer.o seq_oss_ioctl.o \ 8 8 seq_oss_event.o seq_oss_rw.o seq_oss_synth.o \ 9 9 seq_oss_midi.o seq_oss_readq.o seq_oss_writeq.o 10 10