Commit 96c623e
of: add of_property_read_variable_* dummy helpers
Commit a67e947 ("of: Add array read functions with min/max size
limits") added a new interface for reading variable-length arrays from
DT properties. One user was added in dsa recently and this causes a
build error because that code can be built with CONFIG_OF disabled:
net/dsa/dsa2.c: In function 'dsa_switch_parse_member_of':
net/dsa/dsa2.c:678:7: error: implicit declaration of function 'of_property_read_variable_u32_array'; did you mean 'of_property_read_u32_array'? [-Werror=implicit-function-declaration]
This adds a dummy functions for of_property_read_variable_u32_array()
and a few others that had been missing here. I decided to move
of_property_read_string() and of_property_read_string_helper() in the
process to make it easier to compare the two sets of function prototypes
to make sure they match.
Fixes: 975e6e3 ("net: dsa: rework switch parsing")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 42ca728 commit 96c623e
1 file changed
+50
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | 678 | | |
685 | 679 | | |
686 | 680 | | |
| |||
707 | 701 | | |
708 | 702 | | |
709 | 703 | | |
710 | | - | |
711 | | - | |
712 | | - | |
| 704 | + | |
| 705 | + | |
713 | 706 | | |
714 | 707 | | |
715 | 708 | | |
716 | 709 | | |
717 | | - | |
718 | | - | |
719 | | - | |
| 710 | + | |
| 711 | + | |
720 | 712 | | |
721 | 713 | | |
722 | 714 | | |
| |||
744 | 736 | | |
745 | 737 | | |
746 | 738 | | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
747 | 762 | | |
748 | 763 | | |
749 | 764 | | |
750 | 765 | | |
751 | 766 | | |
752 | 767 | | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
753 | 784 | | |
754 | 785 | | |
755 | 786 | | |
756 | 787 | | |
757 | 788 | | |
758 | 789 | | |
759 | 790 | | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
760 | 798 | | |
761 | 799 | | |
762 | 800 | | |
| |||
0 commit comments