Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1104459img; Mon, 18 Mar 2019 23:59:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbgFNZcj1y5wdjHJSJIH5EhgPzroprt9vi8PN+ONwntnGi8VKe6XlfufkTB7e56YyqER7a X-Received: by 2002:a17:902:a60c:: with SMTP id u12mr536939plq.301.1552978751404; Mon, 18 Mar 2019 23:59:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552978751; cv=none; d=google.com; s=arc-20160816; b=wdZpJVudu3wqTsOh3lcB1IEiLTJi1Z3VFe6eh/uQpa9XutZyl9hV7h5LyHvcaVknRT j8MtjHDnUxWYkcSyxvaOrOcZLUu/vULssAGyu9tpvWSCn2Q5/pxvRQX7bQTf1Xvom3Jx ma5wuAz57qgCt0n8r7ASxlh/caROxK8EtZhAI2/fdonQlkprgFUsKFUxqYO/tIf/iF5z jn5Zdlo8QqfFRd1FTjuauEp84f4tQr2VT84WpZkDehqoar8+LHEVcqUSRD2VE8bkZ8Vh UkonGBpTdKp3obBzA8HBT1+S6Hyf9SMZQhQhnIR4t6jfbwsL6PCB6SSy+NYNlnYfFtcB O2Kw== 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=1X7tF5/WH+tl/HJh6peyxoE6ed6M94gDZwHFgQwTze4=; b=sbPZMEnPirenMeDafLfjd5C66Dg9wLpkTUHzKGVgDKX5c0haflfsfxZebMIj6noHYJ yR5tI50+w4khcbUKZM5FgGb6m8XO6Uvy1nR78vJlpK6nUXiTek/eakrsXTI9iOtnRKtN rS46Ohy+RY7HjPbnDpgqK2/PJhvfsqfMuVRAcuODfZALLO7PFPJMN5i1M7PwQ0awDgIG ZKlaEUy8SdaqcPY6b2T5yhhjG4VUdidCsR9V86yooITPD/NveHYDZUqpi7em8OPg9C2j +ts/158yIjNRe5kIhMQAgjUGmZf1aFF5iLHYtosQX7y1iQuqORyfiPkVNCmsad+4Gh2H pRjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 b6si10660534pgw.475.2019.03.18.23.58.55; Mon, 18 Mar 2019 23:59:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727366AbfCSG6N convert rfc822-to-8bit (ORCPT + 99 others); Tue, 19 Mar 2019 02:58:13 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:52009 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbfCSG6N (ORCPT ); Tue, 19 Mar 2019 02:58:13 -0400 Received: from marcel-macpro.fritz.box (p4FEFC449.dip0.t-ipconnect.de [79.239.196.73]) by mail.holtmann.org (Postfix) with ESMTPSA id 9FD93CF187; Tue, 19 Mar 2019 08:06:11 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: [PATCH] Bluetooth: mediatek: Fixed incorrect type in assignment From: Marcel Holtmann In-Reply-To: <64582ec6b953c055bc3cf18e7bba18d578f03b0a.1551744635.git.sean.wang@mediatek.com> Date: Tue, 19 Mar 2019 07:58:10 +0100 Cc: Johan Hedberg , linux-bluetooth@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: <53100DF6-DAB8-40C2-8DEF-CE4146FC6023@holtmann.org> References: <64582ec6b953c055bc3cf18e7bba18d578f03b0a.1551744635.git.sean.wang@mediatek.com> To: Sean Wang X-Mailer: Apple Mail (2.3445.102.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sean, > Fixed warning: incorrect type in assignment reported by kbuild test robot. > The detailed warning is shown as below. > > make ARCH=x86_64 allmodconfig > make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' > > All warnings (new ones prefixed by >>): > > btmtkuart.c:671:18: sparse: warning: incorrect type in assignment > (different base types) > btmtkuart.c:671:18: sparse: expected unsigned int [usertype] baudrate > btmtkuart.c:671:18: sparse: got restricted __le32 [usertype] > > sparse warnings: (new ones prefixed by >>) > btmtkuart.c:671:18: sparse: warning: incorrect type in assignment > (different base types) > btmtkuart.c:671:18: sparse: expected unsigned int [usertype] baudrate > btmtkuart.c:671:18: sparse: got restricted __le32 [usertype] > > vim +671 drivers/bluetooth/btmtkuart.c > > 659 > 660 static int btmtkuart_change_baudrate(struct hci_dev *hdev) > 661 { > 662 struct btmtkuart_dev *bdev = hci_get_drvdata(hdev); > 663 struct btmtk_hci_wmt_params wmt_params; > 664 u32 baudrate; > 665 u8 param; > 666 int err; > 667 > 668 /* Indicate the device to enter the probe state the host is > 669 * ready to change a new baudrate. > 670 */ >> 671 baudrate = cpu_to_le32(bdev->desired_speed); > 672 wmt_params.op = MTK_WMT_HIF; > > Fixes: 22eaf6c9946a ("Bluetooth: mediatek: add support for MediaTek MT7663U and MT7668U UART devices") > Reported-by: kernel test robot > Signed-off-by: Sean Wang > --- > drivers/bluetooth/btmtkuart.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) patch has been applied to bluetooth-next tree. Regards Marcel