From: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
To: lgirdwood@gmail.com, broonie@kernel.org, jyri.sarha@intel.com
Cc: alsa-devel@alsa-project.org,
pierre-louis.bossart@linux.intel.com,
kai.vehmanen@linux.intel.com, ranjani.sridharan@linux.intel.com
Subject: [PATCH 1/5] ASoC: SOF: probes: Replace [0] union members with DECLARE_FLEX_ARRAY()
Date: Mon, 31 Oct 2022 12:51:37 +0200 [thread overview]
Message-ID: <20221031105141.19037-2-peter.ujfalusi@linux.intel.com> (raw)
In-Reply-To: <20221031105141.19037-1-peter.ujfalusi@linux.intel.com>
From: Jyri Sarha <jyri.sarha@intel.com>
Replace probes related [0] arrays, all found within unions, with
DECLARE_FLEX_ARRAY() declarations.
Signed-off-by: Jyri Sarha <jyri.sarha@intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
---
sound/soc/sof/sof-client-probes.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sound/soc/sof/sof-client-probes.c b/sound/soc/sof/sof-client-probes.c
index ddeabbb5580e..e767e53f53d1 100644
--- a/sound/soc/sof/sof-client-probes.c
+++ b/sound/soc/sof/sof-client-probes.c
@@ -13,6 +13,7 @@
#include <linux/module.h>
#include <linux/pm_runtime.h>
#include <linux/string_helpers.h>
+#include <linux/stddef.h>
#include <sound/soc.h>
#include <sound/sof/header.h>
@@ -59,8 +60,8 @@ struct sof_ipc_probe_info_params {
struct sof_ipc_reply rhdr;
unsigned int num_elems;
union {
- struct sof_probe_dma dma[0];
- struct sof_probe_point_desc desc[0];
+ DECLARE_FLEX_ARRAY(struct sof_probe_dma, dma);
+ DECLARE_FLEX_ARRAY(struct sof_probe_point_desc, desc);
};
} __packed;
--
2.38.1
next prev parent reply other threads:[~2022-10-31 10:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-31 10:51 [PATCH 0/5] ASoC: SOF: client-probes: Add support for IPC4 Peter Ujfalusi
2022-10-31 10:51 ` Peter Ujfalusi [this message]
2022-10-31 10:51 ` [PATCH 2/5] ASoC: SOF: probes: Separate IPC3 operations to a separate file Peter Ujfalusi
2022-10-31 10:51 ` [PATCH 3/5] ASoC: SOF: client: Add sof_client_ipc_set_get_data() Peter Ujfalusi
2022-10-31 10:51 ` [PATCH 4/5] ASoC: SOF: client: Add sof_client_ipc4_find_module() function Peter Ujfalusi
2022-10-31 10:51 ` [PATCH 5/5] ASoC: SOF: IPC4: probes: Implement IPC4 ops for probes client device Peter Ujfalusi
2022-10-31 18:59 ` [PATCH 0/5] ASoC: SOF: client-probes: Add support for IPC4 Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221031105141.19037-2-peter.ujfalusi@linux.intel.com \
--to=peter.ujfalusi@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=jyri.sarha@intel.com \
--cc=kai.vehmanen@linux.intel.com \
--cc=lgirdwood@gmail.com \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=ranjani.sridharan@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox