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 C0BD11E519; Thu, 13 Jun 2024 12:37:47 +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=1718282267; cv=none; b=Zt1Dil3Csq2bR3EePsmZZJz1WgKGjfxBXTARlVK4hShuAPgCprYQV582NNVevQ5xstCapPvlW9WdUGdCRnljjO51ZFAEWCNDDTJqSNCUnbWqw/RA00iXsUhL3+zDQdZqceVlomf+XnRVccoNxqJDfT80lW4typQM6WvhQKtnJHs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718282267; c=relaxed/simple; bh=mNWtGGwbSMTdDmJgKR/JRSv80uqyW6mRXDRTbGpVBqw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=j/WbBUJ7ikT4Xfws748xD0UJgQ+/WrazohRwwB18guOGo7v/DHJJUc2flZwRFR3pjaTpnrL+UZS0Us2nBRcvNGcvDAnWhv3UF/GwbXkyuTpBHiDISlaANJ1Z7enrMxO4CzCnV0REaF6/4vmZyMfU+2LFEVI4j62oO2VPvPVFiPw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1bSbEh1b; 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="1bSbEh1b" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39EF3C2BBFC; Thu, 13 Jun 2024 12:37:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718282267; bh=mNWtGGwbSMTdDmJgKR/JRSv80uqyW6mRXDRTbGpVBqw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1bSbEh1b3KgX57b5/6Ht+ZP1BfiYUhm+HtUKdVT6V/lhUv8JiFsAq2nS9aQGX5AjL xaEMaVVtH2X7aaeg26Z4rrDPS/eh8kM1b1GrkLIQlamDUSfg05Oe+J87mSkhqPxO7i DDec1o/1EMyCAYygh80r0HLkIEo52eUb5oG/R9xY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Andy Shevchenko , Sasha Levin Subject: [PATCH 5.15 188/402] serial: max3100: Fix bitwise types Date: Thu, 13 Jun 2024 13:32:25 +0200 Message-ID: <20240613113309.479455667@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240613113302.116811394@linuxfoundation.org> References: <20240613113302.116811394@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-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 24cd345ea6e3d..8290ab72c05a3 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