From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (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 DCB0C2405E1; Wed, 4 Feb 2026 11:29:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770204579; cv=none; b=bs+z2liJ28TU+GdqXSgi/laSs930F6bX9tdAnOF75Ivgc1E+gsBKKGAM1YGDOmBriOeXGOq2ntHByqMid1vtlt/FB2Xk7tAErDREvrOG4RsI7I31AL0NGqBkrTxF+BPncHMRScmJJsFdSsxDnZJQ4F5kj/9KzvzogrySVLbVj9M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770204579; c=relaxed/simple; bh=sC9UQqx5Nl99mzaUVl+GaH0MeyQ/vcUIwndps5y3T2o=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=TIJS2KGhOVizyOPucxF/ZlfycHT/+ZSJ+x1eX1NCrJVYTB1lxVqQT7gsEqh3CeEPRlXDlWalKFR416QLftLF3CQSu+kdVp0H+1Z7WBQuiWenYEWkHUp7KjUg7e5SThXdsdd8TE5GpyfoHFPVqgPMEYs81kwAYE9Opn3pDnwRnOw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=ugI5KdOJ; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="ugI5KdOJ" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=sC9UQqx5Nl99mzaUVl+GaH0MeyQ/vcUIwndps5y3T2o=; t=1770204578; x=1771414178; b=ugI5KdOJjJCSRnMltTV+J4532TSQSjMp6LeYZuoj8aENhgt b4BDmISTCsLS91HbItZXcbKt9f3pskU9Bjn2xFU47anbSgDyHvOXRnKyZNJoUW4m20qn6CAzw7mgs KTD/UED1aIp/2q9FVJnsNItPEuNnqzCF/+FTgGX6RGzWKWCqNbRau8DGQv3ZrEf6NBxp7nFmGqXw0 kaQglFz76k3D4hcwQfHP12EmQcnGZDCA61ej6dqbsXImRxO1eD6QgTdbf6zyHthnSzYapbDVyFWpy rIbRBgY5FBlrKlgv9q2yhJsIyofMvztH5ycPoGycUz0125keWPd/vLOkx+AaMTfA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.98.2) (envelope-from ) id 1vnb4i-0000000EJZF-2Tn3; Wed, 04 Feb 2026 12:29:36 +0100 Message-ID: Subject: Re: [PATCH] wifi: nl80211: drop impossible negative band check From: Johannes Berg To: sun jian Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 04 Feb 2026 12:29:35 +0100 In-Reply-To: (sfid-20260204_122137_132999_E605D441) References: <20260204081821.730673-1-sun.jian.kdev@gmail.com> <074b66ab3d63e6640ecd6962c074702225fba19e.camel@sipsolutions.net> (sfid-20260204_122137_132999_E605D441) Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.3 (3.58.3-1.fc43) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned On Wed, 2026-02-04 at 19:21 +0800, sun jian wrote: > >=20 > > applies _only_ to signed short, not to signed char? > Fair point, thanks. I'll drop this patch. I've thought the better way to address that warning would be to simply use 'int' instead of the enum there, but I forgot where the warning even appears. I don't think it's generally with gcc/clang, is it? johannes