Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7074197rwn; Tue, 13 Sep 2022 13:28:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR5fyWDKoTfChmxXQN0bUtzQ9xw292y34kgSTDWlnDtdF7LJTT+3imnbm3r0BLzreDC9fyT3 X-Received: by 2002:a17:906:1350:b0:77f:76a7:a0f with SMTP id x16-20020a170906135000b0077f76a70a0fmr5472922ejb.503.1663100903942; Tue, 13 Sep 2022 13:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663100903; cv=none; d=google.com; s=arc-20160816; b=RwqdGJHx81Szsb3Q7gX4RZS9MSXFoWhmifW6Jgdp+VhJUUDdvYLRwJQClaRUsOS2QI AvvydlXt0MjOJREQayE2FYTmIoPmI1re1oPYADCm/IaDg8O+o/aLtnJ0OQUBdSl62NvI INrsIf13lhZL4fVoCyP8KfcwgBiMJ80jZl2TU+Uvy+1set1OwPVDq1Xsinil+Y9fPt5S VsgUnzqBDstdExBvsahVp3l5jI7nDODPjlQxVqj9sEB+dKqZ+JnwSzgXophvnBOidaPq qLWCXoMXpsXTaVydEaFz98Noanoe0GXOPu/u+h+yAYcErcS+HqbmbLmXqDx2cRzxAOEu BD9w== 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=hvA7f1e70eZNisribXBaUlpwC7EMEv0cHfgluSEMJ+0=; b=pHeusZLdw2vQoYUbtbvZF2jzsu/uyeDZNeA9quVuhmxGKIQL13wD/YiqNoi+A6PDkb v1UFdNBNw4lUhPaswDpfWCQt2rtHnI3zc2+OFJsL+KC5eMhWE1pdu+GgjA6ZnN6qkUaR cAzardZDGqSSmFFsmqwp6xhAsHJ8KjQfJVTKyonmeMZY1B3mAX+ICCEAMXPGdP4GjT2D 3tTLVbOBuKSyQ1QUl+ADZaaEOiDjBHa3jmAQWk/tIjqeqnRBIOvjiGyl69U/+1yShr1Z Hj1dECquVdRmsCXJIRm6vKg9zyMKMjzzrkyD2nWuPOPP3nwMf+ep4KoOFfelZUIwAea7 UIDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ieee.org header.s=google header.b="VPYxLNq/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ieee.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id va4-20020a17090711c400b00741a089d344si8302194ejb.809.2022.09.13.13.27.57; Tue, 13 Sep 2022 13:28:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@ieee.org header.s=google header.b="VPYxLNq/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ieee.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229552AbiIMUVi (ORCPT + 99 others); Tue, 13 Sep 2022 16:21:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbiIMUVf (ORCPT ); Tue, 13 Sep 2022 16:21:35 -0400 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1B17642DA for ; Tue, 13 Sep 2022 13:21:32 -0700 (PDT) Received: by mail-io1-xd2f.google.com with SMTP id p3so756384iof.13 for ; Tue, 13 Sep 2022 13:21:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ieee.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=hvA7f1e70eZNisribXBaUlpwC7EMEv0cHfgluSEMJ+0=; b=VPYxLNq/A8L3gEZHrUwDcoUnPkNmYHwG9R7k93b4XkSnlgyVRTTuF0O77jbNmGZoIO fdkM8HmeOpQpWtqZPyf/TvCIxnU02BuqCVAm/R7KpqMDY9pXP01TznUpG3VpHJ9t/OYj eUOiHs7lGwCuJU0/YT9WAeKvqZ79yq/a06L8Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=hvA7f1e70eZNisribXBaUlpwC7EMEv0cHfgluSEMJ+0=; b=ExkZvUmw852caeftAMfombCbCWnfrFHHJtgID0t5lSFtJaFhDPYmvIFvKIoM4uP6Gx Xy4xX5PKNwxrSMdw5fq9X3rcLZJtghljwJ/UDJ5IUudrl3eUcFDHdKJwkLVV1WPw2K4K 0aLLLgeYfFAdMTuWW3GINKqlWJaIwl4BsWyf0nTSEWbGUj3SMnFVLtjztwdU4QCnDwt0 4crJQxuSOjnl83POLqRXfMgV4JJepaXTvU8bZGhD/QIww5I1Kq14S+TtH95qOVrAxm5M FYRuPPrqnM0hSF8vo1+2M2f2gMMYR56PRNkJgJjqOPqc4N/+/cD9Cb4IwaCp7fXTXrH8 63Zg== X-Gm-Message-State: ACgBeo3094dGJhDMe8sRurafS5h5/OVb8BlzTRsgetFyHnkJfsLKNMlC wfMnulS4TQCmAj8BsD0VKPZGhA== X-Received: by 2002:a05:6602:2f13:b0:6a1:730a:dd9d with SMTP id q19-20020a0566022f1300b006a1730add9dmr3702301iow.114.1663100492023; Tue, 13 Sep 2022 13:21:32 -0700 (PDT) Received: from [172.22.22.4] ([98.61.227.136]) by smtp.googlemail.com with ESMTPSA id d4-20020a0566022be400b006a102cb4900sm5436906ioy.39.2022.09.13.13.21.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Sep 2022 13:21:31 -0700 (PDT) Message-ID: Date: Tue, 13 Sep 2022 15:21:30 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 0/4] Make QMI message rules const Content-Language: en-US To: Jeff Johnson , Alex Elder , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mathieu Poirier , Srinivas Kandagatla , Kalle Valo , Andy Gross , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, linux-remoteproc@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org References: <20220912232526.27427-1-quic_jjohnson@quicinc.com> <5b0543dc-4db8-aa33-d469-0e185c82b221@quicinc.com> From: Alex Elder In-Reply-To: <5b0543dc-4db8-aa33-d469-0e185c82b221@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org On 9/13/22 1:51 PM, Jeff Johnson wrote: > On 9/13/2022 6:58 AM, Alex Elder wrote: >> On 9/12/22 6:25 PM, Jeff Johnson wrote: >>> Change ff6d365898d ("soc: qcom: qmi: use const for struct >>> qmi_elem_info") allows QMI message encoding/decoding rules to be >>> const. So now update the definitions in the various client to take >>> advantage of this. Patches for ath10k and ath11k were perviously sent >>> separately. >> >> I have had this on my "to-do list" for ages. >> The commit you mention updates the code to be >> explicit about not modifying this data, which >> is great. >> >> I scanned over the changes, and I assume that >> all you did was make every object having the >> qmi_elem_info structure type be defined as >> constant. >> >> Why aren't you changing the "ei_array" field in >> the qmi_elem_info structure to be const?  Or the >> "ei" field of the qmi_msg_handler structure?  And >> the qmi_response_type_v01_ei array (and so on)? >> >> I like what you're doing, but can you comment >> on what your plans are beyond this series? >> Do you intend to make the rest of these fields >> const? > > Hi Alex, > My primary focus is the ath* wireless drivers, and my primary goal was > to make the tables there const. So this series, along with the two > out-of-series patches for ath10k and ath11k complete that scope of work. > > The lack of the other changes to the QMI data structures is simply due > to me not looking in depth at the QMI code beyond the registration > interface. > > I'll be happy to revisit this as a separate cleanup. Sounds good to me. Like I said I've wanted to do this myself, and as long as you've gotten this far I'd like to see it taken to completion. Compile-testing is most likely sufficient to make sure you got it right. I cherry-picked the one commit, and downloaded the series and found no new build warnings. Checkpatch would prefer you used "ff6d365898d4" rather than "ff6d365898d" for the commit ID, but that's OK. Anyway, for the whole series: Reviewed-by: Alex Elder > /jeff >