Commit 6f043e7
asm-generic/io.h: Remove I/O port accessors for HAS_IOPORT=n
With all subsystems and drivers either declaring their dependence on
HAS_IOPORT or fencing I/O port specific code sections we can finally
make inb()/outb() and friends compile-time dependent on HAS_IOPORT as
suggested by Linus in the linked mail. The main benefit of this is that
on platforms such as s390 which have no meaningful way of implementing
inb()/outb() their use without the proper HAS_IOPORT dependency will
result in easy to catch and fix compile-time errors instead of compiling
code that can never work.
Link: https://lore.kernel.org/lkml/CAHk-=wg80je=K7madF4e7WrRNp37e3qh6y10Svhdc7O8SZ_-8g@mail.gmail.com/
Co-developed-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Acked-by: Lucas De Marchi <lucas.demarchi@intel.com>
Acked-by: Maciej W. Rozycki <macro@orcam.me.uk>
Acked-by: Damien Le Moal <dlemoal@kernel.org>
Acked-by: Jaroslav Kysela <perex@perex.cz>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net> # for ARCH=um
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Kalle Valo <kvalo@kernel.org>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Acked-by: Corey Minyard <cminyard@mvista.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Acked-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>1 parent 7c7e6c8 commit 6f043e7
1 file changed
Lines changed: 60 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
| 543 | + | |
543 | 544 | | |
544 | 545 | | |
545 | 546 | | |
| |||
549 | 550 | | |
550 | 551 | | |
551 | 552 | | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
552 | 557 | | |
553 | 558 | | |
554 | 559 | | |
555 | 560 | | |
| 561 | + | |
556 | 562 | | |
557 | 563 | | |
558 | 564 | | |
| |||
562 | 568 | | |
563 | 569 | | |
564 | 570 | | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
565 | 575 | | |
566 | 576 | | |
567 | 577 | | |
568 | 578 | | |
| 579 | + | |
569 | 580 | | |
570 | 581 | | |
571 | 582 | | |
| |||
575 | 586 | | |
576 | 587 | | |
577 | 588 | | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
578 | 593 | | |
579 | 594 | | |
580 | 595 | | |
581 | 596 | | |
| 597 | + | |
582 | 598 | | |
583 | 599 | | |
584 | 600 | | |
585 | 601 | | |
586 | 602 | | |
587 | 603 | | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
588 | 608 | | |
589 | 609 | | |
590 | 610 | | |
591 | 611 | | |
| 612 | + | |
592 | 613 | | |
593 | 614 | | |
594 | 615 | | |
595 | 616 | | |
596 | 617 | | |
597 | 618 | | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
598 | 623 | | |
599 | 624 | | |
600 | 625 | | |
601 | 626 | | |
| 627 | + | |
602 | 628 | | |
603 | 629 | | |
604 | 630 | | |
605 | 631 | | |
606 | 632 | | |
607 | 633 | | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
608 | 638 | | |
609 | 639 | | |
610 | 640 | | |
| |||
688 | 718 | | |
689 | 719 | | |
690 | 720 | | |
| 721 | + | |
691 | 722 | | |
692 | 723 | | |
693 | 724 | | |
694 | 725 | | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
695 | 730 | | |
696 | 731 | | |
697 | 732 | | |
698 | 733 | | |
| 734 | + | |
699 | 735 | | |
700 | 736 | | |
701 | 737 | | |
702 | 738 | | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
703 | 743 | | |
704 | 744 | | |
705 | 745 | | |
706 | 746 | | |
| 747 | + | |
707 | 748 | | |
708 | 749 | | |
709 | 750 | | |
710 | 751 | | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
711 | 756 | | |
712 | 757 | | |
713 | 758 | | |
714 | 759 | | |
| 760 | + | |
715 | 761 | | |
716 | 762 | | |
717 | 763 | | |
718 | 764 | | |
719 | 765 | | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
720 | 770 | | |
721 | 771 | | |
722 | 772 | | |
723 | 773 | | |
| 774 | + | |
724 | 775 | | |
725 | 776 | | |
726 | 777 | | |
727 | 778 | | |
728 | 779 | | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
729 | 784 | | |
730 | 785 | | |
731 | 786 | | |
732 | 787 | | |
| 788 | + | |
733 | 789 | | |
734 | 790 | | |
735 | 791 | | |
736 | 792 | | |
737 | 793 | | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
738 | 798 | | |
739 | 799 | | |
740 | 800 | | |
| |||
0 commit comments