[PATCH v1 1/8] perf smt: Tidy header guard add SPDX

Ian Rogers posted 8 patches 3 years, 7 months ago
There is a newer version of this series
[PATCH v1 1/8] perf smt: Tidy header guard add SPDX
Posted by Ian Rogers 3 years, 7 months ago
Make the header guard consistent with others.

Signed-off-by: Ian Rogers <irogers@google.com>
---
 tools/perf/util/smt.c | 1 +
 tools/perf/util/smt.h | 7 ++++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/tools/perf/util/smt.c b/tools/perf/util/smt.c
index 2b0a36ebf27a..8fed03283c85 100644
--- a/tools/perf/util/smt.c
+++ b/tools/perf/util/smt.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0-only
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
diff --git a/tools/perf/util/smt.h b/tools/perf/util/smt.h
index b8414b7bcbc8..a98d65808f6a 100644
--- a/tools/perf/util/smt.h
+++ b/tools/perf/util/smt.h
@@ -1,6 +1,7 @@
-#ifndef SMT_H
-#define SMT_H 1
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __SMT_H
+#define __SMT_H 1
 
 int smt_on(void);
 
-#endif
+#endif /* __SMT_H */
-- 
2.37.2.672.g94769d06f0-goog
Re: [PATCH v1 1/8] perf smt: Tidy header guard add SPDX
Posted by Arnaldo Carvalho de Melo 3 years, 7 months ago
Em Tue, Aug 30, 2022 at 09:48:39AM -0700, Ian Rogers escreveu:
> Make the header guard consistent with others.

Thanks, applied to perf/core, pushing it out now.

- Arnaldo

 
> Signed-off-by: Ian Rogers <irogers@google.com>
> ---
>  tools/perf/util/smt.c | 1 +
>  tools/perf/util/smt.h | 7 ++++---
>  2 files changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/tools/perf/util/smt.c b/tools/perf/util/smt.c
> index 2b0a36ebf27a..8fed03283c85 100644
> --- a/tools/perf/util/smt.c
> +++ b/tools/perf/util/smt.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-only
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <unistd.h>
> diff --git a/tools/perf/util/smt.h b/tools/perf/util/smt.h
> index b8414b7bcbc8..a98d65808f6a 100644
> --- a/tools/perf/util/smt.h
> +++ b/tools/perf/util/smt.h
> @@ -1,6 +1,7 @@
> -#ifndef SMT_H
> -#define SMT_H 1
> +/* SPDX-License-Identifier: GPL-2.0 */
> +#ifndef __SMT_H
> +#define __SMT_H 1
>  
>  int smt_on(void);
>  
> -#endif
> +#endif /* __SMT_H */
> -- 
> 2.37.2.672.g94769d06f0-goog

-- 

- Arnaldo