Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp364808rdb; Thu, 21 Dec 2023 11:17:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IGI01HpeeSdXLQs1YvwDWtnMjsf2dhkEzy8AA4u1LldMembRBihvfTwnoIo6n4Lif7xto+F X-Received: by 2002:aa7:938d:0:b0:6d9:4346:4ccf with SMTP id t13-20020aa7938d000000b006d943464ccfmr163751pfe.1.1703186226716; Thu, 21 Dec 2023 11:17:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703186226; cv=none; d=google.com; s=arc-20160816; b=pCnIs1K+KvVjrjA4OfB8o1YZNQAXTIlcbZ6Alj5n1MdqilA5hXjs+pCsMx9g/XOP5I PC+6zuHquDH00S9x5nLKTWeug1F05jP3xgmSDVFt90di/8Qh4IDPE2y9tnKOT51/Mh6/ rAofq0d+vKgUcRxmvCCqCo6214W3qCxuRJHYYKfAsQsQ4t9p1NDGxL33e00/TCxxSqlc zLfmZLi0LkxGZXhVjyhhZWqhPpYHMLGyldSrRQ2IYkL+lO2bgSDOVflEN9fLCymBdrUw WlBGGJCh7n3sFBf3cG+9CnoXgq4/qpUgG9ou7+3sqpe0pYUd2veQbEpnofQDCH8Caqqj ncKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=SazKN5I6TouJa0tg7zPtvLEos5DjILmuhn5hRGHHvI0=; fh=sJL4wNQgAx9VlQd60N91Zav2z4xbcndAT9uHhwT500g=; b=ysW+ugaeStxLhg0jn79T6Ymri9RyzfRU7HlBAJj9DlCibEJfonKx0HJVp4YhIeg4jA vnVFh2YF2ai9n4LaN1OhVEjjmacDujFS3/TcjQECj/ANpQ0+56amXGWWRRy7HfggqMyC cWDedvDUkWpLTMdWsgRVt3YNtF5FB/GvcObqosMvXYCadMRkwfNYBGJ8NiKUKjvEnqf4 pdHdvv47Vdho+ckpENSR2E4m3C1t2+JWhM7ddERwX/PTAUHuTbunjoiKVLm+MWM2Lzum G+p9Z51+jDATbqEvXVDxbb8fCPswSryEVKDZUdt2u075Zv5/+gHgykg5SkPvdmJFJ7jo maBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=sb+QoArk; spf=pass (google.com: domain of linux-wireless+bounces-1176-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1176-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d24-20020aa78e58000000b006ce52bb999fsi1920079pfr.273.2023.12.21.11.17.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 11:17:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1176-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=sb+QoArk; spf=pass (google.com: domain of linux-wireless+bounces-1176-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1176-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 92B8BB253BC for ; Thu, 21 Dec 2023 19:15:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B47D697A6; Thu, 21 Dec 2023 19:13:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="sb+QoArk" X-Original-To: linux-wireless@vger.kernel.org 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 751B77318F for ; Thu, 21 Dec 2023 19:13:45 +0000 (UTC) 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 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=SazKN5I6TouJa0tg7zPtvLEos5DjILmuhn5hRGHHvI0=; t=1703186025; x=1704395625; b=sb+QoArklA4yItoCWa4anqm6KHJp7yADYoydT/0tzHwJA22 en2ZiSQBURElIfh/tiJg+reM3oPXY91RTJeyuHCpoz4X/N8KxJnx90na1myewHyjtL4d3QkL+wzZ3 5QflesV9wuR7gexQ7RAF16mvf8UYs3n7pO02Tc4pjMra852Tz66zIXr035KIGKV7iaFehxbgVT0vS ag9ngeLns1bu0uIXDPzm1NoJ/orrPDszrh83pvWdZGlNM/jWHEAn5ICsloCWfMrvOnAB32qpY6Rmw RWdOMZDK8778PDXkftwPUUiptpne3YZ/+AfUy2sqQeyav33PBNZOcVEqXp/68YMQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rGOUH-000000034Ct-2NuI; Thu, 21 Dec 2023 20:13:41 +0100 Message-ID: <0500067b5d2722f0546ae588934de18aa28b09b0.camel@sipsolutions.net> Subject: Re: [PATCH v2 06/13] wifi: mac80211: rework RX timestamp flags From: Johannes Berg To: Jeff Johnson , Miri Korenblit Cc: linux-wireless@vger.kernel.org, Gregory Greenman , Benjamin Berg Date: Thu, 21 Dec 2023 20:13:40 +0100 In-Reply-To: <05944e81-3c1b-485b-82f8-15b8cb991a4b@quicinc.com> References: <20231220133549.bdfb8a9c7c54.I973563562969a27fea8ec5685b96a3a47afe142f@changeid> <20231220133549.d0e664832d14.I20c8900106f9bf81316bed778b1e3ce145785274@changeid> <69e18f8e-0157-43db-bd11-78ee945d9912@quicinc.com> <05944e81-3c1b-485b-82f8-15b8cb991a4b@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.2 (3.50.2-1.fc39) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned On Tue, 2023-12-19 at 15:16 -0800, Jeff Johnson wrote: > On 12/19/2023 2:43 PM, Johannes Berg wrote: > > On Tue, 2023-12-19 at 14:41 -0800, Jeff Johnson wrote: > > > now the code can return a value that doesn't map to the true/false bo= ol > > > enums > >=20 > > No, it cannot, at least not if 'bool' is implemented in a C99-compliant > > way :) It's not actually an enum, it will return 0/1 in the machine > > register even with this code. >=20 > Today I learned something new. Guess I'm still carrying baggage from > pre-C99. Which is not necessarily bad - there are to this day compilers that implement bool as if it was an enum, and then it can hold values other than 0/1 ... but at least for kernel work we can assume bool is implemented as specified :) johannes