Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1675695lqt; Wed, 20 Mar 2024 10:35:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUF9jKpfivXBy9M3Hz7QH6dgpqaohV15pjpfJl1BexKTnz68Dmys+53KHtaITBvv8O7+VTDKMagLhOUhLMSRZW+BuNLxjLu7XbrerK6pg== X-Google-Smtp-Source: AGHT+IGWoXZwhW+iUQm47m2+FxN0zEIxtvIXU8uMBcpAWY9T/P5t3G364xxNOhItlE8DCXm6lWC9 X-Received: by 2002:a05:6a20:71d5:b0:1a3:4d0a:35c0 with SMTP id t21-20020a056a2071d500b001a34d0a35c0mr5543494pzb.17.1710956102154; Wed, 20 Mar 2024 10:35:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710956102; cv=pass; d=google.com; s=arc-20160816; b=Ie8/cddvH4pOB9+YsEvq92FKqLUA+IHdMNWOgehBLoOJT+2/2MDA798m4p/Kkd3w8u bEAQWTKuWuV5oraDXeBqRVxjo7wIPlJCMkYnjWYUt56JGxJ1irctGSteUR35J+G503PV 1LpTgOtic8qpmcFDten+PYGsYkWghQcdcHXlaZ9a7UdZSEpcUjeTnDCU2ErVPVg0AjyI v9i92gJMiZigDT1dF3eQaun4jSfFD3n07zB3ZVdWhbXPcgC590hHLEmu5DJWZvGfMBaE fjSVqB20+f90K/v2Whrn06L+Yqy2AwAALtOTlg6M5ZMgDGio5CuJoNVp7WigkwjvDmfM Dj6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=bgKFrzQwIS+CypVR1nZSDPoIfZHHpAFfPAa7+jpjw5g=; fh=yjhrQk7WF2DWcVqXBVPSEm/ED7d+dlXS0gAYx4+ASdc=; b=FqXvV71h4FaJ/Uqt8p9TrWNaCDm0uOe6l9WweF1p1cPB6X/FR2xAu8aqIssPU1F7u6 aHU/tqKruk2/2bhJhYAyK5nYGJNiqLZuXadyDQlpGno0/RYbZUqkHTp/BhhbOktJGDnz 8+/9CV61JaFpR/E3sG70bZQjUHqrlNAfT5/nPFt7/sYyQ+6yZljKO2QfPQg9WvQXnm1W owEN+CQM1CYCf+ddJ/tZBTqGPYsPDH350+c3NTm5Vkm3U/qCJDXQFAdAmycl0I2qv4hm h3Zht9Nrn/8tjlwQllK+USGrily2B0Ng/kbq/oqMdIZNZT5eafjkxRnp1AJnMWAshKIu q3GQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=CsZ2amSl; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-5004-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5004-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z3-20020aa79903000000b006e5a2456e80si13489946pff.127.2024.03.20.10.35.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 10:35:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5004-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=@quicinc.com header.s=qcppdkim1 header.b=CsZ2amSl; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-5004-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5004-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 D01CC282766 for ; Wed, 20 Mar 2024 17:35:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8315442057; Wed, 20 Mar 2024 17:34:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="CsZ2amSl" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 E5421524B7 for ; Wed, 20 Mar 2024 17:34:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710956096; cv=none; b=abAJmzCk4g0vZmm4OC8nGiS5wpcNPhKp6i5vVjOFgH0A430jEgCrJBJwrjgVO4Lg984trisxRhVP8K2eGda4xGC0fRJb8DkPmcA6qLkJoP8V7wLH8Ofucyc3kOetiUX7ptnh3uz5yjYzRw9jviEzXGOTNzu46gEPoK4jBjAToxk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710956096; c=relaxed/simple; bh=hcYAXW0n1OsYKjdvz1TIjvrhoUmhFTCMn3CGkCm/1F8=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=urTGE0lAeeMHKpCIyX6D5mXBKHXhuNmdCfT8s6oy2vcFwsdEeqjhBwFfLzWz+LtyNeXjM2DNqGLRthk3QbTVEk7vbCCkgge2XLQ6pjDAeX6gS+HBASsYEe6RGiGfNno4ZPzDxy9ZmiLBUlr0TLG8OVjBRF6N6rVQOVV6MeTZPR0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=CsZ2amSl; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42KHYoXQ022712; Wed, 20 Mar 2024 17:34:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=bgKFrzQwIS+CypVR1nZSDPoIfZHHpAFfPAa7+jpjw5g=; b=Cs Z2amSl4PSoL8xfFFocbArpNk2PSBxQ0Qc/vRY9Lj9XuJrmBfVq9IT4fhubsdmgz2 wIdC80uD6yKSNLhTYO5l0kZeoMCo2c9QmU3zbn0uAE/ckM0/Sq+gjybbhhakT9XU zkz9lMXN4hPpWHdeX/4yaPlOkhz2Gg7nljBJ8w+k3afV9CZ7Wi0AeokIqEJt7nz+ h6pXihqHOhcb7LHzV5E+sV8qD/j2LXq5cCXzoKWoWlmICIO7Sc4LZ9MLtUeD2Li+ dCFKmwtjNI5RA5Dxhni8/JHoZj5Z8FohVWEfJukTUPy/SD36AcVXrw9cmfQ6kWkU URiweDoG4QOI3kcSUnmw== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x04ar800p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Mar 2024 17:34:50 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42KHYaLJ000637 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Mar 2024 17:34:36 GMT Received: from [10.110.120.226] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 20 Mar 2024 10:34:36 -0700 Message-ID: <52a8a85f-4ee1-4739-ab8b-0e4914f0044d@quicinc.com> Date: Wed, 20 Mar 2024 10:34:35 -0700 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/3] wifi: ath9k: ath9k_set_moredata(): fix sparse warnings Content-Language: en-US To: Kalle Valo , CC: References: <20240320170656.3534265-1-kvalo@kernel.org> <20240320170656.3534265-2-kvalo@kernel.org> From: Jeff Johnson In-Reply-To: <20240320170656.3534265-2-kvalo@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: IYkR_sUzYFIMEaYTkInw8ifHf0qAF6rG X-Proofpoint-ORIG-GUID: IYkR_sUzYFIMEaYTkInw8ifHf0qAF6rG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-20_10,2024-03-18_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 spamscore=0 lowpriorityscore=0 clxscore=1015 mlxscore=0 suspectscore=0 malwarescore=0 impostorscore=0 mlxlogscore=737 adultscore=0 bulkscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403140001 definitions=main-2403200141 On 3/20/2024 10:06 AM, Kalle Valo wrote: > From: Kalle Valo > > Sparse warns: > > drivers/net/wireless/ath/ath9k/xmit.c:1677:20: warning: incorrect type in initializer (different base types) > drivers/net/wireless/ath/ath9k/xmit.c:1677:20: expected unsigned short [usertype] mask > drivers/net/wireless/ath/ath9k/xmit.c:1677:20: got restricted __le16 [usertype] > drivers/net/wireless/ath/ath9k/xmit.c:1681:17: warning: restricted __le16 degrades to integer > drivers/net/wireless/ath/ath9k/xmit.c:1682:42: warning: restricted __le16 degrades to integer > drivers/net/wireless/ath/ath9k/xmit.c:1682:36: warning: incorrect type in assignment (different base types) > drivers/net/wireless/ath/ath9k/xmit.c:1682:36: expected restricted __le16 [usertype] frame_control > drivers/net/wireless/ath/ath9k/xmit.c:1682:36: got int > > Fix ath9k_set_moredata() to use __le16 with masks and use if statement instead > of multiply operator. > > Compile tested only. > > Signed-off-by: Kalle Valo Acked-by: Jeff Johnson