From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8634B196C62; Thu, 6 Jun 2024 14:08:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717682904; cv=none; b=drmfASs8gjNjOsrigWi1gpbDpIUZcLlB+nJD++6uLHZEKtD6w0RgC60J9v1sw2Y2bGwIzEzbFzhwzIQgydPWIo5M3Z2mFe750FhSxyhepI3rOhuJZjPcOp+ZGPxnvoiSxqSY62YcKzPnioM8CTzlfiAlYmaFwqmyTkaurpjN3uc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717682904; c=relaxed/simple; bh=pFS4kWzn3r5DYIv+lvD64t9vbgKEqmqxLnBh6Sdb26c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=i5amUOtdDY3iBrsZ/dMkAh0K8+UGac5ihCW93Lm22VYdp7R1GiFWJZ8kDip20erxhg4IrTNcUySjq2I3+UaCyYWni5ZZ3ZIvaKoYkWFPdQA2FclxKw2nbSqdpkKbEy1ZkIVfrtZcZE+TUGf/Au7cZaoHb3bebmntFTufYl0kilg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZHNc5gnU; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ZHNc5gnU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26F6DC32781; Thu, 6 Jun 2024 14:08:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717682904; bh=pFS4kWzn3r5DYIv+lvD64t9vbgKEqmqxLnBh6Sdb26c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZHNc5gnUqmLNGBhgGfyiEjVzl1ll6CugnLuSeb6C214j3Wc1G0TY0OMeRJp69GDl2 5y/d36RIliRIYFdeEFhDq5N6JQGapkAT1vHgqYvu1h7cub2RWeKHZ455mDF1br/CT/ r9vwNSuiULwEkO+awhYrQmycvKNO9OUDgCux456I= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Andy Shevchenko , Sasha Levin Subject: [PATCH 6.9 026/374] serial: max3100: Fix bitwise types Date: Thu, 6 Jun 2024 16:00:05 +0200 Message-ID: <20240606131652.697192920@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240606131651.683718371@linuxfoundation.org> References: <20240606131651.683718371@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andy Shevchenko [ Upstream commit e60955dbecb97f080848a57524827e2db29c70fd ] Sparse is not happy about misuse of bitwise types: .../max3100.c:194:13: warning: incorrect type in assignment (different base types) .../max3100.c:194:13: expected unsigned short [addressable] [usertype] etx .../max3100.c:194:13: got restricted __be16 [usertype] .../max3100.c:202:15: warning: cast to restricted __be16 Fix this by choosing proper types for the respective variables. Fixes: 7831d56b0a35 ("tty: MAX3100") Signed-off-by: Andy Shevchenko Link: https://lore.kernel.org/r/20240402195306.269276-4-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/tty/serial/max3100.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/max3100.c b/drivers/tty/serial/max3100.c index b3e63b6a402e1..3d2b83d6ab51a 100644 --- a/drivers/tty/serial/max3100.c +++ b/drivers/tty/serial/max3100.c @@ -45,6 +45,9 @@ #include #include #include +#include + +#include #include @@ -191,7 +194,7 @@ static void max3100_timeout(struct timer_list *t) static int max3100_sr(struct max3100_port *s, u16 tx, u16 *rx) { struct spi_message message; - u16 etx, erx; + __be16 etx, erx; int status; struct spi_transfer tran = { .tx_buf = &etx, -- 2.43.0