From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: randconfig build error with next-20150113, in sound/pci/hda/patch_realtek.c Date: Tue, 13 Jan 2015 20:54:36 +0100 Message-ID: References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Jim Davis Cc: David Henningsson , Stephen Rothwell , linux-next , linux-kernel , perex , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 13 Jan 2015 11:39:12 -0700, Jim Davis wrote: > > Building with the attached random configuration file, > > sound/built-in.o: In function `alc280_fixup_hp_gpio2_mic_hotkey': > /home/jim/linux/sound/pci/hda/patch_realtek.c:3512: undefined > reference to `input_allocate_device' > /home/jim/linux/sound/pci/hda/patch_realtek.c:3520: undefined > reference to `input_register_device' > /home/jim/linux/sound/pci/hda/patch_realtek.c:3522: undefined > reference to `input_free_device' > /home/jim/linux/sound/pci/hda/patch_realtek.c:3550: undefined > reference to `input_unregister_device' > sound/built-in.o: In function `gpio2_mic_hotkey_event': > /home/jim/linux/include/linux/input.h:392: undefined reference to `input_event' > /home/jim/linux/include/linux/input.h:417: undefined reference to `input_event' > /home/jim/linux/include/linux/input.h:392: undefined reference to `input_event' > /home/jim/linux/include/linux/input.h:417: undefined reference to `input_event' > make: *** [vmlinux] Error 1 Thanks. So this is the case where the audio driver is built-in while the input driver is module. I guess the cleanest workaround is just to select INPUT from SND_HDA_CODEC_REALTEK in sound/pci/hda/Kconfig. Practically seen, CONFIG_INPUT is always set, so there must be no real drawback with it. (And we can reduce a few lines as a bonus.) David, care to prepare a patch? thanks, Takashi