lkml.org 
[lkml]   [2022]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 1/4] soc: qcom: qmi: use const for struct qmi_elem_info
From
please ignore this, rookie git send-email mistake

On 8/22/2022 8:11 AM, Jeff Johnson wrote:
> Currently all usage of struct qmi_elem_info, which is used to define
> the QMI message encoding/decoding rules, does not use const. This
> prevents clients from registering const arrays. Since these arrays are
> always pre-defined, they should be const, so add the const qualifier
> to all places in the QMI interface where struct qmi_elem_info is used.
>
> Once this patch is in place, clients can independently update their
> pre-defined arrays to be const, as demonstrated in the QMI sample
> code.
>
> Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
> ---
>
> v2:
> Added missing const to skip_to_next_elem() return type
> Reported-by: kernel test robot <lkp@intel.com>

\
 
 \ /
  Last update: 2022-08-22 17:23    [W:0.031 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site