Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp106096lqe; Thu, 4 Apr 2024 00:36:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWE4LzcQisys54FBp64x2/gGFZPGDYPxR3z8LjIYl46twutjlH7Y5DAUmsaZfZb+KK+ldfBPiLFO8C9m3+B2mM224uzBTzj+PfaZiGYvg== X-Google-Smtp-Source: AGHT+IEJA/LY41PmwgPFPMByTfNBBVIC6gAPA9i24qHouBpR9VZ6lzPJsmqzob1BuwaZb/z0idN4 X-Received: by 2002:a17:90b:297:b0:2a2:ab18:a6c4 with SMTP id az23-20020a17090b029700b002a2ab18a6c4mr1800504pjb.48.1712216199405; Thu, 04 Apr 2024 00:36:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712216199; cv=pass; d=google.com; s=arc-20160816; b=HsPC+oNT7pO2LSYMrQ9xEh7HDz8QdYMLuA05Yxh6CmgBNmUM4lmTXJ/BTk2+6tTvxJ Kq98N8+7oyfJLfc6+X3usSYNQqhmadsYPd/FQ2eKkQhrYqN212SfWdUAmkVm4bQUwv7N LeKCI9sD0DQeK9hFRUU30qsYQks5JLmCk1BnqdhJmXavDx4AnhLslaslg2C2kTJ7NfzA 1gVlrHgOaeSD0/GUv12Y5uSQsyZY1A8mu6VyEJCMi/fQgpOtfB+6x/7MOGujmdVrcSWy 0ikrm5aXV2htUCIGnCNVPSkEWFtsdc9YAAXi7h56bU7LgE8ycLBAeo+o5JNdfYFvM+K6 YeEw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=vWKvMG5nll0mvlIt/xmKLo6WV+d8fUQ4sGFwg8zKV6k=; fh=/e2pjdUOTpW132H/imW5EjTpwQ6oKMVRo+kYXKrZLgQ=; b=EIBMpVlwW92OBkm7iLyiXoM3TciKPvN0npLykbBqZVg0/FZoT77NsYUuohjX7QfHNX z8sJjwH5+Bg8AOioQQ7jdqZLRLjA+jW/DCXwoBTeZmf9l6zTU/kUtsT6c67BSbVLk9Lf PM4LeTeecAtY612ahJ7uNdQCecJnJZ9RXgVjuUd8FKl4hkOjzzw7uRbauZ3HFvzX0fL6 GG98G3TC0SbY6G3ULufmPUN0gZPcLkKx5VqSu+RFsrxaXy6xStA5eE8CRjKieVIScnLQ 9SuD/6bRnSm0xTrvE9qRwqetjfvhpInr4Huw/3Vh9oexZE4TrD043XZu4jBqvdjcW/Or 9mvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@toblux-com.20230601.gappssmtp.com header.s=20230601 header.b=a4tz1Cif; arc=pass (i=1 dkim=pass dkdomain=toblux-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-131039-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131039-linux.lists.archive=gmail.com@vger.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 cl18-20020a17090af69200b002a254188ff7si1167906pjb.80.2024.04.04.00.36.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 00:36:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131039-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=@toblux-com.20230601.gappssmtp.com header.s=20230601 header.b=a4tz1Cif; arc=pass (i=1 dkim=pass dkdomain=toblux-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-131039-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131039-linux.lists.archive=gmail.com@vger.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 47731289EBC for ; Thu, 4 Apr 2024 07:35:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B15E5B5B3; Thu, 4 Apr 2024 07:35:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=toblux-com.20230601.gappssmtp.com header.i=@toblux-com.20230601.gappssmtp.com header.b="a4tz1Cif" Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (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 E7D9E59158 for ; Thu, 4 Apr 2024 07:35:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712216115; cv=none; b=KGkV6vQAUjKvdaZzv+Pur2y3l0Srz77Cd98EaRK1OvBoCzyWLcZ6f5p8mo53rDc6xcqDzNNFL4rb+ineAe8bsz4A0Wtifi1EC/JYaw92A+B5LlF2Ot9YAmFe/ENRCV6/IRUTIhdevorJHrXQNvC0HguWHHh2QlpgdmMvjcpk2ME= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712216115; c=relaxed/simple; bh=vWKvMG5nll0mvlIt/xmKLo6WV+d8fUQ4sGFwg8zKV6k=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=JvxKrpp6eeEBn2O3ZxB/aOrdZI6xJA/7HI4BQuBYGRyvFS9Q7pGJOK4j/Zu82HM7L0CHvM6HjYQrEE/1xLpXaSPg449973PKRfZhk5sNENk2h8cd5ISWANJMa8YQKvgs5MeJVCS1cACyOXGFQZTD3j5wO83C6RLh2d1INquuIWY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=toblux.com; spf=none smtp.mailfrom=toblux.com; dkim=pass (2048-bit key) header.d=toblux-com.20230601.gappssmtp.com header.i=@toblux-com.20230601.gappssmtp.com header.b=a4tz1Cif; arc=none smtp.client-ip=209.85.208.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=toblux.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=toblux.com Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-56e0f359240so792090a12.0 for ; Thu, 04 Apr 2024 00:35:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toblux-com.20230601.gappssmtp.com; s=20230601; t=1712216112; x=1712820912; darn=vger.kernel.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vWKvMG5nll0mvlIt/xmKLo6WV+d8fUQ4sGFwg8zKV6k=; b=a4tz1CifqAJOpiTLxDuz3qXRR4A1T8Rkl5B2MjuvzXA7qi10gV2h8rDBaKrf2ilRPE aY9Ny54mjgDHqXG5FmSQmcUEHm/YA/OimcMTM1lHWkYGhx9TqvjhDwU+CTvyhsTTvI5O sTrmKP+ueaWnkxvIv+OIzqA220vzEq7N0sJBlnQwri0ahZ7vwljKzLCTi4hAzg+P7LP9 rCuIN76EpSsUarpgatNqdy5TLW9w8iJYcq4M3GjDXbdbcKb+OYdOCTUcWDVNoy5TNP1k dbyBEBDJRkhZoBldWpVdfz+FHUR9HmgwVinoOdzCdme5IIyPiXzVLXb8s1djvXTw5V8c IU7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712216112; x=1712820912; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vWKvMG5nll0mvlIt/xmKLo6WV+d8fUQ4sGFwg8zKV6k=; b=kq881K9LCavOBvKgXDXrFoLNGnnvjIRbOh0Yxy+1ZgHUQzxopOMxNAZoVmhw1anGlA AZqLSKUxngQ1o35vnuZGEj7Y3GcPxxtYSlntnIZroFo0Oy+IfLP1hWBcGQ5gmrStgAy+ jM1BElC0J6kgMYS2+J09zWld+xlgFvJeeIaJrwJQd5wwBFIdQ1tyMG4+60/QlSbjqA6d mlwhUSL6isHkn70b2828SlD1mF/RoUKoWHeEvaUQ2rrKKJVrPCv8BafVQAnqMkLBfw4i CsNjctN0inG7wUsYZOm82w91rllqJbQf0O/rFU0VPhF3Z/2WbvPqMw7mAQu/7ucfGLY3 tJtQ== X-Forwarded-Encrypted: i=1; AJvYcCXORp7fVxwgWvogwZ31LipcTJX7N0yaIOdkDcUUvemaMx+U0+XlOD45FUsUNjvU3O8/MlEUyOWXk4i+QPqP+jIzAPTKQZooW/3BMtcj X-Gm-Message-State: AOJu0YxIUnZC1gX8gb4ZkRq//20cd4qYeskIAl4Ky14RUM64uH5LOPAQ DT2LHGMuDgJHaykeEqEqZoCgYDeYikdT46/DdjysWXNifJhsCycwubqr9IVVTSY= X-Received: by 2002:a17:906:dc1:b0:a4f:a291:cca2 with SMTP id p1-20020a1709060dc100b00a4fa291cca2mr902396eji.31.1712216112153; Thu, 04 Apr 2024 00:35:12 -0700 (PDT) Received: from smtpclient.apple ([2001:a61:10c6:ce01:4985:35a2:f58b:acb7]) by smtp.gmail.com with ESMTPSA id i15-20020a170906090f00b00a4e5866448bsm5695791ejd.155.2024.04.04.00.35.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Apr 2024 00:35:11 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\)) Subject: Re: [PATCH] tty: xtensa/iss: Use umin() to fix Coccinelle warning From: Thorsten Blum In-Reply-To: Date: Thu, 4 Apr 2024 09:35:00 +0200 Cc: Chris Zankel , Max Filippov , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20240403234729.175168-2-thorsten.blum@toblux.com> To: Jiri Slaby X-Mailer: Apple Mail (2.3774.500.171.1.1) On 4. Apr 2024, at 07:05, Jiri Slaby wrote: >=20 > The cast to unsigned (ie. umin()) is now not necessary. You should = have used min() as was suggested, right? Yes, umin() was only necessary before I casted len from int to size_t. I'll submit a v2 shortly. Thanks, Thorsten=