Commit 83d12a3
lockdep: selftest: fix warnings due to missing PREEMPT_RT conditionals
"lockdep: Selftest: Only do hardirq context test for raw spinlock"
disabled the execution of certain tests with PREEMPT_RT_FULL, but did
not prevent the tests from still being defined. This leads to warnings
like:
./linux/lib/locking-selftest.c:574:1: warning: 'irqsafe1_hard_rlock_12' defined but not used [-Wunused-function]
./linux/lib/locking-selftest.c:574:1: warning: 'irqsafe1_hard_rlock_21' defined but not used [-Wunused-function]
./linux/lib/locking-selftest.c:577:1: warning: 'irqsafe1_hard_wlock_12' defined but not used [-Wunused-function]
./linux/lib/locking-selftest.c:577:1: warning: 'irqsafe1_hard_wlock_21' defined but not used [-Wunused-function]
./linux/lib/locking-selftest.c:580:1: warning: 'irqsafe1_soft_spin_12' defined but not used [-Wunused-function]
...
Fixed by wrapping the test definitions in #ifndef CONFIG_PREEMPT_RT_FULL
conditionals.
Signed-off-by: Josh Cartwright <[email protected]>
Signed-off-by: Xander Huff <[email protected]>
Acked-by: Gratian Crisan <[email protected]>
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>1 parent 5577b31 commit 83d12a3
1 file changed
+27
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
| 593 | + | |
| 594 | + | |
593 | 595 | | |
594 | 596 | | |
595 | 597 | | |
| |||
605 | 607 | | |
606 | 608 | | |
607 | 609 | | |
| 610 | + | |
| 611 | + | |
608 | 612 | | |
609 | 613 | | |
610 | 614 | | |
| 615 | + | |
611 | 616 | | |
612 | 617 | | |
613 | 618 | | |
| |||
640 | 645 | | |
641 | 646 | | |
642 | 647 | | |
| 648 | + | |
| 649 | + | |
643 | 650 | | |
644 | 651 | | |
645 | 652 | | |
| |||
663 | 670 | | |
664 | 671 | | |
665 | 672 | | |
| 673 | + | |
| 674 | + | |
666 | 675 | | |
667 | 676 | | |
668 | 677 | | |
| |||
678 | 687 | | |
679 | 688 | | |
680 | 689 | | |
| 690 | + | |
| 691 | + | |
681 | 692 | | |
682 | 693 | | |
683 | 694 | | |
| |||
709 | 720 | | |
710 | 721 | | |
711 | 722 | | |
| 723 | + | |
| 724 | + | |
712 | 725 | | |
713 | 726 | | |
714 | 727 | | |
| |||
724 | 737 | | |
725 | 738 | | |
726 | 739 | | |
| 740 | + | |
| 741 | + | |
727 | 742 | | |
728 | 743 | | |
729 | 744 | | |
| |||
757 | 772 | | |
758 | 773 | | |
759 | 774 | | |
| 775 | + | |
| 776 | + | |
760 | 777 | | |
761 | 778 | | |
762 | 779 | | |
| |||
772 | 789 | | |
773 | 790 | | |
774 | 791 | | |
| 792 | + | |
| 793 | + | |
775 | 794 | | |
776 | 795 | | |
777 | 796 | | |
778 | 797 | | |
| 798 | + | |
| 799 | + | |
779 | 800 | | |
780 | 801 | | |
781 | 802 | | |
| |||
838 | 859 | | |
839 | 860 | | |
840 | 861 | | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
841 | 866 | | |
842 | 867 | | |
843 | 868 | | |
| |||
876 | 901 | | |
877 | 902 | | |
878 | 903 | | |
| 904 | + | |
| 905 | + | |
879 | 906 | | |
880 | 907 | | |
881 | 908 | | |
| |||
0 commit comments