From: kernel test robot <lkp@intel.com>
To: Suraj Kandpal <suraj.kandpal@intel.com>,
dri-devel@lists.freedesktop.org, intel-xe@lists.freedesktop.org,
intel-gfx@lists.freedesktop.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
ankit.k.nautiyal@intel.com, arun.r.murthy@intel.com,
uma.shankar@intel.com, Suraj Kandpal <suraj.kandpal@intel.com>
Subject: Re: [PATCH 14/28] drm/i915/writeback: Define function for prepare and cleanup hooks
Date: Sat, 26 Jul 2025 21:42:18 +0800 [thread overview]
Message-ID: <202507262142.wObleFKc-lkp@intel.com> (raw)
In-Reply-To: <20250725050409.2687242-15-suraj.kandpal@intel.com>
Hi Suraj,
kernel test robot noticed the following build warnings:
[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on v6.16-rc7 next-20250725]
[cannot apply to linus/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Suraj-Kandpal/drm-writeback-Add-function-that-takes-preallocated-connector/20250725-133017
base: git://anongit.freedesktop.org/drm-intel for-linux-next
patch link: https://lore.kernel.org/r/20250725050409.2687242-15-suraj.kandpal%40intel.com
patch subject: [PATCH 14/28] drm/i915/writeback: Define function for prepare and cleanup hooks
config: i386-buildonly-randconfig-006-20250725 (https://download.01.org/0day-ci/archive/20250726/202507262142.wObleFKc-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250726/202507262142.wObleFKc-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507262142.wObleFKc-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/i915/display/intel_writeback.c:139:60: warning: variable 'ret' is uninitialized when used here [-Wuninitialized]
139 | drm_err(job->fb->dev, "Failed to map framebuffer: %d\n", ret);
| ^~~
include/drm/drm_print.h:628:46: note: expanded from macro 'drm_err'
628 | __drm_printk((drm), err,, "*ERROR* " fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~
include/drm/drm_print.h:615:55: note: expanded from macro '__drm_printk'
615 | dev_##level##type(__drm_to_dev(drm), "[drm] " fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~
include/linux/dev_printk.h:154:65: note: expanded from macro 'dev_err'
154 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~
include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_writeback.c:125:9: note: initialize the variable 'ret' to silence this warning
125 | int ret;
| ^
| = 0
drivers/gpu/drm/i915/display/intel_writeback.c:260:3: error: fallthrough annotation does not directly precede switch label
260 | fallthrough;
| ^
include/linux/compiler_attributes.h:214:41: note: expanded from macro 'fallthrough'
214 | # define fallthrough __attribute__((__fallthrough__))
| ^
1 warning and 1 error generated.
vim +/ret +139 drivers/gpu/drm/i915/display/intel_writeback.c
113
114 static int intel_writeback_prepare_job(struct drm_writeback_connector *wb_connector,
115 struct drm_writeback_job *job)
116 {
117 struct intel_writeback_connector *wb_conn =
118 to_intel_writeback_connector(wb_connector);
119 struct i915_vma *vma;
120 struct intel_writeback_job *wb_job;
121 unsigned long out_flags = 0;
122 const struct i915_gtt_view view = {
123 .type = I915_GTT_VIEW_NORMAL,
124 };
125 int ret;
126
127 if (!job->fb)
128 return 0;
129
130 if (job->fb->modifier != DRM_FORMAT_MOD_LINEAR)
131 return -EINVAL;
132
133 wb_job = kzalloc(sizeof(*wb_job), GFP_KERNEL);
134 if (!wb_job)
135 return -ENOMEM;
136
137 vma = intel_fb_pin_to_ggtt(job->fb, &view, 4 * 1024, 0, 0, true, &out_flags);
138 if (IS_ERR(vma)) {
> 139 drm_err(job->fb->dev, "Failed to map framebuffer: %d\n", ret);
140 ret = PTR_ERR(vma);
141 goto err;
142 }
143
144 wb_job->fb = job->fb;
145 wb_job->vma = vma;
146 wb_job->wb_connector = wb_connector;
147 drm_framebuffer_get(wb_job->fb);
148 job->priv = wb_job;
149 wb_conn->job = wb_job;
150
151 return 0;
152
153 err:
154 kfree(wb_job);
155 return ret;
156 }
157
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-07-26 13:42 UTC|newest]
Thread overview: 61+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-25 5:03 [PATCH 00/28] Enable Pipe writeback Suraj Kandpal
2025-07-25 5:03 ` [PATCH 01/28] drm/writeback: Add function that takes preallocated connector Suraj Kandpal
2025-07-26 12:15 ` Dmitry Baryshkov
2025-07-26 16:41 ` Kandpal, Suraj
2025-07-27 15:33 ` Dmitry Baryshkov
2025-08-01 4:03 ` Kandpal, Suraj
2025-07-25 5:03 ` [PATCH 02/28] drm/writeback: Add a helper function to get writeback connector Suraj Kandpal
2025-07-26 12:20 ` Dmitry Baryshkov
2025-07-26 16:43 ` Kandpal, Suraj
2025-07-27 15:33 ` Dmitry Baryshkov
2025-08-01 4:04 ` Kandpal, Suraj
2025-07-25 5:03 ` [PATCH 03/28] drm/writeback: Define function to get drm_connector from writeback Suraj Kandpal
2025-07-26 12:33 ` Dmitry Baryshkov
2025-07-26 16:49 ` Kandpal, Suraj
2025-07-27 15:54 ` Dmitry Baryshkov
2025-08-01 5:18 ` Kandpal, Suraj
2025-08-01 10:17 ` Dmitry Baryshkov
2025-08-01 11:57 ` Jani Nikula
2025-08-01 13:19 ` Dmitry Baryshkov
2025-08-01 13:57 ` Jani Nikula
2025-08-01 14:32 ` Kandpal, Suraj
2025-07-25 5:03 ` [PATCH 04/28] drm/i915/writeback: Add writeback registers Suraj Kandpal
2025-07-28 6:31 ` Murthy, Arun R
2025-07-25 5:03 ` [PATCH 05/28] drm/i915/writeback: Add some preliminary writeback definitions Suraj Kandpal
2025-07-25 5:03 ` [PATCH 06/28] drm/i915/writeback: Init writeback connector Suraj Kandpal
2025-07-25 5:03 ` [PATCH 07/28] drm/i915/writeback: Add function for get_writeback_connector Suraj Kandpal
2025-07-25 5:03 ` [PATCH 08/28] drm/i915/writeback: Define the get_connector_from_writeback hook Suraj Kandpal
2025-07-25 5:03 ` [PATCH 09/28] drm/i915/writeback: Add function to get modes Suraj Kandpal
2025-07-25 5:03 ` [PATCH 10/28] drm/i915/writeback: Add hook to check modes Suraj Kandpal
2025-07-25 5:03 ` [PATCH 11/28] drm/i915/writeback: Define encoder->get_hw_state Suraj Kandpal
2025-07-26 11:55 ` kernel test robot
2025-07-25 5:03 ` [PATCH 12/28] drm/i915/writeback: Fill encoder->get_config Suraj Kandpal
2025-07-25 5:03 ` [PATCH 13/28] drm/i915/writeback: Add private structure for writeback job Suraj Kandpal
2025-07-25 5:03 ` [PATCH 14/28] drm/i915/writeback: Define function for prepare and cleanup hooks Suraj Kandpal
2025-07-26 13:42 ` kernel test robot [this message]
2025-07-25 5:03 ` [PATCH 15/28] drm/i915/writeback: Define compute_config for writeback Suraj Kandpal
2025-07-25 5:03 ` [PATCH 16/28] drm/i915/writeback: Define function for connector function detect Suraj Kandpal
2025-07-25 5:03 ` [PATCH 17/28] drm/i915/writeback: Define function to destroy writeback connector Suraj Kandpal
2025-07-26 12:40 ` Dmitry Baryshkov
2025-07-26 16:29 ` Kandpal, Suraj
2025-07-27 15:55 ` Dmitry Baryshkov
2025-07-25 5:03 ` [PATCH 18/28] drm/i915/writeback: Add connector atomic check Suraj Kandpal
2025-07-26 12:38 ` Dmitry Baryshkov
2025-07-25 5:04 ` [PATCH 19/28] drm/i915/writeback: Add the enable sequence from writeback Suraj Kandpal
2025-07-25 5:04 ` [PATCH 20/28] drm/i915/writeback: Add writeback to xe Makefile Suraj Kandpal
2025-07-25 5:04 ` [PATCH 21/28] drm/i915/writeback: Define writeback frame capture function Suraj Kandpal
2025-07-25 5:04 ` [PATCH 22/28] drm/i915/writeback: Configure WD_STRIDE reg Suraj Kandpal
2025-07-25 5:04 ` [PATCH 23/28] drm/i915/writeback: Configure WD_SURF register Suraj Kandpal
2025-07-25 5:04 ` [PATCH 24/28] drm/i915/writeback: Enable writeback interrupts Suraj Kandpal
2025-07-25 5:04 ` [PATCH 25/28] drm/i915/writeback: Initialize writeback encoder Suraj Kandpal
2025-07-25 5:04 ` [PATCH 26/28] drm/i915/writeback: Define the disable sequence for writeback Suraj Kandpal
2025-07-25 5:04 ` [PATCH 27/28] drm/i915/writeback: Make exception for writeback connector Suraj Kandpal
2025-07-26 16:06 ` kernel test robot
2025-07-25 5:04 ` [PATCH 28/28] drm/i915/writeback: Modify state verify function Suraj Kandpal
2025-07-25 5:21 ` ✗ CI.checkpatch: warning for Enable Pipe writeback Patchwork
2025-07-25 5:22 ` ✓ CI.KUnit: success " Patchwork
2025-07-25 5:37 ` ✗ CI.checksparse: warning " Patchwork
2025-07-25 6:04 ` ✗ Xe.CI.BAT: failure " Patchwork
2025-07-25 7:15 ` ✗ Xe.CI.Full: " Patchwork
2025-07-26 12:39 ` [PATCH 00/28] " Dmitry Baryshkov
2025-07-26 16:33 ` Kandpal, Suraj
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=202507262142.wObleFKc-lkp@intel.com \
--to=lkp@intel.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=arun.r.murthy@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=suraj.kandpal@intel.com \
--cc=uma.shankar@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.