Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2590658rdg; Mon, 14 Aug 2023 07:23:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGPtzFvf1dvg7fPBRYoSUr/9Nv3Ay8F6SmEQDCDi1J1A4jfzKpOMwRZjgPQIZ1RAGNKejOc X-Received: by 2002:a2e:9958:0:b0:2b6:ee99:fffc with SMTP id r24-20020a2e9958000000b002b6ee99fffcmr6531810ljj.36.1692023017990; Mon, 14 Aug 2023 07:23:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692023017; cv=none; d=google.com; s=arc-20160816; b=rPBtdwELt8B7f+QuBunC4xgPN8vq81g+GSjyCOgTRMzLNsuYwMJO2hQSWbMXau6FZI 0vat0k+NueA68oOxDPevOyJxMqDzPrkWIl9d7iJNfQviNIC1ZHI5NZr2522mqZ965rqh W7MklhXbKZN0eHmQZODFR2LxJu6pgNHE9MuJNx6mRiYExwhGmnFCGgSe75SV6H9EgpXD ivqX139uevKwen2Zq6wdCGj2Lqvx9Gp0wYQLnmaVayU3sucZeWF9Gh4AOdCYkR9tkNA4 tjC5HF9FUGPog90JDXkuO7oarbUuOwZRl+1M9xW3L1GQusPzwmOJ1LuOiZTX5xq+vv9n cV5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=eRtRcSeLyPTUnI5TkxluVlX8y1YmXchwUnzvT+HnUh4=; fh=G8n/1+1D3+ggHVIBBf6WbCC7BE21U09tkAGW1GmHPJI=; b=I9pVihzmQQe6LwLEnzneWWcHbe34oNuWwdcZB0pO4QKuYOE0m3yOllKrijqqs5pOmn B/kgaMAog++9WbrYA3ce5OTxLEA/FxUqo7VkmvrzFqm40Gb90QkVEmPI6gswbvwDWlNg Eq//IHk6Ctdsah9CBXX9YSD3y4UGBT31neiTeK6a17dsYQmvDU37SaLTVzKxF8ZrqXBb O8NGUgUOP5CqIHXrdqmEJjkfs0PUc210cp+Mb21P1dbF+X6BU3H/PMbFafIZCaAQQQzs ZdDxf6lboJJZr5SdilTUNtXJVih5632cQz3r17V3fs4ftO2wNhP1AeG/OoeGXSEKUxR3 6m+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=K0akEjTT; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n19-20020a1709065e1300b009883ee7519fsi7426027eju.884.2023.08.14.07.23.18; Mon, 14 Aug 2023 07:23:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=K0akEjTT; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229575AbjHNOKI (ORCPT + 54 others); Mon, 14 Aug 2023 10:10:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231259AbjHNOJr (ORCPT ); Mon, 14 Aug 2023 10:09:47 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1117E3; Mon, 14 Aug 2023 07:09:45 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37EBlj6E029566; Mon, 14 Aug 2023 14:09:03 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=eRtRcSeLyPTUnI5TkxluVlX8y1YmXchwUnzvT+HnUh4=; b=K0akEjTTyi4xti+J8sqst6laRm0+MNRLo7vFD4BgBd7srYQUngWFa5iOPzUQNs7xf5ji qADzTy3xLqPFMHTeCSpCJv971Sn6bZ7X9s3pnHxdIpihcYPp45I6sOOnQ3gtiOS0ovo2 PQoQJrDnVIZCxbkph26ggxReESvNZWxP8LLl4MxGnhWg9AUbp438wUqcu2Wb8jH7eudl ptrdJ3SMhu7s97u3ssUq+RwE1VSZEqzJYepdUrhyawa+3hjH0tNcrRmxX2Q1fEbY70aV YPrP5r11fdtpiDaoXtTy/Aa8j58bV5f2xU/WIcsLNrxuKl3oT8F25N1IYgFsAYnrlSMi 1w== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3se3tym02r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Aug 2023 14:09:03 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 37EE92ol001402 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Aug 2023 14:09:02 GMT Received: from [10.48.240.144] (10.49.16.6) 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.36; Mon, 14 Aug 2023 07:09:01 -0700 Message-ID: <6529ca77-6ce4-d930-38a4-5ee2f9671bdd@quicinc.com> Date: Mon, 14 Aug 2023 07:09:00 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] wireless: ath: remove unused-but-set parameter Content-Language: en-US To: Arnd Bergmann , Kalle Valo , Jiri Slaby , Nick Kossifidis , "Luis Chamberlain" , =?UTF-8?Q?Toke_H=C3=B8iland-J=C3=B8rg?= =?UTF-8?Q?ensen?= CC: Arnd Bergmann , Nathan Chancellor , "Nick Desaulniers" , Tom Rix , Aloka Dixit , Wen Gong , "Ramya Gnanasekar" , Karthik M , Aditya Kumar Singh , Muna Sinada , Johannes Berg , , , , References: <20230814073255.1065242-1-arnd@kernel.org> From: Jeff Johnson In-Reply-To: <20230814073255.1065242-1-arnd@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) 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: uLjaxiIgc9QlrycbadpGy8PPMY6alyV3 X-Proofpoint-ORIG-GUID: uLjaxiIgc9QlrycbadpGy8PPMY6alyV3 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-14_10,2023-08-10_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=820 mlxscore=0 lowpriorityscore=0 impostorscore=0 suspectscore=0 phishscore=0 adultscore=0 spamscore=0 bulkscore=0 priorityscore=1501 malwarescore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308140130 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 8/14/2023 12:32 AM, Arnd Bergmann wrote: > From: Arnd Bergmann > > This has never been used since the driver was merged, but it now causes > a W=1 warning in recent clang versions > > drivers/net/wireless/ath/ath9k/main.c:1566:21: error: parameter 'changed_flags' set but not used [-Werror,-Wunused-but-set-parameter] > drivers/net/wireless/ath/ath9k/htc_drv_main.c:1258:25: error: parameter 'changed_flags' set but not used [-Werror,-Wunused-but-set-parameter] > drivers/net/wireless/ath/ath5k/mac80211-ops.c:367:62: error: parameter 'changed_flags' set but not used [-Werror,-Wunused-but-set-parameter] > > Remove the bit manipulation on the otherwise unused parameter. > > Signed-off-by: Arnd Bergmann I'm wondering if the ath12k change should be separated into its own patch because 1) it is the most current driver with a dedicated list, and 2) it actually doesn't generate a warning because changed_flags is used, just not in a meaningful way. But I'll let Kalle make the call on that when he returns from holiday. Reviewed-by: Jeff Johnson