From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030201AbdDSUJj convert rfc822-to-8bit (ORCPT ); Wed, 19 Apr 2017 16:09:39 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:60667 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936396AbdDSUJg (ORCPT ); Wed, 19 Apr 2017 16:09:36 -0400 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [PATCH] blutooth: try to improve CONFIG_SERIAL_DEV_BUS dependency From: Marcel Holtmann In-Reply-To: <20170419175051.4177480-1-arnd@arndb.de> Date: Wed, 19 Apr 2017 22:09:33 +0200 Cc: "Gustavo F. Padovan" , Johan Hedberg , Sebastian Reichel , Rob Herring , Bjorn Andersson , "David S. Miller" , Kalle Valo , Linux Bluetooth , linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: <4F901B46-50C3-4932-9923-8E4FF69191B9@holtmann.org> References: <20170419175051.4177480-1-arnd@arndb.de> To: Arnd Bergmann X-Mailer: Apple Mail (2.3273) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, > With CONFIG_SERIAL_DEV_BUS=m, the hci_serdev.o file does not actually > get built into hci_uart.o as the Makefile doesn't pick it up, leading > to a link error with anything referring to it: > > ERROR: "hci_uart_register_device" [drivers/bluetooth/hci_nokia.ko] undefined! > scripts/Makefile.modpost:91: recipe for target '__modpost' failed > > Changing this in the Makefile would cause another problem when > hci_uart itself is built-in and cannot reference symbols from the > serdev module. > > This tries to address both problems by introducing a new hidden > Kconfig symbol that controls both the compilation of hci_serdev.o > and whether the Nokia driver can be selected. This seems to address > the problem for me, though there might be a better way to do it. > > Fixes: 7bb318680e86 ("Bluetooth: add nokia driver") > Signed-off-by: Arnd Bergmann > --- > drivers/bluetooth/Kconfig | 8 +++++++- > drivers/bluetooth/Makefile | 2 +- > 2 files changed, 8 insertions(+), 2 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel