From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 484B2CA9EAB for ; Sat, 19 Oct 2019 07:57:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 163AD20872 for ; Sat, 19 Oct 2019 07:57:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726192AbfJSH5J convert rfc822-to-8bit (ORCPT ); Sat, 19 Oct 2019 03:57:09 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:52943 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726139AbfJSH5J (ORCPT ); Sat, 19 Oct 2019 03:57:09 -0400 Received: from surfer-172-29-2-69-hotspot.internet-for-guests.com (p2E5701B0.dip0.t-ipconnect.de [46.87.1.176]) by mail.holtmann.org (Postfix) with ESMTPSA id F3E01CED04; Sat, 19 Oct 2019 10:06:05 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3594.4.19\)) Subject: Re: [PATCH -next] Bluetooth: btusb: Remove return statement in btintel_reset_to_bootloader From: Marcel Holtmann In-Reply-To: <20191018222924.49256-1-natechancellor@gmail.com> Date: Sat, 19 Oct 2019 09:57:06 +0200 Cc: Johan Hedberg , Amit K Bag , Chethan T N , Raghuram Hegde , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Stephen Rothwell Content-Transfer-Encoding: 8BIT Message-Id: <859945F9-E674-4906-A18D-BCA6027AA535@holtmann.org> References: <20191018111343.5a34ee33@canb.auug.org.au> <20191018222924.49256-1-natechancellor@gmail.com> To: Nathan Chancellor X-Mailer: Apple Mail (2.3594.4.19) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Nathan, > When building with Clang and CONFIG_BT_INTEL unset, the following error > occurs: > > In file included from drivers/bluetooth/hci_ldisc.c:34: > drivers/bluetooth/btintel.h:188:2: error: void function > 'btintel_reset_to_bootloader' should not return a value [-Wreturn-type] > return -EOPNOTSUPP; > ^ ~~~~~~~~~~~ > 1 error generated. > > Remove the unneeded return statement to fix this. > > Fixes: b9a2562f4918 ("Bluetooth: btusb: Trigger Intel FW download error recovery") > Link: https://github.com/ClangBuiltLinux/linux/issues/743 > Reported-by: > Reported-by: Stephen Rothwell > Signed-off-by: Nathan Chancellor > --- > drivers/bluetooth/btintel.h | 1 - > 1 file changed, 1 deletion(-) patch has been applied to bluetooth-next tree. Regards Marcel