drivers/gpu/drm/exynos/exynos_hdmi.c:725:22: warning: implicit conversion from 'int' to 'u8' (aka 'unsigned char') changes value from 5656 to 24
Mauro,
Below is a bugreport from 0day bot from a build with Clang, can you please take a look. It looks legit. Byte literals in hex should not have more than 2 digits, ie. 0xXX. Consider using the values you added modulo 16, in hex.
Quoted 395 lines · kbuild test robot
CC: kbuild-all(a)lists.01.org
TO: "Mauro (mdrjr) Ribeiro" <[email protected]>
CC: Marian Mihailescu <[email protected]>tree: https://github.com/tobetter/linux odroidxu4-5.4.y head: 3f6a9e533ea5b61bc00304f73365796aeba1756b commit: 87001ca11bea3006a3a3e18b43210d5851509806 [11/74] drm/exynos: add new HDMI PHY pll and resolutions + pre-build EDIDs config: arm64-defconfig (attached as .config) compiler: clang version 10.0.0 (git://gitmirror/llvm_project 7999cd41d16d841d66c9c91b56bddaf209c54955)reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
git checkout87001ca11bea3006a3a3e18b43210d5851509806
# save the attached .config to linux build tree
make.cross ARCH=arm64If you fix the issue, kindly add following tag
Reported-by kbuild test robot <[email protected]>All warnings (new ones prefixed by >>):
Quoted 1 line
Quoted 1 line
drivers/gpu/drm/exynos/exynos_hdmi.c:725:22: warning: implicit conversion from 'int' to 'u8' (aka 'unsigned char') changes value from 5656 to 24 [-Wconstant-conversion]0x01, 0xD1, 0x29, 0x1618, 0x418, 0x190, 0xF5, 0xCF, ^~~~~~ drivers/gpu/drm/exynos/exynos_hdmi.c:725:30: warning: implicit conversion from 'int' to 'u8' (aka 'unsigned char') changes value from 1048 to 24 [-Wconstant-conversion] 0x01, 0xD1, 0x29, 0x1618, 0x418, 0x190, 0xF5, 0xCF, ^~~~~ drivers/gpu/drm/exynos/exynos_hdmi.c:725:37: warning: implicit conversion from 'int' to 'u8' (aka 'unsigned char') changes value from 400 to 144 [-Wconstant-conversion] 0x01, 0xD1, 0x29, 0x1618, 0x418, 0x190, 0xF5, 0xCF, ^~~~~ drivers/gpu/drm/exynos/exynos_hdmi.c:726:10: warning: implicit conversion from 'int' to 'u8' (aka 'unsigned char') changes value from 360 to 104 [-Wconstant-conversion] 0x8D, 0x168, 0xF5, 0xD8, 0x45, 0xA0, 0xAC, 0x80, ^~~~~ drivers/gpu/drm/exynos/exynos_hdmi.c:149:19: warning: unused function 'dvi_force_enable' [-Wunused-function] static int __init dvi_force_enable(char *str) ^ drivers/gpu/drm/exynos/exynos_hdmi.c:163:19: warning: unused function 'hdmi_hpd_enable' [-Wunused-function] static int __init hdmi_hpd_enable(char *str) ^6 warnings generated.
vim +725
drivers/gpu/drm/exynos/exynos_hdmi.c395 396 static const struct hdmiphy_config hdmiphy_5420_configs[] = { 397 { 398 .pixel_clock = 25200000, 399 .conf = { 400 0x01, 0x52, 0x3F, 0x55, 0x40, 0x01, 0x00, 0xC8, 401 0x82, 0xC8, 0xBD, 0xD8, 0x45, 0xA0, 0xAC, 0x80, 402 0x06, 0x80, 0x01, 0x84, 0x05, 0x02, 0x24, 0x66, 403 0x54, 0xF4, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80, 404 }, 405 }, 406 { 407 .pixel_clock = 27000000, 408 .conf = { 409 0x01, 0xD1, 0x22, 0x51, 0x40, 0x08, 0xFC, 0xE0, 410 0x98, 0xE8, 0xCB, 0xD8, 0x45, 0xA0, 0xAC, 0x80, 411 0x06, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66, 412 0x54, 0xE4, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80, 413 }, 414 }, 415 { 416 .pixel_clock = 27027000, 417 .conf = { 418 0x01, 0xD1, 0x2D, 0x72, 0x40, 0x64, 0x12, 0xC8, 419 0x43, 0xE8, 0x0E, 0xD9, 0x45, 0xA0, 0xAC, 0x80, 420 0x26, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66, 421 0x54, 0xE3, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80, 422 }, 423 }, 424 { 425 .pixel_clock = 31490000, 426 .conf = { 427 0x01, 0xD1, 0x34, 0x74, 0x44, 0x3C, 0x3A, 0xC2, 428 0x81, 0xE8, 0x3B, 0xD9, 0x45, 0xA0, 0xAC, 0x80, 429 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, 430 0x54, 0xC3, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80, 431 }, 432 }, 433 { 434 .pixel_clock = 32000000, 435 .conf = { 436 0x01, 0x51, 0x28, 0x55, 0x44, 0x40, 0x00, 0xC8, 437 0x02, 0xC8, 0xF0, 0xD8, 0x45, 0xA0, 0xAC, 0x80, 438 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, 439 0x54, 0x80, 0x25, 0x01, 0x00, 0x00, 0x01, 0x80, 440 }, 441 }, 442 /* 443 * To support Vu5A, pixel clock 33.9MHz is needed 444 * but we don't have the exact HDMI PHY table 445 * so as a workaround, the closest table will be used. 446 */ 447 { 448 .pixel_clock = 33900000, 449 .conf = { 450 0x01, 0x51, 0x28, 0x55, 0x44, 0x40, 0x00, 0xC8, 451 0x02, 0xC8, 0xF0, 0xD8, 0x45, 0xA0, 0xAC, 0x80, 452 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, 453 0x54, 0x80, 0x25, 0x01, 0x00, 0x00, 0x01, 0x80, 454 }, 455 }, 456 { 457 .pixel_clock = 36000000, 458 .conf = { 459 0x01, 0x51, 0x2D, 0x55, 0x40, 0x40, 0x00, 0xC8, 460 0x02, 0xC8, 0x0E, 0xD9, 0x45, 0xA0, 0xAC, 0x80, 461 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66, 462 0x54, 0xAB, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80, 463 }, 464 }, 465 { 466 .pixel_clock = 40000000, 467 .conf = { 468 0x01, 0xD1, 0x21, 0x31, 0x40, 0x3C, 0x28, 0xC8, 469 0x87, 0xE8, 0xC8, 0xD8, 0x45, 0xA0, 0xAC, 0x80, 470 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66, 471 0x54, 0x9A, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80, 472 }, 473 }, 474 /* 475 * To support Vu7A+, pixel clock 49MHz is needed 476 * but we don't have the exact HDMI PHY table 477 * so as a workaround, the closest table will be used. 478 */ 479 { 480 .pixel_clock = 49000000, 481 .conf = { 482 0x01, 0x51, 0x2A, 0x32, 0x42, 0x30, 0x00, 0xC4, 483 0x83, 0xE8, 0xFC, 0xD8, 0x45, 0xA0, 0xAC, 0x80, 484 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, 485 0x54, 0x7A, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80, 486 }, 487 }, 488 { 489 .pixel_clock = 50400000, 490 .conf = { 491 0x01, 0x51, 0x2A, 0x32, 0x42, 0x30, 0x00, 0xC4, 492 0x83, 0xE8, 0xFC, 0xD8, 0x45, 0xA0, 0xAC, 0x80, 493 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, 494 0x54, 0x7A, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80, 495 }, 496 }, 497 { 498 .pixel_clock = 65000000, 499 .conf = { 500 0x01, 0xD1, 0x36, 0x34, 0x40, 0x0C, 0x04, 0xC8, 501 0x82, 0xE8, 0x45, 0xD9, 0x45, 0xA0, 0xAC, 0x80, 502 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66, 503 0x54, 0xBD, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80, 504 }, 505 }, 506 { 507 .pixel_clock = 71000000, 508 .conf = { 509 0x01, 0xD1, 0x3B, 0x35, 0x40, 0x0C, 0x04, 0xC8, 510 0x85, 0xE8, 0x63, 0xD9, 0x45, 0xA0, 0xAC, 0x80, 511 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66, 512 0x54, 0x57, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80, 513 }, 514 }, 515 { 516 .pixel_clock = 73250000, 517 .conf = { 518 0x01, 0xD1, 0x1F, 0x10, 0x40, 0x78, 0x8D, 0xC8, 519 0x81, 0xE8, 0xB7, 0xD8, 0x45, 0xA0, 0xAC, 0x80, 520 0x56, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66, 521 0x54, 0xA8, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80, 522 }, 523 }, 524 { 525 .pixel_clock = 74170000, 526 .conf = { 527 0x01, 0xD1, 0x1F, 0x10, 0x40, 0x5B, 0xEF, 0xC8, 528 0x81, 0xE8, 0xB9, 0xD8, 0x45, 0xA0, 0xAC, 0x80, 529 0x56, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66, 530 0x54, 0xA6, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80, 531 }, 532 }, 533 { 534 .pixel_clock = 74250000, 535 .conf = { 536 0x01, 0xD1, 0x1F, 0x10, 0x40, 0x40, 0xF8, 0x08, 537 0x81, 0xE8, 0xBA, 0xD8, 0x45, 0xA0, 0xAC, 0x80, 538 0x26, 0x80, 0x09, 0x84, 0x05, 0x22, 0x24, 0x66, 539 0x54, 0xA5, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80, 540 }, 541 }, 542 { 543 .pixel_clock = 80140000, 544 .conf = { 545 0x01, 0xD1, 0x21, 0x11, 0x40, 0x3C, 0x2F, 0xC8, 546 0x87, 0xE8, 0xC8, 0xD8, 0x45, 0xA0, 0xAC, 0x80, 547 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, 548 0x54, 0x99, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80, 549 }, 550 }, 551 { 552 .pixel_clock = 83500000, 553 .conf = { 554 0x01, 0xD1, 0x23, 0x11, 0x40, 0x0C, 0xFB, 0xC8, 555 0x85, 0xE8, 0xD1, 0xD8, 0x45, 0xA0, 0xAC, 0x80, 556 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66, 557 0x54, 0x4A, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80, 558 }, 559 }, 560 { 561 .pixel_clock = 84750000, 562 .conf = { 563 0x01, 0xD1, 0x23, 0x11, 0x40, 0x30, 0x1E, 0xC7, 564 0x84, 0xE8, 0xD4, 0xD8, 0x45, 0xA0, 0xAC, 0x80, 565 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, 566 0x54, 0x48, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80, 567 }, 568 }, 569 { 570 .pixel_clock = 85860000, 571 .conf = { 572 0x01, 0xD1, 0x24, 0x11, 0x40, 0x30, 0xD2, 0xC8, 573 0x84, 0xE8, 0xD5, 0xD8, 0x45, 0xA0, 0xAC, 0x80, 574 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, 575 0x54, 0x48, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80, 576 }, 577 }, 578 { 579 .pixel_clock = 88750000, 580 .conf = { 581 0x01, 0xD1, 0x25, 0x11, 0x40, 0x18, 0xFF, 0xC8, 582 0x83, 0xE8, 0xDE, 0xD8, 0x45, 0xA0, 0xAC, 0x80, 583 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66, 584 0x54, 0x45, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80, 585 }, 586 }, 587 { 588 .pixel_clock = 89750000, 589 .conf = { 590 0x01, 0xD1, 0x25, 0x11, 0x40, 0x30, 0x26, 0xC9, 591 0x83, 0xE8, 0xE0, 0xD8, 0x45, 0xA0, 0xAC, 0x80, 592 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, 593 0x54, 0x89, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80, 594 }, 595 }, 596 { 597 .pixel_clock = 104990000, 598 .conf = { 599 0x01, 0xD1, 0x2C, 0x12, 0x40, 0x78, 0xC3, 0xC2, 600 0x81, 0xE8, 0x06, 0xD9, 0x45, 0xA0, 0xAC, 0x80, 601 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, 602 0x54, 0x3B, 0x24, 0x00, 0x00, 0x00, 0x01, 0x80, 603 }, 604 }, 605 { 606 .pixel_clock = 106500000, 607 .conf = { 608 0x01, 0xD1, 0x2C, 0x12, 0x40, 0x0C, 0x09, 0xC8, 609 0x84, 0xE8, 0x0A, 0xD9, 0x45, 0xA0, 0xAC, 0x80, 610 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66, 611 0x54, 0x73, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80, 612 }, 613 }, 614 { 615 .pixel_clock = 106560000, 616 .conf = { 617 0x01, 0xD1, 0x2C, 0x12, 0x40, 0x78, 0x73, 0xCA, 618 0x85, 0xE8, 0x0B, 0xD9, 0x45, 0xA0, 0xAC, 0x80, 619 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, 620 0x54, 0x73, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80, 621 }, 622 }, 623 { 624 .pixel_clock = 107800000, 625 .conf = { 626 0x01, 0x51, 0x2D, 0x15, 0x40, 0x01, 0x00, 0xC8, 627 0x82, 0xC8, 0x0E, 0xD9, 0x45, 0xA0, 0xAC, 0x80, 628 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66, 629 0x54, 0xC7, 0x25, 0x03, 0x00, 0x00, 0x01, 0x80, 630 }, 631 }, 632 { 633 .pixel_clock = 108000000, 634 .conf = { 635 0x01, 0x51, 0x2D, 0x15, 0x40, 0x01, 0x00, 0xC8, 636 0x82, 0xC8, 0x0E, 0xD9, 0x45, 0xA0, 0xAC, 0x80, 637 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66, 638 0x54, 0xC7, 0x25, 0x03, 0x00, 0x00, 0x01, 0x80, 639 }, 640 }, 641 { 642 .pixel_clock = 115500000, 643 .conf = { 644 0x01, 0xD1, 0x30, 0x14, 0x40, 0x0C, 0x03, 0xC8, 645 0x88, 0xE8, 0x21, 0xD9, 0x45, 0xA0, 0xAC, 0x80, 646 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66, 647 0x54, 0x6A, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80, 648 }, 649 }, 650 { 651 .pixel_clock = 119000000, 652 .conf = { 653 0x01, 0xD1, 0x31, 0x14, 0x40, 0x78, 0x41, 0xCB, 654 0x89, 0xE8, 0x28, 0xD9, 0x45, 0xA0, 0xAC, 0x80, 655 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, 656 0x54, 0x68, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80, 657 }, 658 }, 659 { 660 .pixel_clock = 122000000, 661 .conf = { 662 0x01, 0xD1, 0x33, 0x14, 0x40, 0x30, 0xF0, 0xC8, 663 0x85, 0xE8, 0x31, 0xD9, 0x45, 0xA0, 0xAC, 0x80, 664 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, 665 0x54, 0x65, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80, 666 }, 667 }, 668 { 669 .pixel_clock = 125590000, 670 .conf = { 671 0x01, 0xD1, 0x34, 0x14, 0x40, 0x78, 0x4F, 0xC2, 672 0x81, 0xE8, 0x3A, 0xD9, 0x45, 0xA0, 0xAC, 0x80, 673 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, 674 0x54, 0x87, 0x25, 0x03, 0x00, 0x00, 0x01, 0x80, 675 }, 676 }, 677 { 678 .pixel_clock = 146250000, 679 .conf = { 680 0x01, 0xD1, 0x3D, 0x15, 0x40, 0x18, 0xFD, 0xC8, 681 0x83, 0xE8, 0x6E, 0xD9, 0x45, 0xA0, 0xAC, 0x80, 682 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x66, 683 0x54, 0x54, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80, 684 }, 685 }, 686 { 687 .pixel_clock = 148500000, 688 .conf = { 689 0x01, 0xD1, 0x1F, 0x00, 0x40, 0x40, 0xF8, 0x08, 690 0x81, 0xE8, 0xBA, 0xD8, 0x45, 0xA0, 0xAC, 0x80, 691 0x26, 0x80, 0x09, 0x84, 0x05, 0x22, 0x24, 0x66, 692 0x54, 0x4B, 0x25, 0x03, 0x00, 0x80, 0x01, 0x80, 693 }, 694 }, 695 { 696 .pixel_clock = 154000000, 697 .conf = { 698 0x01, 0xD1, 0x20, 0x01, 0x40, 0x30, 0x08, 0xCC, 699 0x8C, 0xE8, 0xC1, 0xD8, 0x45, 0xA0, 0xAC, 0x80, 700 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, 701 0x54, 0x3F, 0x25, 0x03, 0x00, 0x00, 0x01, 0x80, 702 }, 703 }, 704 { 705 .pixel_clock = 162000000, 706 .conf = { 707 0x01, 0xD1, 0x22, 0x01, 0x40, 0x30, 0xD4, 0xCD, 708 0x89, 0xE8, 0xC9, 0xD8, 0x45, 0xA0, 0xAC, 0x80, 709 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, 710 0x54, 0x31, 0x25, 0x03, 0x00, 0x00, 0x01, 0x80, 711 }, 712 }, 713 { 714 .pixel_clock = 164100000, 715 .conf = { 716 0x01, 0xD1, 0x22, 0x89, 0x49, 0xB0, 0x15, 0xCE, 717 0x8A, 0xF8, 0xCD, 0xD8, 0x45, 0xA0, 0xAC, 0x80, 718 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, 719 0x54, 0x2B, 0x25, 0x03, 0x00, 0x00, 0x01, 0x80, 720 }, 721 }, 722 { 723 .pixel_clock = 196900000, 724 .conf = {Quoted 1 line
725
0x01,0xD1,0x29,0x1618,0x418,0x190,0xF5,0xCF,726 0x8D, 0x168, 0xF5, 0xD8, 0x45, 0xA0, 0xAC, 0x80, 727 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, 728 0x54, 0xFA, 0x24, 0x03, 0x00, 0x00, 0x01, 0x80, 729 }, 730 }, 731 { 732 .pixel_clock = 204800000, 733 .conf = { 734 0x01, 0xD1, 0x2B, 0x02, 0x40, 0x30, 0xE0, 0xC8, 735 0x85, 0xE8, 0x00, 0xD9, 0x45, 0xA0, 0xAC, 0x80, 736 0x08, 0x80, 0x09, 0x84, 0x05, 0x02, 0x24, 0x86, 737 0x54, 0x3C, 0x24, 0x01, 0x00, 0x00, 0x01, 0x80, 738 }, 739 }, 740 }; 741---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation
Signature · 2 lines
Thanks, ~Nick Desaulniers