Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp396368pxu; Tue, 6 Oct 2020 08:58:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzuSOQjTMHegJ6Gbzo2PwcFD9RumQ1eYgAy/lzIx3dnolj3KPZBgQ/pEBddlxrdTsL96Ak X-Received: by 2002:a17:906:802:: with SMTP id e2mr180757ejd.294.1601999896316; Tue, 06 Oct 2020 08:58:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601999896; cv=none; d=google.com; s=arc-20160816; b=gJIyIh0E2Qc1Qv/LWpt3OmMze1JynKhTvqLW9P2P6+T9ECw6P3/Qzbd8d59DJwvg+3 8PesivDI+nEc24lEeSQtuXM4u9Zd1cstljHepBPwrelFZ+2R4GYKNg4WMTe0uH0l/YTQ 1NmR16cYt/dldKcvytzHMyNCMKFcb96tvI32lJD1XMveZ3mPSGJC9tO+0q+0Cz/lPaeA yPkxqqcyH4dD5J5quzVpTCThiTsfQm7occnmwj3Jyvol8yvC7OLfuT1sJ9Di3rWKDmC4 UxJ9AECI8dsuQ6vpIIIys+N0v0+XSjrrsgGleLh7IiG/ZzmaBRsMu3rxCOSactZy36oc TPsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=TA8ay0E5BcP+kFMJ17ivkv6yP/Fj818taHWurrPb7JI=; b=MWwuruFP2LHmIHJ2Aen1star9YVfHFTP7IENLQNyOs1DPe188Ng2qFvAoN4ghXYPEQ XH2JW70lHwZsblPJILJ3WclZvDliA83UnjqgbZyysU+ASRfu7xZdPsL9KUi0n+2wtek0 dwHGtVrUe+88tfr6xZd2lxrwCqP0cK6mNqbh70bpdPR2/Ttsk6IxiQZ3eMX+/cpP7nFX bKeVXS8Fxst9Pr+OEDcuzM5Hkit7Z63abJsLiiqnVPNiGl6SnGfKFY0/WeT01PVcL8DI 6CAbc9xHMz0FIC1RyGlkFt9G19KE0qkvp5iT2bcuN9eF96okyOFh0brLjWAERg7/g77c pgVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@grimler.se header.s=default header.b=sAHglIpg; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i24si2337029ejb.44.2020.10.06.08.57.34; Tue, 06 Oct 2020 08:58:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@grimler.se header.s=default header.b=sAHglIpg; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725995AbgJFP45 (ORCPT + 99 others); Tue, 6 Oct 2020 11:56:57 -0400 Received: from h03mx16.reliablemail.org ([173.236.90.20]:55003 "EHLO h03mx16.reliablemail.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725769AbgJFP45 (ORCPT ); Tue, 6 Oct 2020 11:56:57 -0400 X-Greylist: delayed 361 seconds by postgrey-1.27 at vger.kernel.org; Tue, 06 Oct 2020 11:56:56 EDT X-Halon-Out: b66b1d7d-07eb-11eb-b0ed-00163c72d6d3 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=grimler.se; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=TA8ay0E5BcP+kFMJ17ivkv6yP/Fj818taHWurrPb7JI=; b=sAHglIpgDDQpD9A6Zhgpn2GTyv 6foHbeSJDMKF9XvBk36xj8ta0A/ApX0tgUp78ceL4DkHuuSXHPZkW6lUo8LoyxmOd+eNF/XcTo96h xXo5eVqeszo54S57pRtv3xV56q70LWMkk/AJAoyPJUi8iFA+QYIvscFgOaMpOAgPcp00AsJPG7ItH 5xS0yZV3KAOcuitMygceN/4f1nyJxzSD1+1ru+n/3af5YTRpoJuTXPKXTjXewi0hRIjqUrfVps5Ip HsvyNxS0V3E/FyCRpoPo5kl3gffHtxpGBSVJFdKnx87mefb7LoeH7QtJC9EZNZXQF4+0PIRhDTAaB QpByzDiQ==; From: Henrik Grimler To: linux-bluetooth@vger.kernel.org Cc: Henrik Grimler Subject: [PATCH BlueZ v3] tools: fix forgotten index->mgmt_index renaming in btmgmt.c Date: Tue, 6 Oct 2020 17:50:34 +0200 Message-Id: <20201006155034.126914-1-henrik@grimler.se> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpsrv07.misshosting.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - grimler.se X-Get-Message-Sender-Via: cpsrv07.misshosting.com: authenticated_id: henrik@grimler.se X-Authenticated-Sender: cpsrv07.misshosting.com: henrik@grimler.se X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Commit 6523d168a7c1 ("tools/btmgmt: Port to use bt_shell") seem to have missed this. When trying to compile bluez I get: ``` tools/btmgmt.c:1229:34: warning: implicitly declaring library function 'index' \ with type 'char *(const char *, int)' [-Wimplicit-function-declaration] config_info_rsp, UINT_TO_PTR(index), NULL)) { ^ tools/btmgmt.c:1229:34: note: include the header or explicitly \ provide a declaration for 'index' [...] aarch64-linux-android-ld: tools/btmgmt.o: in function `cmd_config': btmgmt.c:(.text+0x544): undefined reference to `index' aarch64-linux-android-ld: btmgmt.c:(.text+0x548): undefined reference to `index' ``` Probably only happens on system (like android) where the obsolete index function does not exist. --- Changes in v3: - Ensure lines in code are < 80 characters as well Changes in v2: - Update commit message to make lint bot happy tools/btmgmt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/btmgmt.c b/tools/btmgmt.c index b0b837d34..9daa58c54 100644 --- a/tools/btmgmt.c +++ b/tools/btmgmt.c @@ -1212,8 +1212,9 @@ static void cmd_config(int argc, char **argv) return; } - if (!mgmt_send(mgmt, MGMT_OP_READ_CONFIG_INFO, mgmt_index, 0, NULL, - config_info_rsp, UINT_TO_PTR(index), NULL)) { + if (!mgmt_send(mgmt, MGMT_OP_READ_CONFIG_INFO, mgmt_index, + 0, NULL, config_info_rsp, + UINT_TO_PTR(mgmt_index), NULL)) { error("Unable to send read_config_info cmd"); return bt_shell_noninteractive_quit(EXIT_FAILURE); } -- 2.28.0