Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1741682ybl; Thu, 15 Aug 2019 00:02:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/0dhqKFSv3UHAm7mePvFcCiY6dqbht2zQJHu8MQoLoY2PuVlDKJ4UFrYM/p8zinCsiejn X-Received: by 2002:aa7:8a04:: with SMTP id m4mr3928959pfa.65.1565852526072; Thu, 15 Aug 2019 00:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565852526; cv=none; d=google.com; s=arc-20160816; b=zdWt/ydPS7R5qEF4ZU4KN8Va1MEWJi5UfDc1RPVzy3nWxi6TIwTYmV6lI5VENaZt/6 MBNSvUqqhOsDfqJbZ+3bn/MKW/aQ+WPutuTBvXtp378cIKp6mbqttlahpQ8qon3RxDwb wWxUs0nWiF0OTa2b/kHTGWutCm07EYKWygTWiHniKAOl/+GfHf+C5GjAFFriOOyAEVG5 +24WTyZweKyld8RkUISTVF0HUxxqbg2TDeWkm0YeR5Bmroe8LfR/VwWihw8RcCHBQgqt fZ5vBYx7eLq2GKmgM2FyRhKAuxHW2rkAj2gX5PuTSTBQf9YqUAIiDXkDC0dr7Ua882Un 79bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=knwRFW4lo86tUOhMnjqZRf2us7ZRrFhHiHRXxdoW03o=; b=TKC3nSKhB8Ay4ivw2EVMiShcsea/0wJGeolFPNxPzJuSfMbc5X6F/ABBl7c+Yn1c2F YpMWUUraFzf0VGxIiIrSiagiTiAuOz5FrhmM6DQGHUr6sJSZlpMKsCNx2TApWthlQtTu pC1a6Oua1BW6vbnycatzrS6xBKQDj8Qn6VvI13hlD8BpQXWIo/la0gVXcOxUMwgl3+PT c024TsSz77JspBAzzi6446HNdv0csye7Mhdfd/RlHU1CMHE0+uO5IC8n483B4B06PlfZ q30l+mO1sOPsCC7TpQybPGmjzyp6nZ+LnJxLwurMnZLFFGrW3Ph3AE5pNC/O320pci37 /IOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q3si453459pjo.15.2019.08.15.00.01.41; Thu, 15 Aug 2019 00:02:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726865AbfHOGra (ORCPT + 99 others); Thu, 15 Aug 2019 02:47:30 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:49406 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726193AbfHOGra (ORCPT ); Thu, 15 Aug 2019 02:47:30 -0400 Received: from marcel-macbook.fritz.box (p4FEFC580.dip0.t-ipconnect.de [79.239.197.128]) by mail.holtmann.org (Postfix) with ESMTPSA id 1382CCED13; Thu, 15 Aug 2019 08:56:10 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [PATCH] Bluetooth: hci_qca: Make structure qca_proto constant From: Marcel Holtmann In-Reply-To: <20190815055149.1062-1-nishkadg.linux@gmail.com> Date: Thu, 15 Aug 2019 08:47:27 +0200 Cc: Johan Hedberg , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: References: <20190815055149.1062-1-nishkadg.linux@gmail.com> To: Nishka Dasgupta X-Mailer: Apple Mail (2.3445.104.11) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Nishka, > Static structure qca_proto, of type hci_uart_proto, is used four times: > as the last argument in function hci_uart_register_device(), and as the > only argument to functions hci_uart_register_proto() and > hci_uart_unregister_proto(). In all three of these functions, the > parameter corresponding to qca_proto is declared as constant. Therefore, > make qca_proto itself constant as well in order to protect it from > unintended modification. > Issue found with Coccinelle. > > Signed-off-by: Nishka Dasgupta > --- > drivers/bluetooth/hci_qca.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) patch has been applied to bluetooth-next tree. Regards Marcel