From: "Laguna, Lukasz" <lukasz.laguna@intel.com>
To: Kamil Konieczny <kamil.konieczny@linux.intel.com>,
<igt-dev@lists.freedesktop.org>
Cc: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
Subject: Re: [PATCH i-g-t] tests/intel/xe_sriov_mmio_regs: Fix warn about discarded const
Date: Tue, 10 Nov 2026 15:44:22 +0100 [thread overview]
Message-ID: <13bbb890-e6cf-4780-87bb-7e6f4fb4e566@intel.com> (raw)
In-Reply-To: <20261110142823.52591-1-kamil.konieczny@linux.intel.com>
On 11/10/2026 15:28, Kamil Konieczny wrote:
> Fix compiler warning:
>
> ../tests/intel/xe_sriov_mmio_regs.c: In function ‘skip_if_on_whitelist’:
> ../tests/intel/xe_sriov_mmio_regs.c:306:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
> 306 | item = bsearch(®_addr, &allowlist[0], ARRAY_SIZE(allowlist), sizeof(allowlist[0]),
>
> Cc: Lukasz Laguna <lukasz.laguna@intel.com>
Reviewed-by: Lukasz Laguna <lukasz.laguna@intel.com>
Thanks,
Lukasz
> Cc: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
> Signed-off-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
> ---
> tests/intel/xe_sriov_mmio_regs.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/intel/xe_sriov_mmio_regs.c b/tests/intel/xe_sriov_mmio_regs.c
> index 121ebdea6..1e7c9ff61 100644
> --- a/tests/intel/xe_sriov_mmio_regs.c
> +++ b/tests/intel/xe_sriov_mmio_regs.c
> @@ -298,7 +298,7 @@ static int addr_range_cmp(const void *addr, const void *range)
>
> static bool skip_if_on_whitelist(int pf_fd, uint32_t reg_addr)
> {
> - struct vf_regs_allowlist *item;
> + const struct vf_regs_allowlist *item;
>
> if (reg_addr < allowlist[0].start && reg_addr > allowlist[ARRAY_SIZE(allowlist) - 1].end)
> return false;
next prev parent reply other threads:[~2026-11-10 14:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-10 14:28 [PATCH i-g-t] tests/intel/xe_sriov_mmio_regs: Fix warn about discarded const Kamil Konieczny
2026-11-10 14:44 ` Laguna, Lukasz [this message]
2026-11-10 17:33 ` ✗ Fi.CI.BAT: failure for " Patchwork
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=13bbb890-e6cf-4780-87bb-7e6f4fb4e566@intel.com \
--to=lukasz.laguna@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@linux.intel.com \
--cc=marcin.bernatowicz@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.