mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Sasha Levin <sashal@kernel.org>,
	Rob Clark <robin.clark@oss.qualcomm.com>
Cc: Dmitry Baryshkov <lumag@kernel.org>,
	Abhinav Kumar <abhinav.kumar@linux.dev>,
	Jessica Zhang <jesszhan0024@gmail.com>,
	Sean Paul <sean@poorly.run>,
	Marijn Suijten <marijn.suijten@somainline.org>,
	David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
	linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org,
	freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] drm/msm: Use designated initializers for the map_ops tables
Date: Mon, 30 Nov 2026 16:05:32 +0100	[thread overview]
Message-ID: <09801366-ebb3-4f95-9b43-7b710724a030@oss.qualcomm.com> (raw)
In-Reply-To: <20261130141501.1793800-1-sashal@kernel.org>

On 11/30/26 3:15 PM, Sasha Levin wrote:
> struct map_ops has only function pointers, so CONFIG_RANDSTRUCT
> randomizes its layout and it can't be initialized positionally. Builds
> with RANDSTRUCT fail on both tables:
> 
>   drivers/gpu/drm/msm/msm_iommu.c:228:2: error: a randomized struct can only be initialized with a designated initializer
>   drivers/gpu/drm/msm/msm_iommu.c:762:2: error: a randomized struct can only be initialized with a designated initializer
> 
> allmodconfig selects RANDSTRUCT_FULL when the compiler supports it and
> no Rust toolchain is available, so KernelCI's allmodconfig builds
> fail too.
> 
> Use designated initializers.
> 
> Fixes: aa20cf2a2960 ("drm/msm: Extract out map/unmap helpers")
> Fixes: 1600c10eeda0 ("drm/msm: Convert iommu map/unmap to helpers")
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/20261130033851.XvzzLGV5-lkp@intel.com/
> Signed-off-by: Sasha Levin <sashal@kernel.org>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

      parent reply	other threads:[~2026-11-30 15:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 14:15 Sasha Levin
2026-11-30 14:15 ` [PATCH 2/2] drm/msm: Fix the build without CONFIG_IOMMU_API Sasha Levin
2026-11-30 15:05 ` Konrad Dybcio [this message]

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=09801366-ebb3-4f95-9b43-7b710724a030@oss.qualcomm.com \
    --to=konrad.dybcio@oss.qualcomm.com \
    --cc=abhinav.kumar@linux.dev \
    --cc=airlied@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=freedreno@lists.freedesktop.org \
    --cc=jesszhan0024@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lumag@kernel.org \
    --cc=marijn.suijten@somainline.org \
    --cc=robin.clark@oss.qualcomm.com \
    --cc=sashal@kernel.org \
    --cc=sean@poorly.run \
    --cc=simona@ffwll.ch \
    /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

all inboxes | Powered by JetHome®