From nobody Thu Apr 2 03:24:28 2026 Received: from mail-vk1-f177.google.com (mail-vk1-f177.google.com [209.85.221.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B359E3644CF for ; Mon, 23 Feb 2026 11:42:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771846941; cv=none; b=jTzJFvtR4bWgQizMKKmiN3l5GEpO0fa7Lou7jNiyzbgB5teLvDz7X2QWhnRkE38IfklaHYZgdKtHmI++dfVTGOGUgNXjQz/g/n+xNjlNHmPimOJlOfwMuJKcpuWG2Ezq029cI+hp/ywoU0t2j2pN2W806CcQsBtgkYpiZb5RUjE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771846941; c=relaxed/simple; bh=JRFf/ku1zQxpRQLAaqk+EWm9HFzXh0ZUu83u1dJQSBA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IHemUH3gMyUnkLxaAjwNGQTegvJ0fu1LTEMRwm5Op+YFoeMD16FS1r2atcoDVJVZHEKt9WdtijwTxrQHqBYciIoA5+S9K7NUGx090tLyFqpMJKNGXjjc2UiFdZa9Q6I8Nfg+e8vnIzQWbwSMI0cwg7UrFQUsn+zMT+9zlDOJtiU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=f8rDXb1A; arc=none smtp.client-ip=209.85.221.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="f8rDXb1A" Received: by mail-vk1-f177.google.com with SMTP id 71dfb90a1353d-5665171836cso5085694e0c.2 for ; Mon, 23 Feb 2026 03:42:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771846940; x=1772451740; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ao6qYBLQDvSlAapxaJVsLBIInH8bgP428V3ceVekVzQ=; b=f8rDXb1AvoR088vmAOe75NWoiU3gA9/F+pZZWjTu0sLq01wrj7awgHgPYSQqCvSnRZ S+DeGr/umidEVbBiqJD8XppoE2ty4T0WiXaVSZwk63uHrFPyN/co5WoI1n8bICythXWg ref1LESBxzabuwiiB0+tbyoN4mIR9LFRJ+F6ad0PRvQRv0/UAor4f3TNY5L1OYdewYxx e4oJJSsAvNFa+qwAkzpwQ3FvQUw8O4S5VJNtmOpdsYjIkN9wD3ZRQG46Nkz/EQYzuWKW bRx9FvBQkihLJX9Wf4y6FNvVB0Cvk51GqGa8XW7V/GVaDQ0fDm+Tho2YrrafObEKz5Zu OqVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771846940; x=1772451740; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Ao6qYBLQDvSlAapxaJVsLBIInH8bgP428V3ceVekVzQ=; b=An9J4e+VeB+Lixgry90VtL69iVWqyxZyQVhfYRQhcGYfRemdcxgsaML2YVWOOuOWVa FuN+CgSC/DLo+IhmAGxMwSz86lP8Lo8/SWAmIuCaSDVIJTLDGZYnhzAPipuSvZpte/G0 uupiH561lDaM5q+53nTYgDotpOkfnevnQfewovaAZuJb9Zu7fxTIp2tcrrznpuaTHrSj hx+jAUYC+onCP8Z46xsJhIr7a4Bqd8V0gSagCv5DaKdkYgdkC/rZosaID59EsHNdTdfz vsu5g2DWW7pC1h48O5XK62eaufuaZnNABFTt/IqHM4G5n6Emj7+0vXlDzt/6iP3+jeHj g8WA== X-Forwarded-Encrypted: i=1; AJvYcCU914qbg3qyCZ32oD++c2XyFKzSz3JchEgUWn/Lvl1UPPHpLFqYVlj3Hp2lsqg0et/lKo48A6ARZdxzYA0=@vger.kernel.org X-Gm-Message-State: AOJu0Yx80eozv9zDGrHspmBZpm8R7jDwtAVc94nMHESdbVtDni3UZ1Il DWWsSYgTj/a0OszT8HZoOwIlOgZ4Ab2hXCYDRefPN+i+AHFV1Zh3Zu/6 X-Gm-Gg: AZuq6aJ3WdtAltPtitmynFZh3lW/UV0XX+hfgxQhSIm/JGTUDiT6hb/WUjiPHChWYHT YQ9zgHh89mNqCN9117Ixm7ueKW3gSYFvtBHZCLfW3iHUFhnATDlVOrWezhPLmsDkK0Rx9cvM/y5 AmFE22YURe0nse/ZwiWkAK1j9Ul03hzH/8kaWMLTJn0i5xLNmXhvsFIpTh2apW1xlj99xEKt0sx POofPvzE1hlsTXAwHi4cT9t/1mic95Q3PHxuQ/i8krNZSUspqDZjMQiAt6tkTxcMWoeHpd+li8e ieRINSQ7M6Q6fhRuAR5XoOMcE9sClNzXtbaAoLe1efv3CYBfec+c+o5xw9Ftg6bEzfHRbam1fk2 X7khOSR0bXpwmn/ZV27RfmtZi2DbNnwRHoipYEqsI5+Iu2MEqdibrHxLecHd8HpHff2GQkZ5krF ITafwlWPDuYLW8MKripzMAphzj37DT8DKlGBax6D89Usv087QG/q0CGZif+6OK3oDZkE1/zxkmu uBy X-Received: by 2002:a05:6122:3112:b0:566:3685:6ed0 with SMTP id 71dfb90a1353d-568e4910fc6mr3924994e0c.19.1771846939656; Mon, 23 Feb 2026 03:42:19 -0800 (PST) Received: from gustavo-arch ([2804:14c:f25a:845f:5b8d:2e7c:d238:2d28]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-568e593a666sm8285024e0c.17.2026.02.23.03.42.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Feb 2026 03:42:19 -0800 (PST) From: Gustavo Piaz da Silva To: gregkh@linuxfoundation.org, dan.carpenter@linaro.org Cc: ovidiu.panait.oss@gmail.com, gshahrouzi@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Gustavo Piaz da Silva Subject: [PATCH v9 1/2] staging: axis-fifo: use u32 for fifo depth flags Date: Mon, 23 Feb 2026 08:42:06 -0300 Message-ID: <20260223114207.3639-2-gustavopiazdasilva2102@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260223114207.3639-1-gustavopiazdasilva2102@gmail.com> References: <20260223114207.3639-1-gustavopiazdasilva2102@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Update has_rx_fifo and has_tx_fifo types from int to u32 in struct axis_fifo. The of_property_read_u32() function expects a pointer to u32. Although the current code works correctly with int, using u32 aligns the data structure with the Device Tree API and prevents potential type-mismatch issues. Signed-off-by: Gustavo Piaz da Silva Reviewed-by: Dan Carpenter --- Changes in v9: - Rebased on top of staging-next branch to resolve conflicts=20 with recent structure changes (pointed out by Ovidiu Panait). Changes in v7: - Rewrote Patch 1 description for better clarity and acknowledged=20 that the original code works. Changes in v5: - Added missing newline at the end of axis-fifo.c file. drivers/staging/axis-fifo/axis-fifo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/axis-fifo/axis-fifo.c b/drivers/staging/axis-f= ifo/axis-fifo.c index aa90b27197cf..e54bc4c1d40f 100644 --- a/drivers/staging/axis-fifo/axis-fifo.c +++ b/drivers/staging/axis-fifo/axis-fifo.c @@ -71,8 +71,8 @@ struct axis_fifo { =20 unsigned int rx_fifo_depth; unsigned int tx_fifo_depth; - int has_rx_fifo; - int has_tx_fifo; + u32 has_rx_fifo; + u32 has_tx_fifo; =20 wait_queue_head_t read_queue; struct mutex read_lock; /* lock for reading */ --=20 2.53.0