Jacob Garber has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/34918 )
Change subject: mainboard,autoport: Do not use others when enabling all ports ......................................................................
mainboard,autoport: Do not use others when enabling all ports
Port_List is an array of 8 elements, and GCC 9 is warning that there are no 'others' when all 8 elements are explicitly initialized, which is causing the build to fail. Remove the 'others => Disabled' clause to silence this.
Change-Id: Id082e7a76641438f3fb4c4d976dbd254a7053473 Signed-off-by: Jacob Garber jgarber1@ualberta.ca --- M src/mainboard/apple/macbookair4_2/gma-mainboard.ads M src/mainboard/google/butterfly/gma-mainboard.ads M src/mainboard/google/parrot/gma-mainboard.ads M src/mainboard/google/stout/gma-mainboard.ads M src/mainboard/hp/8460p/gma-mainboard.ads M src/mainboard/hp/8470p/gma-mainboard.ads M src/mainboard/hp/folio_9470m/gma-mainboard.ads M src/mainboard/hp/revolve_810_g1/gma-mainboard.ads M src/mainboard/lenovo/l520/gma-mainboard.ads M src/mainboard/lenovo/s230u/gma-mainboard.ads M src/mainboard/lenovo/t420/gma-mainboard.ads M src/mainboard/lenovo/t420s/gma-mainboard.ads M src/mainboard/lenovo/t430/gma-mainboard.ads M src/mainboard/lenovo/t430s/gma-mainboard.ads M src/mainboard/lenovo/t520/gma-mainboard.ads M src/mainboard/lenovo/t530/gma-mainboard.ads M src/mainboard/lenovo/x1_carbon_gen1/gma-mainboard.ads M src/mainboard/lenovo/x220/gma-mainboard.ads M src/mainboard/lenovo/x230/gma-mainboard.ads M src/mainboard/packardbell/ms2290/gma-mainboard.ads M src/mainboard/samsung/lumpy/gma-mainboard.ads M util/autoport/main.go 22 files changed, 22 insertions(+), 44 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/18/34918/1
diff --git a/src/mainboard/apple/macbookair4_2/gma-mainboard.ads b/src/mainboard/apple/macbookair4_2/gma-mainboard.ads index d4a5d7d..e45320f 100644 --- a/src/mainboard/apple/macbookair4_2/gma-mainboard.ads +++ b/src/mainboard/apple/macbookair4_2/gma-mainboard.ads @@ -28,7 +28,6 @@ HDMI2, HDMI3, Analog, - Internal, - others => Disabled); + Internal);
end GMA.Mainboard; diff --git a/src/mainboard/google/butterfly/gma-mainboard.ads b/src/mainboard/google/butterfly/gma-mainboard.ads index d4a5d7d..e45320f 100644 --- a/src/mainboard/google/butterfly/gma-mainboard.ads +++ b/src/mainboard/google/butterfly/gma-mainboard.ads @@ -28,7 +28,6 @@ HDMI2, HDMI3, Analog, - Internal, - others => Disabled); + Internal);
end GMA.Mainboard; diff --git a/src/mainboard/google/parrot/gma-mainboard.ads b/src/mainboard/google/parrot/gma-mainboard.ads index d4a5d7d..e45320f 100644 --- a/src/mainboard/google/parrot/gma-mainboard.ads +++ b/src/mainboard/google/parrot/gma-mainboard.ads @@ -28,7 +28,6 @@ HDMI2, HDMI3, Analog, - Internal, - others => Disabled); + Internal);
end GMA.Mainboard; diff --git a/src/mainboard/google/stout/gma-mainboard.ads b/src/mainboard/google/stout/gma-mainboard.ads index d4a5d7d..e45320f 100644 --- a/src/mainboard/google/stout/gma-mainboard.ads +++ b/src/mainboard/google/stout/gma-mainboard.ads @@ -28,7 +28,6 @@ HDMI2, HDMI3, Analog, - Internal, - others => Disabled); + Internal);
end GMA.Mainboard; diff --git a/src/mainboard/hp/8460p/gma-mainboard.ads b/src/mainboard/hp/8460p/gma-mainboard.ads index da495f6..01ae99a 100644 --- a/src/mainboard/hp/8460p/gma-mainboard.ads +++ b/src/mainboard/hp/8460p/gma-mainboard.ads @@ -28,7 +28,6 @@ HDMI2, HDMI3, Analog, - Internal, - others => Disabled); + Internal);
end GMA.Mainboard; diff --git a/src/mainboard/hp/8470p/gma-mainboard.ads b/src/mainboard/hp/8470p/gma-mainboard.ads index da495f6..01ae99a 100644 --- a/src/mainboard/hp/8470p/gma-mainboard.ads +++ b/src/mainboard/hp/8470p/gma-mainboard.ads @@ -28,7 +28,6 @@ HDMI2, HDMI3, Analog, - Internal, - others => Disabled); + Internal);
end GMA.Mainboard; diff --git a/src/mainboard/hp/folio_9470m/gma-mainboard.ads b/src/mainboard/hp/folio_9470m/gma-mainboard.ads index d4a5d7d..e45320f 100644 --- a/src/mainboard/hp/folio_9470m/gma-mainboard.ads +++ b/src/mainboard/hp/folio_9470m/gma-mainboard.ads @@ -28,7 +28,6 @@ HDMI2, HDMI3, Analog, - Internal, - others => Disabled); + Internal);
end GMA.Mainboard; diff --git a/src/mainboard/hp/revolve_810_g1/gma-mainboard.ads b/src/mainboard/hp/revolve_810_g1/gma-mainboard.ads index da495f6..01ae99a 100644 --- a/src/mainboard/hp/revolve_810_g1/gma-mainboard.ads +++ b/src/mainboard/hp/revolve_810_g1/gma-mainboard.ads @@ -28,7 +28,6 @@ HDMI2, HDMI3, Analog, - Internal, - others => Disabled); + Internal);
end GMA.Mainboard; diff --git a/src/mainboard/lenovo/l520/gma-mainboard.ads b/src/mainboard/lenovo/l520/gma-mainboard.ads index d4a5d7d..e45320f 100644 --- a/src/mainboard/lenovo/l520/gma-mainboard.ads +++ b/src/mainboard/lenovo/l520/gma-mainboard.ads @@ -28,7 +28,6 @@ HDMI2, HDMI3, Analog, - Internal, - others => Disabled); + Internal);
end GMA.Mainboard; diff --git a/src/mainboard/lenovo/s230u/gma-mainboard.ads b/src/mainboard/lenovo/s230u/gma-mainboard.ads index d4a5d7d..e45320f 100644 --- a/src/mainboard/lenovo/s230u/gma-mainboard.ads +++ b/src/mainboard/lenovo/s230u/gma-mainboard.ads @@ -28,7 +28,6 @@ HDMI2, HDMI3, Analog, - Internal, - others => Disabled); + Internal);
end GMA.Mainboard; diff --git a/src/mainboard/lenovo/t420/gma-mainboard.ads b/src/mainboard/lenovo/t420/gma-mainboard.ads index e9471cb..a19bf33 100644 --- a/src/mainboard/lenovo/t420/gma-mainboard.ads +++ b/src/mainboard/lenovo/t420/gma-mainboard.ads @@ -27,7 +27,6 @@ HDMI2, HDMI3, Analog, - Internal, - others => Disabled); + Internal);
end GMA.Mainboard; diff --git a/src/mainboard/lenovo/t420s/gma-mainboard.ads b/src/mainboard/lenovo/t420s/gma-mainboard.ads index d4a5d7d..e45320f 100644 --- a/src/mainboard/lenovo/t420s/gma-mainboard.ads +++ b/src/mainboard/lenovo/t420s/gma-mainboard.ads @@ -28,7 +28,6 @@ HDMI2, HDMI3, Analog, - Internal, - others => Disabled); + Internal);
end GMA.Mainboard; diff --git a/src/mainboard/lenovo/t430/gma-mainboard.ads b/src/mainboard/lenovo/t430/gma-mainboard.ads index e9471cb..a19bf33 100644 --- a/src/mainboard/lenovo/t430/gma-mainboard.ads +++ b/src/mainboard/lenovo/t430/gma-mainboard.ads @@ -27,7 +27,6 @@ HDMI2, HDMI3, Analog, - Internal, - others => Disabled); + Internal);
end GMA.Mainboard; diff --git a/src/mainboard/lenovo/t430s/gma-mainboard.ads b/src/mainboard/lenovo/t430s/gma-mainboard.ads index d635d88..8cf5d2f 100644 --- a/src/mainboard/lenovo/t430s/gma-mainboard.ads +++ b/src/mainboard/lenovo/t430s/gma-mainboard.ads @@ -28,7 +28,6 @@ HDMI2, HDMI3, Analog, - Internal, - others => Disabled); + Internal);
end GMA.Mainboard; diff --git a/src/mainboard/lenovo/t520/gma-mainboard.ads b/src/mainboard/lenovo/t520/gma-mainboard.ads index d4a5d7d..e45320f 100644 --- a/src/mainboard/lenovo/t520/gma-mainboard.ads +++ b/src/mainboard/lenovo/t520/gma-mainboard.ads @@ -28,7 +28,6 @@ HDMI2, HDMI3, Analog, - Internal, - others => Disabled); + Internal);
end GMA.Mainboard; diff --git a/src/mainboard/lenovo/t530/gma-mainboard.ads b/src/mainboard/lenovo/t530/gma-mainboard.ads index d4a5d7d..e45320f 100644 --- a/src/mainboard/lenovo/t530/gma-mainboard.ads +++ b/src/mainboard/lenovo/t530/gma-mainboard.ads @@ -28,7 +28,6 @@ HDMI2, HDMI3, Analog, - Internal, - others => Disabled); + Internal);
end GMA.Mainboard; diff --git a/src/mainboard/lenovo/x1_carbon_gen1/gma-mainboard.ads b/src/mainboard/lenovo/x1_carbon_gen1/gma-mainboard.ads index 99d0a28..6dca56b 100644 --- a/src/mainboard/lenovo/x1_carbon_gen1/gma-mainboard.ads +++ b/src/mainboard/lenovo/x1_carbon_gen1/gma-mainboard.ads @@ -25,7 +25,6 @@ HDMI1, HDMI2, HDMI3, - Internal, - others => Disabled); + Internal);
end GMA.Mainboard; diff --git a/src/mainboard/lenovo/x220/gma-mainboard.ads b/src/mainboard/lenovo/x220/gma-mainboard.ads index d4a5d7d..e45320f 100644 --- a/src/mainboard/lenovo/x220/gma-mainboard.ads +++ b/src/mainboard/lenovo/x220/gma-mainboard.ads @@ -28,7 +28,6 @@ HDMI2, HDMI3, Analog, - Internal, - others => Disabled); + Internal);
end GMA.Mainboard; diff --git a/src/mainboard/lenovo/x230/gma-mainboard.ads b/src/mainboard/lenovo/x230/gma-mainboard.ads index d4a5d7d..e45320f 100644 --- a/src/mainboard/lenovo/x230/gma-mainboard.ads +++ b/src/mainboard/lenovo/x230/gma-mainboard.ads @@ -28,7 +28,6 @@ HDMI2, HDMI3, Analog, - Internal, - others => Disabled); + Internal);
end GMA.Mainboard; diff --git a/src/mainboard/packardbell/ms2290/gma-mainboard.ads b/src/mainboard/packardbell/ms2290/gma-mainboard.ads index d4a5d7d..e45320f 100644 --- a/src/mainboard/packardbell/ms2290/gma-mainboard.ads +++ b/src/mainboard/packardbell/ms2290/gma-mainboard.ads @@ -28,7 +28,6 @@ HDMI2, HDMI3, Analog, - Internal, - others => Disabled); + Internal);
end GMA.Mainboard; diff --git a/src/mainboard/samsung/lumpy/gma-mainboard.ads b/src/mainboard/samsung/lumpy/gma-mainboard.ads index d4a5d7d..e45320f 100644 --- a/src/mainboard/samsung/lumpy/gma-mainboard.ads +++ b/src/mainboard/samsung/lumpy/gma-mainboard.ads @@ -28,7 +28,6 @@ HDMI2, HDMI3, Analog, - Internal, - others => Disabled); + Internal);
end GMA.Mainboard; diff --git a/util/autoport/main.go b/util/autoport/main.go index ab49a14..03523a2 100644 --- a/util/autoport/main.go +++ b/util/autoport/main.go @@ -925,8 +925,7 @@ HDMI2, HDMI3, Analog, - Internal, - others => Disabled); + Internal);
end GMA.Mainboard; `)