tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 009c9aa5be652675a06d5211e1640e02bbb1c33d commit: 02c587733c8161355a43e6e110c2e29bd0acff72 kasan: remove redundant config option date: 8 weeks ago config: x86_64-randconfig-a016-20210615 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=02c587733c8161355a43e6e110c2e29bd0acff72 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 02c587733c8161355a43e6e110c2e29bd0acff72 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): drivers/gpu/drm/panel/panel-samsung-ld9040.c:377:35: warning: unused variable 'ld9040_ids' [-Wunused-const-variable] static const struct spi_device_id ld9040_ids[] = { ^ >> drivers/gpu/drm/panel/panel-samsung-ld9040.c:239:12: warning: stack frame size of 8344 bytes in function 'ld9040_prepare' [-Wframe-larger-than=] static int ld9040_prepare(struct drm_panel *panel) ^ 2 warnings generated. -- >> drivers/usb/gadget/udc/max3420_udc.c:843:12: warning: stack frame size of 13976 bytes in function 'max3420_thread' [-Wframe-larger-than=] static int max3420_thread(void *dev_id) ^ 1 warning generated. vim +/ld9040_prepare +239 drivers/gpu/drm/panel/panel-samsung-ld9040.c ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 238 099b3e8699322e drivers/gpu/drm/panel/panel-ld9040.c Ajay Kumar 2014-07-31 @239 static int ld9040_prepare(struct drm_panel *panel) ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 240 { ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 241 struct ld9040 *ctx = panel_to_ld9040(panel); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 242 int ret; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 243 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 244 ret = ld9040_power_on(ctx); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 245 if (ret < 0) ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 246 return ret; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 247 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 248 ld9040_init(ctx); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 249 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 250 ret = ld9040_clear_error(ctx); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 251 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 252 if (ret < 0) 8141028278c2ea drivers/gpu/drm/panel/panel-ld9040.c Ajay Kumar 2014-07-31 253 ld9040_unprepare(panel); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 254 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 255 return ret; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 256 } ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 257 8141028278c2ea drivers/gpu/drm/panel/panel-ld9040.c Ajay Kumar 2014-07-31 258 static int ld9040_enable(struct drm_panel *panel) 8141028278c2ea drivers/gpu/drm/panel/panel-ld9040.c Ajay Kumar 2014-07-31 259 { 8141028278c2ea drivers/gpu/drm/panel/panel-ld9040.c Ajay Kumar 2014-07-31 260 return 0; 8141028278c2ea drivers/gpu/drm/panel/panel-ld9040.c Ajay Kumar 2014-07-31 261 } 8141028278c2ea drivers/gpu/drm/panel/panel-ld9040.c Ajay Kumar 2014-07-31 262 0ce8ddd8e06dcb drivers/gpu/drm/panel/panel-samsung-ld9040.c Sam Ravnborg 2019-12-07 263 static int ld9040_get_modes(struct drm_panel *panel, 0ce8ddd8e06dcb drivers/gpu/drm/panel/panel-samsung-ld9040.c Sam Ravnborg 2019-12-07 264 struct drm_connector *connector) ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 265 { ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 266 struct ld9040 *ctx = panel_to_ld9040(panel); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 267 struct drm_display_mode *mode; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 268 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 269 mode = drm_mode_create(connector->dev); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 270 if (!mode) { 5936b3bdaa8889 drivers/gpu/drm/panel/panel-samsung-ld9040.c Sam Ravnborg 2020-08-15 271 dev_err(panel->dev, "failed to create a new display mode\n"); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 272 return 0; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 273 } ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 274 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 275 drm_display_mode_from_videomode(&ctx->vm, mode); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 276 mode->width_mm = ctx->width_mm; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 277 mode->height_mm = ctx->height_mm; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 278 connector->display_info.width_mm = mode->width_mm; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 279 connector->display_info.height_mm = mode->height_mm; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 280 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 281 mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 282 drm_mode_probed_add(connector, mode); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 283 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 284 return 1; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 285 } ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 286 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 287 static const struct drm_panel_funcs ld9040_drm_funcs = { ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 288 .disable = ld9040_disable, 099b3e8699322e drivers/gpu/drm/panel/panel-ld9040.c Ajay Kumar 2014-07-31 289 .unprepare = ld9040_unprepare, 099b3e8699322e drivers/gpu/drm/panel/panel-ld9040.c Ajay Kumar 2014-07-31 290 .prepare = ld9040_prepare, ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 291 .enable = ld9040_enable, ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 292 .get_modes = ld9040_get_modes, ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 293 }; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 294 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 295 static int ld9040_parse_dt(struct ld9040 *ctx) ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 296 { ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 297 struct device *dev = ctx->dev; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 298 struct device_node *np = dev->of_node; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 299 int ret; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 300 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 301 ret = of_get_videomode(np, &ctx->vm, 0); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 302 if (ret < 0) ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 303 return ret; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 304 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 305 of_property_read_u32(np, "power-on-delay", &ctx->power_on_delay); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 306 of_property_read_u32(np, "reset-delay", &ctx->reset_delay); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 307 of_property_read_u32(np, "panel-width-mm", &ctx->width_mm); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 308 of_property_read_u32(np, "panel-height-mm", &ctx->height_mm); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 309 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 310 return 0; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 311 } ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 312 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 313 static int ld9040_probe(struct spi_device *spi) ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 314 { ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 315 struct device *dev = &spi->dev; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 316 struct ld9040 *ctx; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 317 int ret; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 318 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 319 ctx = devm_kzalloc(dev, sizeof(struct ld9040), GFP_KERNEL); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 320 if (!ctx) ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 321 return -ENOMEM; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 322 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 323 spi_set_drvdata(spi, ctx); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 324 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 325 ctx->dev = dev; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 326 ctx->brightness = ARRAY_SIZE(ld9040_gammas) - 1; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 327 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 328 ret = ld9040_parse_dt(ctx); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 329 if (ret < 0) ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 330 return ret; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 331 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 332 ctx->supplies[0].supply = "vdd3"; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 333 ctx->supplies[1].supply = "vci"; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 334 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(ctx->supplies), ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 335 ctx->supplies); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 336 if (ret < 0) ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 337 return ret; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 338 8a8cc83cbd081b drivers/gpu/drm/panel/panel-ld9040.c Alexandre Courbot 2014-10-23 339 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 340 if (IS_ERR(ctx->reset_gpio)) { ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 341 dev_err(dev, "cannot get reset-gpios %ld\n", ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 342 PTR_ERR(ctx->reset_gpio)); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 343 return PTR_ERR(ctx->reset_gpio); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 344 } ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 345 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 346 spi->bits_per_word = 9; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 347 ret = spi_setup(spi); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 348 if (ret < 0) { ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 349 dev_err(dev, "spi setup failed.\n"); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 350 return ret; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 351 } ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 352 9a2654c0f62a17 drivers/gpu/drm/panel/panel-samsung-ld9040.c Laurent Pinchart 2019-09-04 353 drm_panel_init(&ctx->panel, dev, &ld9040_drm_funcs, 9a2654c0f62a17 drivers/gpu/drm/panel/panel-samsung-ld9040.c Laurent Pinchart 2019-09-04 354 DRM_MODE_CONNECTOR_DPI); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 355 c3ee8c65f63799 drivers/gpu/drm/panel/panel-samsung-ld9040.c Bernard Zhao 2020-08-01 356 drm_panel_add(&ctx->panel); c3ee8c65f63799 drivers/gpu/drm/panel/panel-samsung-ld9040.c Bernard Zhao 2020-08-01 357 c3ee8c65f63799 drivers/gpu/drm/panel/panel-samsung-ld9040.c Bernard Zhao 2020-08-01 358 return 0; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 359 } ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 360 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 361 static int ld9040_remove(struct spi_device *spi) ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 362 { ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 363 struct ld9040 *ctx = spi_get_drvdata(spi); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 364 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 365 ld9040_power_off(ctx); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 366 drm_panel_remove(&ctx->panel); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 367 ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 368 return 0; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 369 } ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 370 1a8f9056f59e01 drivers/gpu/drm/panel/panel-ld9040.c Thierry Reding 2015-04-14 371 static const struct of_device_id ld9040_of_match[] = { ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 372 { .compatible = "samsung,ld9040" }, ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 373 { } ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 374 }; ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 375 MODULE_DEVICE_TABLE(of, ld9040_of_match); ff219937763253 drivers/gpu/drm/panel/panel-ld9040.c Andrzej Hajda 2014-03-26 376 6915db346039b3 drivers/gpu/drm/panel/panel-samsung-ld9040.c Marek Szyprowski 2020-02-20 @377 static const struct spi_device_id ld9040_ids[] = { 6915db346039b3 drivers/gpu/drm/panel/panel-samsung-ld9040.c Marek Szyprowski 2020-02-20 378 { "ld9040", }, 6915db346039b3 drivers/gpu/drm/panel/panel-samsung-ld9040.c Marek Szyprowski 2020-02-20 379 { /* sentinel */ } 6915db346039b3 drivers/gpu/drm/panel/panel-samsung-ld9040.c Marek Szyprowski 2020-02-20 380 }; 6915db346039b3 drivers/gpu/drm/panel/panel-samsung-ld9040.c Marek Szyprowski 2020-02-20 381 MODULE_DEVICE_TABLE(spi, ld9040_ids); 6915db346039b3 drivers/gpu/drm/panel/panel-samsung-ld9040.c Marek Szyprowski 2020-02-20 382 :::::: The code at line 239 was first introduced by commit :::::: 099b3e8699322efb7229913d2c1651588205f182 drm/panel: ld9040: Add dummy prepare and unprepare routines :::::: TO: Ajay Kumar <ajaykumar.rs@xxxxxxxxxxx> :::::: CC: Thierry Reding <treding@xxxxxxxxxx> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip