Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp414684lqh; Thu, 28 Mar 2024 06:08:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUsp/qbS6zRutGd2Wdf++0g14ckUULfnT1cHiWHfzjTOMjIQjHA8gSWUyat4SsWJta/68c9IZwkIIsI5fP5ok3z9GPo2ezClejSQzJmyQ== X-Google-Smtp-Source: AGHT+IHdG3hFHLLUaxlELq9mvacgIbRYVy4XoqvI2ip7alg12H3COyz7oqe4gvMkxenwR22ke7xO X-Received: by 2002:a17:907:1b1e:b0:a47:fdd:e97d with SMTP id mp30-20020a1709071b1e00b00a470fdde97dmr2216592ejc.51.1711631326335; Thu, 28 Mar 2024 06:08:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711631326; cv=pass; d=google.com; s=arc-20160816; b=WOmZ9UbIDAtEped/iOTjXDEXJ8q+xAzrZJuSCLjabzKFkfZNPOcgpgpvfZnOd7kBNA DQprInk1X5wnTFL+0yXI36EN3LjMCOVd/VUJo7rNU93pKlCh4gfe9j/ymPzPbjIZDQgU 3OzUWWRHsyumMQqZMX70nL/QhKdEQkuC6lY+d6eQTMCNQBTSH9ri1phYK4XeN4i4L8kC 6KF8z+pssc7OIa4lOcYhj6GNlsXFs8i2FOBMHoJRCZg63btb+WR11EhW05lIaADHhs0Y U4Cd4/k07KX58MckKrpzOpW4lAyGDQQRNWMdRe+Y0FiX0BA6I7z+TCcB/FRcewdsWtp1 uAWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=bDPVZXfLh99HXrkicVZdJlmWpJZTBIIMuiXW17vhAtU=; fh=1HvYy//iMFwtZRY5QOLVLr/W0LvL2MK+EEJwhI8e3rU=; b=cgbWkjdAGpN30cnYkAr61/MesuoIpkMBTvpaJSP2y8E+amhj3LR8OeRWFhZvg6sVZr /L6MQaWvy/YPsWzE30drhnpP1ZBbh9XFXn54wZfYvuiiWYIua/tmv7V8+sjAsNLqYjJi cXFYqsRazZ2TMaXtNa4PLKrMSplxizohpQTnKh6gfF7p+xVbcuilf04Nm20pY3ctS3/L w2IvETkJFXDU0joCyxM6Mtmt+DRr3MgeKMlenqwO1O+ScW7acMHf64CkR9YesNCYsiTi 7A/7BEcwqhUr1xfYTux9WRVdBrWpy6qvMgKYM7bvJyWj3p67J95AiGZD4cEeNvdaf7th 9Kbw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kjddod91; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-5455-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5455-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x13-20020a170906134d00b00a46b2c3db39si717008ejb.923.2024.03.28.06.08.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 06:08:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5455-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kjddod91; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-5455-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5455-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1361B1F23DB3 for ; Thu, 28 Mar 2024 13:08:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 45C297E767; Thu, 28 Mar 2024 13:08:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Kjddod91" X-Original-To: linux-wireless@vger.kernel.org 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 2265E7C6CA for ; Thu, 28 Mar 2024 13:08:35 +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=1711631316; cv=none; b=mwH0uzvmIVZWd1YCsolLpy7Lv/ItWVH1CSzT2wJM/SV3cuuOO8GKKf8pfB/UVaExwBvD2OoXs8sMjG4oEAESBNJT6evdSidF4RbPEoXuE3Sf6yY7HgpbVyhFF07PNdJKPARGcbdpPNWLQGmOOeKGtKSQVhCbtymy3VrN6f5QDgg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711631316; c=relaxed/simple; bh=kXdzWFC1kEp9GAaGirc4OSSCJlSeXgeEvBSyEHimz60=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=HchOYFAmk/raIG8CVeaXDqoU5TJ1o58FE5K5iOPWAoYxQninz49cz+ujDHVElIRgX3GgPZyH31j37KZt+WA2di4PpyJM25BvOwa7Uq+UuZlRKg5ibfeXVLnDV7pYcrMpvBIFCdLXYZXwlzqAE9oCo66rclC7r39eUbtJc6jEGrI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Kjddod91; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B672EC433C7; Thu, 28 Mar 2024 13:08:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711631315; bh=kXdzWFC1kEp9GAaGirc4OSSCJlSeXgeEvBSyEHimz60=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=Kjddod91oE+6kCh9PzI58r81cb2jvMDbMZFcK0gvP+UfBcVZ5JZVKDh0KM/ubOzei mtXuUfQ40wCIb8itkR5moUNk9BKtv5pFble6FmE/nM0gg/ExXs19gNBh1GGifUCh7g XkRVrPecveBBA3TjNUfPYbZ5UzXHwjgpptF9WApgHeJCLMo65SCq35S+Z+BjL3hBAS Mb2ZSxPDSpEZn651NYwV/A3/MNbPGiCdb8UA5PbxdTbdShKr8D0wHMngvORpS37Vxy lL8+zSr9XbxVXCnGzSLIBAOvGvRxJ0y5JfqGTNjzQ/KWiLOQTAlAZTR+zk1W6QnrXE oGqRTH5fv6o7Q== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v2] wifi: mt76: mt7915: workaround dubious x | !y warning From: Kalle Valo In-Reply-To: <20240325155838.1558680-1-kvalo@kernel.org> References: <20240325155838.1558680-1-kvalo@kernel.org> To: Kalle Valo Cc: nbd@nbd.name, lorenzo.bianconi@redhat.com, linux-wireless@vger.kernel.org User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <171163131263.129280.880052720214330735.kvalo@kernel.org> Date: Thu, 28 Mar 2024 13:08:34 +0000 (UTC) Kalle Valo wrote: > Sparse warns: > > drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c:526:9: warning: dubious: x | !y > > Workaround it by using the '?' operator. Compile tested only. > > Signed-off-by: Kalle Valo > Acked-by: Lorenzo Bianconi Patch applied to wireless-next.git, thanks. b68b2beadfd3 wifi: mt76: mt7915: workaround dubious x | !y warning -- https://patchwork.kernel.org/project/linux-wireless/patch/20240325155838.1558680-1-kvalo@kernel.org/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches