* [jwboyer-fedora:f29 46/73] drivers/gpu/drm/i915/display/intel_display.c:13002:17: error: passing argument 2 of 'drm_dbg' makes pointer from integer without a cast
@ 2019-10-22 3:04 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-10-22 3:04 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4747 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jwboyer/fedora.git f29
head: 37fb1765ac730ceafda7192ad7a146348c5f81d5
commit: 998bb7fd059bd000e1f1b3a1479c040f3ea957ab [46/73] drm/i915: hush check crtc state
config: x86_64-randconfig-b003-201942 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
git checkout 998bb7fd059bd000e1f1b3a1479c040f3ea957ab
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from include/drm/drm_mm.h:49:0,
from include/drm/drm_vma_manager.h:26,
from include/drm/drm_gem.h:40,
from drivers/gpu/drm/i915/i915_drv.h:52,
from drivers/gpu/drm/i915/intel_drv.h:45,
from drivers/gpu/drm/i915/display/intel_dsi.h:29,
from drivers/gpu/drm/i915/display/intel_display.c:50:
drivers/gpu/drm/i915/display/intel_display.c: In function 'verify_crtc_state':
>> drivers/gpu/drm/i915/display/intel_display.c:13002:17: error: passing argument 2 of 'drm_dbg' makes pointer from integer without a cast [-Werror=int-conversion]
DRM_DEBUG_KMS(1, "pipe state doesn't match!\n");
^
include/drm/drm_print.h:366:22: note: in definition of macro 'DRM_DEBUG_KMS'
drm_dbg(DRM_UT_KMS, fmt, ##__VA_ARGS__)
^~~
include/drm/drm_print.h:283:6: note: expected 'const char *' but argument is of type 'int'
void drm_dbg(unsigned int category, const char *format, ...);
^~~~~~~
cc1: all warnings being treated as errors
vim +/drm_dbg +13002 drivers/gpu/drm/i915/display/intel_display.c
12940
12941 static void
12942 verify_crtc_state(struct drm_crtc *crtc,
12943 struct drm_crtc_state *old_crtc_state,
12944 struct drm_crtc_state *new_crtc_state)
12945 {
12946 struct drm_device *dev = crtc->dev;
12947 struct drm_i915_private *dev_priv = to_i915(dev);
12948 struct intel_encoder *encoder;
12949 struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
12950 struct intel_crtc_state *pipe_config, *sw_config;
12951 struct drm_atomic_state *old_state;
12952 bool active;
12953
12954 old_state = old_crtc_state->state;
12955 __drm_atomic_helper_crtc_destroy_state(old_crtc_state);
12956 pipe_config = to_intel_crtc_state(old_crtc_state);
12957 memset(pipe_config, 0, sizeof(*pipe_config));
12958 pipe_config->base.crtc = crtc;
12959 pipe_config->base.state = old_state;
12960
12961 DRM_DEBUG_KMS("[CRTC:%d:%s]\n", crtc->base.id, crtc->name);
12962
12963 active = dev_priv->display.get_pipe_config(intel_crtc, pipe_config);
12964
12965 /* we keep both pipes enabled on 830 */
12966 if (IS_I830(dev_priv))
12967 active = new_crtc_state->active;
12968
12969 I915_STATE_WARN(new_crtc_state->active != active,
12970 "crtc active state doesn't match with hw state "
12971 "(expected %i, found %i)\n", new_crtc_state->active, active);
12972
12973 I915_STATE_WARN(intel_crtc->active != new_crtc_state->active,
12974 "transitional active state does not match atomic hw state "
12975 "(expected %i, found %i)\n", new_crtc_state->active, intel_crtc->active);
12976
12977 for_each_encoder_on_crtc(dev, crtc, encoder) {
12978 enum pipe pipe;
12979
12980 active = encoder->get_hw_state(encoder, &pipe);
12981 I915_STATE_WARN(active != new_crtc_state->active,
12982 "[ENCODER:%i] active %i with crtc active %i\n",
12983 encoder->base.base.id, active, new_crtc_state->active);
12984
12985 I915_STATE_WARN(active && intel_crtc->pipe != pipe,
12986 "Encoder connected to wrong pipe %c\n",
12987 pipe_name(pipe));
12988
12989 if (active)
12990 encoder->get_config(encoder, pipe_config);
12991 }
12992
12993 intel_crtc_compute_pixel_rate(pipe_config);
12994
12995 if (!new_crtc_state->active)
12996 return;
12997
12998 intel_pipe_config_sanity_check(dev_priv, pipe_config);
12999
13000 sw_config = to_intel_crtc_state(new_crtc_state);
13001 if (!intel_pipe_config_compare(sw_config, pipe_config, false)) {
13002 DRM_DEBUG_KMS(1, "pipe state doesn't match!\n");
13003 intel_dump_pipe_config(pipe_config, NULL, "[hw state]");
13004 intel_dump_pipe_config(sw_config, NULL, "[sw state]");
13005 }
13006 }
13007
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 36607 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-22 3:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-22 3:04 [jwboyer-fedora:f29 46/73] drivers/gpu/drm/i915/display/intel_display.c:13002:17: error: passing argument 2 of 'drm_dbg' makes pointer from integer without a cast kbuild test robot
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.