From 8fbd8211a40e084240fb8ceb8e6b12ba7cea261c Mon Sep 17 00:00:00 2001 From: Kent Gibson Date: Sat, 20 Jul 2024 17:44:41 +0800 Subject: [PATCH] remove old style build tags --- examples/find_line_by_name/main.go | 1 - examples/get_chip_info/main.go | 1 - examples/get_line_info/main.go | 1 - examples/get_line_value/main.go | 1 - examples/get_multiple_line_values/main.go | 1 - examples/readme/main.go | 1 - examples/reconfigure_input_to_output/main.go | 1 - examples/select_watch_line_value/main.go | 1 - examples/toggle_line_value/main.go | 1 - examples/toggle_multiple_line_values/main.go | 1 - examples/watch_line_info/main.go | 1 - examples/watch_line_rising/main.go | 1 - examples/watch_line_value/main.go | 1 - uapi/endian.go | 1 - uapi/endian_intel.go | 1 - uapi/eventdata.go | 1 - uapi/eventdata_386.go | 1 - uapi/ioctl.go | 1 - uapi/ioctl_default.go | 1 - uapi/ioctl_mips32.go | 1 - uapi/kernel_test.go | 1 - uapi/uapi.go | 1 - uapi/uapi_bmark_test.go | 1 - uapi/uapi_test.go | 1 - uapi/uapi_v2.go | 1 - uapi/uapi_v2_bmark_test.go | 1 - uapi/uapi_v2_test.go | 1 - 27 files changed, 27 deletions(-) diff --git a/examples/find_line_by_name/main.go b/examples/find_line_by_name/main.go index a584b66..207e535 100644 --- a/examples/find_line_by_name/main.go +++ b/examples/find_line_by_name/main.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build linux -// +build linux // A simple example that finds a line by name. package main diff --git a/examples/get_chip_info/main.go b/examples/get_chip_info/main.go index 357edd3..1502e82 100644 --- a/examples/get_chip_info/main.go +++ b/examples/get_chip_info/main.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build linux -// +build linux // A simple example that read the info for gpiochip0. package main diff --git a/examples/get_line_info/main.go b/examples/get_line_info/main.go index bae329e..a2036f0 100644 --- a/examples/get_line_info/main.go +++ b/examples/get_line_info/main.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build linux -// +build linux // A simple example that read the info for line 22 on gpiochip0. package main diff --git a/examples/get_line_value/main.go b/examples/get_line_value/main.go index d174b2d..6595ded 100644 --- a/examples/get_line_value/main.go +++ b/examples/get_line_value/main.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build linux -// +build linux // A simple example that reads an input pin. package main diff --git a/examples/get_multiple_line_values/main.go b/examples/get_multiple_line_values/main.go index 732549b..2eff3b3 100644 --- a/examples/get_multiple_line_values/main.go +++ b/examples/get_multiple_line_values/main.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build linux -// +build linux // A simple example that reads multiple input pins. package main diff --git a/examples/readme/main.go b/examples/readme/main.go index 8556611..d620150 100644 --- a/examples/readme/main.go +++ b/examples/readme/main.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build linux -// +build linux // A collection of code snippets contained in the READMEs. package main diff --git a/examples/reconfigure_input_to_output/main.go b/examples/reconfigure_input_to_output/main.go index 654c698..5bbbbb0 100644 --- a/examples/reconfigure_input_to_output/main.go +++ b/examples/reconfigure_input_to_output/main.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build linux -// +build linux // A simple example that requests a line as an input and subsequently switches it to an output. // DO NOT run this on a platform where that line is externally driven. diff --git a/examples/select_watch_line_value/main.go b/examples/select_watch_line_value/main.go index 7002b84..cc368b1 100644 --- a/examples/select_watch_line_value/main.go +++ b/examples/select_watch_line_value/main.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build linux -// +build linux // A simple example that watches an input pin and reports edge events. // This is a version of the watch_line_value example that performs the watching within diff --git a/examples/toggle_line_value/main.go b/examples/toggle_line_value/main.go index c057ee9..616623c 100644 --- a/examples/toggle_line_value/main.go +++ b/examples/toggle_line_value/main.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build linux -// +build linux // A simple example that toggles an output pin. package main diff --git a/examples/toggle_multiple_line_values/main.go b/examples/toggle_multiple_line_values/main.go index d64fbf2..447bb90 100644 --- a/examples/toggle_multiple_line_values/main.go +++ b/examples/toggle_multiple_line_values/main.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build linux -// +build linux // A simple example that toggles multiple output pins. package main diff --git a/examples/watch_line_info/main.go b/examples/watch_line_info/main.go index d9603fb..20c3ac0 100644 --- a/examples/watch_line_info/main.go +++ b/examples/watch_line_info/main.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build linux -// +build linux // A simple example that watches an input pin and reports edge events. package main diff --git a/examples/watch_line_rising/main.go b/examples/watch_line_rising/main.go index c63f53f..922ec41 100644 --- a/examples/watch_line_rising/main.go +++ b/examples/watch_line_rising/main.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build linux -// +build linux // A simple example that watches an input pin and reports rising edge events. package main diff --git a/examples/watch_line_value/main.go b/examples/watch_line_value/main.go index 1e04ed8..f1d0df0 100644 --- a/examples/watch_line_value/main.go +++ b/examples/watch_line_value/main.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build linux -// +build linux // A simple example that watches an input pin and reports edge events. package main diff --git a/uapi/endian.go b/uapi/endian.go index 277dd4e..42440e0 100644 --- a/uapi/endian.go +++ b/uapi/endian.go @@ -4,7 +4,6 @@ // don't build on platforms with fixed endianness //go:build !amd64 && !386 -// +build !amd64,!386 package uapi diff --git a/uapi/endian_intel.go b/uapi/endian_intel.go index 1d9265f..8698455 100644 --- a/uapi/endian_intel.go +++ b/uapi/endian_intel.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build 386 || amd64 -// +build 386 amd64 package uapi diff --git a/uapi/eventdata.go b/uapi/eventdata.go index e87927e..38edf0d 100644 --- a/uapi/eventdata.go +++ b/uapi/eventdata.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build linux && !386 -// +build linux,!386 // Package uapi provides the Linux GPIO UAPI definitions for gpiocdev. package uapi diff --git a/uapi/eventdata_386.go b/uapi/eventdata_386.go index 0a02b20..e00d971 100644 --- a/uapi/eventdata_386.go +++ b/uapi/eventdata_386.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build linux -// +build linux // Package uapi provides the Linux GPIO UAPI definitions for gpiocdev. package uapi diff --git a/uapi/ioctl.go b/uapi/ioctl.go index 1939b76..4f63e91 100644 --- a/uapi/ioctl.go +++ b/uapi/ioctl.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build linux -// +build linux package uapi diff --git a/uapi/ioctl_default.go b/uapi/ioctl_default.go index f7aed1f..878373d 100644 --- a/uapi/ioctl_default.go +++ b/uapi/ioctl_default.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build arm || arm64 || 386 || amd64 || riscv64 -// +build arm arm64 386 amd64 riscv64 package uapi diff --git a/uapi/ioctl_mips32.go b/uapi/ioctl_mips32.go index f33eae4..5a99140 100644 --- a/uapi/ioctl_mips32.go +++ b/uapi/ioctl_mips32.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build mips || mipsle || mips64 || mips64le || ppc64 || ppc64le || sparc || sparc64 -// +build mips mipsle mips64 mips64le ppc64 ppc64le sparc sparc64 package uapi diff --git a/uapi/kernel_test.go b/uapi/kernel_test.go index 0278aad..4c60292 100644 --- a/uapi/kernel_test.go +++ b/uapi/kernel_test.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build linux -// +build linux package uapi_test diff --git a/uapi/uapi.go b/uapi/uapi.go index 88edd48..d3037ff 100644 --- a/uapi/uapi.go +++ b/uapi/uapi.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build linux -// +build linux // Package uapi provides the Linux GPIO UAPI definitions for gpiocdev. package uapi diff --git a/uapi/uapi_bmark_test.go b/uapi/uapi_bmark_test.go index 206639e..38c1baa 100644 --- a/uapi/uapi_bmark_test.go +++ b/uapi/uapi_bmark_test.go @@ -3,7 +3,6 @@ // Copyright © 2020 Kent Gibson . //go:build linux -// +build linux package uapi_test diff --git a/uapi/uapi_test.go b/uapi/uapi_test.go index b7b568d..17daa66 100644 --- a/uapi/uapi_test.go +++ b/uapi/uapi_test.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build linux -// +build linux package uapi_test diff --git a/uapi/uapi_v2.go b/uapi/uapi_v2.go index 71ec306..f71021f 100644 --- a/uapi/uapi_v2.go +++ b/uapi/uapi_v2.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build linux -// +build linux package uapi diff --git a/uapi/uapi_v2_bmark_test.go b/uapi/uapi_v2_bmark_test.go index 829be94..4611e99 100644 --- a/uapi/uapi_v2_bmark_test.go +++ b/uapi/uapi_v2_bmark_test.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build linux -// +build linux package uapi_test diff --git a/uapi/uapi_v2_test.go b/uapi/uapi_v2_test.go index ef30db0..cf7fed9 100644 --- a/uapi/uapi_v2_test.go +++ b/uapi/uapi_v2_test.go @@ -3,7 +3,6 @@ // SPDX-License-Identifier: MIT //go:build linux -// +build linux package uapi_test