Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2389106lqp; Sun, 24 Mar 2024 17:15:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUlvc8rvfBajT1MNCliDz4a7rnHhGeCNqCbwwSVJTDYEZHzxJZ3SAdVDEL+OJu152DRwPGZpua/bW96P+3eIqWjK1C0zKLHFb3bNVIFUg== X-Google-Smtp-Source: AGHT+IGKXFzEnuDJpdmONNs0DUfBEDPkeAFCKpJ4cyfc5zP1rlAEDr+TA9JInF1mYhGhb32I6SZr X-Received: by 2002:a92:c603:0:b0:366:b8b0:708c with SMTP id p3-20020a92c603000000b00366b8b0708cmr5654732ilm.16.1711325742203; Sun, 24 Mar 2024 17:15:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711325742; cv=pass; d=google.com; s=arc-20160816; b=uiuoYycRtXAxE/eo0/6cmHpbpnqBSmjbmEWIQn9c9njo+aZnS4akLzBrxSkB9VZOmr ka8taDDEsijJS9lCEyfvzFstfd55+HYck2pKJx23GurWWoPWtmzjMYC/fJAY9O24q1OW DQ9djvLQ8r2dBp2vrh6/IHLFQrccAeZbT1dlEO5tMCbxmZYsIKaS9oQFRwHBMPVCajkM O0Nhric4G3Gf6vcwDxTcn0SE10bh/Eq62XjEGr5qazsKNQ8KE/pPBtE4ROn12R2ywjgl Ucz1iOkCRxWgummKqz/Jh5CDb18lrX/xa5L2MmW1OA9ZqA/TRlepTIyjIAFc8I8XiFEF j6sQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=NKIr9XPxTKdte3IPbmv37kno/BZq+z+rIT11Z6t0yBA=; fh=5cisW8Ug8L71Ev3lZR/0w6UChCsy02LDomesS5ltk5o=; b=sg/BT/7acQrebTwEp6qbSIvm0XU+KyAalpDIEc9MmP7g9q8kS0rO+/5A057TyiggOV EK8s0DVrz52v+P/wLe4Q2+Zo4YwBCIm832qn6QAOcCxpsup9pVLVKZEwTsc5hxcS2jr6 07MJoV/ElG6JYN3n85PkY5VHZ5RmJSkqwsJcVyEDRZecEZS7tYcJUVFtY9X/5P2XuI9c rLVRtvlk2/tiZ0aSKWFnLDWt2ehizQqmJSuf3/dmfDrq4Qxucev9i4MF15S+j7Kd2paD u1PWnGlI3ZRMcaFPz1ic2mmCPEviONzwOV3nu7paTPRDyQR4g0ZicA/wdVi9IoZBLblt 4pvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JRAhbIcF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113350-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113350-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z21-20020a634c15000000b005f057f34455si1739637pga.242.2024.03.24.17.15.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:15:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113350-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JRAhbIcF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113350-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113350-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C8CD02816A6 for ; Mon, 25 Mar 2024 00:15:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C06C3199EBE; Sun, 24 Mar 2024 22:42:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JRAhbIcF" 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 CE750199E9A; Sun, 24 Mar 2024 22:42:30 +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=1711320150; cv=none; b=e7FiqfQDEAG7pjGKfVFDg6OEoc5Ch55V4Ps/wFmhZngqFeAlehF4J0kilxbuHpm1DDzjqa/tHZEtNMXuzvOvyMAmcx2FZv9iedZ4qxdoLqitQCCBUchSH71LxP5VS6TOQIXbXVIMTlO10CzvLom3v5qzcY6bWmlBPYrlSPa32rg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320150; c=relaxed/simple; bh=QDq+Wacgo7Tvlg5d3XH68gvV/+2+r70i/mI+JetZZfg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=F6qfYrtLKv3ycPSLTjC6ipwtXLreit7/0Nn5m7xhqQ7BnWzCsVLryvj1novMI3Ff1azj25dGFuL0QwY1TxruIICv3Gf11Sq8ByH3twNWtN80Mb4CyL6rK1Sg4S63B0weTNdEnCxDUTZx2VzgYlqEoASfCxbpt2dojBScMHnTN8I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JRAhbIcF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16155C43390; Sun, 24 Mar 2024 22:42:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320150; bh=QDq+Wacgo7Tvlg5d3XH68gvV/+2+r70i/mI+JetZZfg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JRAhbIcFGuqFZZmLoD8TuJeTSttmD4J8YsY5tlvpwG8e50em24LAHa6xvOMfcNlon RGi3bdo2ff9V7QL72G9kHCLqVd6CsbYe6hNCyyHQMmSHOijcqj1PeldlWa3md7jE8o IBZpAjBTDH0/W+F4M5NDKkJU+iqI/nEc1tnsmXJXzgT8323HEHlyMkwxvxBjHGD2fu n3swNQcceVIVwclFsNTAxh/IKQ2LEV6Wx29roNlAGN1bdXJawrNU0+qKvVCauoIzSB 64vu1wuVzMGVfTa8LSP9LMtU9l5Ve8X7iTuXrZzB6VhJB5OyaRISks8wPh/Xqjk/T+ Xa/HxJsX1GP1A== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Serge Semin , Thomas Bogendoerfer , Sasha Levin Subject: [PATCH 6.8 459/715] tty: mips_ejtag_fdc: Fix passing incompatible pointer type warning Date: Sun, 24 Mar 2024 18:30:38 -0400 Message-ID: <20240324223455.1342824-460-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Serge Semin [ Upstream commit 188942f05ce45f80c06f7242ad7478bd204c3387 ] mips_ejtag_fdc_encode() method expects having a first argument passed of the "u8 **" type, meanwhile the driver passes the "const char **" type. That causes the next build-warning: drivers/tty/mips_ejtag_fdc.c: In function ‘mips_ejtag_fdc_console_write’: drivers/tty/mips_ejtag_fdc.c:343:32: error: passing argument 1 of ‘mips_ejtag_fdc_encode’ from incompatible pointer type [-Werror=incompatible-pointer-types] word = mips_ejtag_fdc_encode(&buf_ptr, &buf_len, 1); ^ drivers/tty/mips_ejtag_fdc.c:216:24: note: expected ‘const u8 ** {aka const unsigned char **}’ but argument is of type ‘const char **’ static struct fdc_word mips_ejtag_fdc_encode(const u8 **ptrs, ^~~~~~~~~~~~~~~~~~~~~ Fix it by altering the type of the pointer which is passed to the mips_ejtag_fdc_encode() method. Fixes: ce7cbd9a6c81 ("tty: mips_ejtag_fdc: use u8 for character pointers") Signed-off-by: Serge Semin Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- drivers/tty/mips_ejtag_fdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/mips_ejtag_fdc.c b/drivers/tty/mips_ejtag_fdc.c index aac80b69a069c..afbf7738c7c47 100644 --- a/drivers/tty/mips_ejtag_fdc.c +++ b/drivers/tty/mips_ejtag_fdc.c @@ -309,7 +309,7 @@ static void mips_ejtag_fdc_console_write(struct console *c, const char *s, unsigned int i, buf_len, cpu; bool done_cr = false; char buf[4]; - const char *buf_ptr = buf; + const u8 *buf_ptr = buf; /* Number of bytes of input data encoded up to each byte in buf */ u8 inc[4]; -- 2.43.0