lkml.org 
[lkml]   [2024]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH v2 01/14] ASoC: SOF: debug: Constify local snd_sof_dsp_ops
    Constify the pointer to 'struct snd_sof_dsp_ops' to annotate that
    functioon does not modify pointed data.

    Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
    ---
    sound/soc/sof/debug.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/sound/soc/sof/debug.c b/sound/soc/sof/debug.c
    index cf282c8b18af..884d85770426 100644
    --- a/sound/soc/sof/debug.c
    +++ b/sound/soc/sof/debug.c
    @@ -311,8 +311,8 @@ EXPORT_SYMBOL_GPL(snd_sof_dbg_memory_info_init);

    int snd_sof_dbg_init(struct snd_sof_dev *sdev)
    {
    + const struct snd_sof_dsp_ops *ops = sof_ops(sdev);
    struct snd_sof_pdata *plat_data = sdev->pdata;
    - struct snd_sof_dsp_ops *ops = sof_ops(sdev);
    const struct snd_sof_debugfs_map *map;
    struct dentry *fw_profile;
    int i;
    --
    2.43.0


    \
     
     \ /
      Last update: 2024-05-27 18:04    [W:7.432 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site