tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: 6e9ad418e3e56843809b2de0e833818fd9fe72eb
commit: 6e9ad418e3e56843809b2de0e833818fd9fe72eb [5/5] BACKPORT: FROMLIST: drm/i915: Add
support for integrated privacy screens
config: x86_64-randconfig-c003-20200201 (attached as .config)
compiler: gcc-7 (Debian 7.5.0-3) 7.5.0
reproduce:
git checkout 6e9ad418e3e56843809b2de0e833818fd9fe72eb
# 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(a)intel.com>
Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings
All errors (new ones prefixed by >>):
drivers/gpu/drm/i915/intel_modes.c: In function
'intel_attach_privacy_screen_property':
> drivers/gpu/drm/i915/intel_modes.c:168:2: error: 'prop'
may be used uninitialized in this function [-Werror=maybe-uninitialized]
drm_object_attach_property(&connector->base, prop,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PRIVACY_SCREEN_DISABLED);
~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/prop +168 drivers/gpu/drm/i915/intel_modes.c
141
142 /**
143 * intel_attach_privacy_screen_property -
144 * create and attach the connecter's privacy-screen property. *
145 * @connector: connector for which to init the privacy-screen property
146 *
147 * This function creates and attaches the "privacy-screen" property to
the
148 * connector. Initial state of privacy-screen is set to disabled.
149 */
150 void
151 intel_attach_privacy_screen_property(struct drm_connector *connector)
152 {
153 struct intel_connector *intel_connector = to_intel_connector(connector);
154 struct drm_property *prop;
155
156 if (!intel_connector->privacy_screen_property) {
157 prop = drm_property_create_enum(connector->dev,
158 DRM_MODE_PROP_ENUM,
159 "privacy-screen",
160 privacy_screen_enum,
161 ARRAY_SIZE(privacy_screen_enum));
162 if (!prop)
163 return;
164
165 intel_connector->privacy_screen_property = prop;
166 }
167
168 drm_object_attach_property(&connector->base, prop,
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation