From patchwork Thu Sep 5 11:01:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 11132777 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9D6F113B1 for ; Thu, 5 Sep 2019 11:01:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 728D82173B for ; Thu, 5 Sep 2019 11:01:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567681302; bh=eGJBkaPf3i/03H75Ui1ZA3fc5FWUK4xk+D6etZpFnr0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=DkfTunOVg4rNDl8vFrgHYxmogH12aQBVtLH4G0H1qYwxT5SiOUw3hylM+wYBeRw7M xhjDAa+1uXq99lEgajQpCqs9cYPTR+GxC3jnf7t8Ou4xJFOyjRpDqHQqWHkYsX+ffT YY5+XBtWn03fT1v6Symkcp2UfKme8m4A1zDQ4juE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388023AbfIELBe (ORCPT ); Thu, 5 Sep 2019 07:01:34 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:48310 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726137AbfIELBd (ORCPT ); Thu, 5 Sep 2019 07:01:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Gd5Si23CQTkjXHrd1kfDMwHId0XN7lelZ5t8iFh3FtY=; b=siCmQcbRBU1+a6LPDnLeI+LN/p uF+ApHOVakeqBxbCBMBZwDoLmgufJ81HdrUihZtcPe5S6KEWqVNV3oc5UOileqPOfagquF2TlEiMN +pQz2Ixl5/yy4+HIc/SDNs0XofIZM1HwJsmoliA35trjpswlq17SCovLc10tjyzz+5gkEqZKbp5Hp huh0bEpWI7NQOe2hg6Mv9EPS1DyYZbLvnng53LZfbS3z6X2pMxvjM+COAgUw6UVhUtLxh8i4S2Kyz yvOZo+4U51vnVQRLBmwX2D0rjXGblveF8ARgij8vSj5QIPwcabhjLVZtG9leHpulrZFNucttxnAS6 9+TclA9A==; Received: from 177.17.137.173.dynamic.adsl.gvt.net.br ([177.17.137.173] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1i5pW8-0003ac-Uc; Thu, 05 Sep 2019 11:01:32 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92.1) (envelope-from ) id 1i5pW6-00030x-Jb; Thu, 05 Sep 2019 08:01:30 -0300 From: Mauro Carvalho Chehab To: Linux Media Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , Greg Kroah-Hartman , Joe Perches , linux-kernel@vger.kernel.org, Jonathan Corbet , linux-doc@vger.kernel.org Subject: [PATCH 1/3] docs: sphinx: add SPDX header for some sphinx extensions Date: Thu, 5 Sep 2019 08:01:27 -0300 Message-Id: X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190905075028.643f4b9d@coco.lan> References: <20190905075028.643f4b9d@coco.lan> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Those extensions are released under GPLv2, as stated at the :license: markup tag. Add the corresponding SPDX tags for such license. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphinx/kernel_include.py | 1 + Documentation/sphinx/rstFlatTable.py | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/sphinx/kernel_include.py b/Documentation/sphinx/kernel_include.py index f523aa68a36b..7aaea4e31f78 100755 --- a/Documentation/sphinx/kernel_include.py +++ b/Documentation/sphinx/kernel_include.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # -*- coding: utf-8; mode: python -*- +# SPDX-License-Identifier: GPL-2.0 # pylint: disable=R0903, C0330, R0914, R0912, E0401 u""" diff --git a/Documentation/sphinx/rstFlatTable.py b/Documentation/sphinx/rstFlatTable.py index 2019a55f6b18..15769d01831b 100755 --- a/Documentation/sphinx/rstFlatTable.py +++ b/Documentation/sphinx/rstFlatTable.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # -*- coding: utf-8; mode: python -*- +# SPDX-License-Identifier: GPL-2.0 # pylint: disable=C0330, R0903, R0912 u""" From patchwork Thu Sep 5 11:01:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 11132775 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DFE8B14DE for ; Thu, 5 Sep 2019 11:01:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BA1252184B for ; Thu, 5 Sep 2019 11:01:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567681300; bh=mJJv7bKaAYOsFT1lvu/Ibyo80Mbk4EazeWj8qD3RaDw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=wC5cWNcLcjq/CQsrdcDguC2ByLBXTmytf8SPP1cO0unOpQ1Ias+ixgRoSC8Vbc8nU EByk5UobFyNvip2uq3+ea0B9t53sZMDxoC496XxUPNNKYMta9OBdBU2qdaKcxsZ8gJ m9XqsdSqc7RhfrTEtFfEBjjJphx0C27u/fwUxq4w= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388070AbfIELBe (ORCPT ); Thu, 5 Sep 2019 07:01:34 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:48338 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731928AbfIELBe (ORCPT ); Thu, 5 Sep 2019 07:01:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=btp8OApGG/3UFKYYTxwfb9hcf8w0H2Q+kH4+OloUAmQ=; b=H4AC6QROK9gZD7qqfPt1CtNbki vM/KrHR5a1dm7r1QFR9/MQAwj5yh09N+8A8sHcbiX+XjSwAtdT6wXJytkwdLetzLleQ7ndgD8gEuE 7iU70EgH+OES4UfasNZYXgMfNKe2BFz+x10Ev6p+gG0aBGOmVL+PHODqcbMgIyPIF0x1GP6v+MtP0 d112pnrU7WXlgFdaRgfJ+4PxUVa6llwdOVKL2qTaQmQ0k2z/YdcJgAUWP7/4xkwF4KLA2WfUX7LyF ODEuYJuQi4iPKlXCbFKZHlOZHRwHVCVRhigviN5iHNjUMQcszOgP3VWGlvJUQURFgRcDvtTkHqzS6 z+meT36A==; Received: from 177.17.137.173.dynamic.adsl.gvt.net.br ([177.17.137.173] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1i5pW8-0003aa-Rv; Thu, 05 Sep 2019 11:01:32 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92.1) (envelope-from ) id 1i5pW6-000310-KU; Thu, 05 Sep 2019 08:01:30 -0300 From: Mauro Carvalho Chehab To: Linux Media Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , Greg Kroah-Hartman , Joe Perches , linux-kernel@vger.kernel.org, Jonathan Corbet , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Thomas Gleixner , Allison Randal , Armijn Hemel Subject: [PATCH 2/3] tools: perf: fix SPDX header in the light of PEP-263 Date: Thu, 5 Sep 2019 08:01:28 -0300 Message-Id: <7df6e8b3afa04c350a795a366ac9d6fbb7f31980.1567681249.git.mchehab+samsung@kernel.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org As stated at PEP-263, the coding tag should be at the first or second line. On those two scripts, the tag is at the wrong line. It also contains a separate e-macs line to tell it to consider the file as a python one. Merge this with the encoding tag, using the same coding line that we're using on other python files. Signed-off-by: Mauro Carvalho Chehab --- tools/perf/python/tracepoint.py | 3 +-- tools/perf/python/twatch.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/perf/python/tracepoint.py b/tools/perf/python/tracepoint.py index eb76f6516247..b7717b501fd8 100755 --- a/tools/perf/python/tracepoint.py +++ b/tools/perf/python/tracepoint.py @@ -1,7 +1,6 @@ #! /usr/bin/python +# -*- coding: utf-8; mode: python -*- # SPDX-License-Identifier: GPL-2.0 -# -*- python -*- -# -*- coding: utf-8 -*- import perf diff --git a/tools/perf/python/twatch.py b/tools/perf/python/twatch.py index ff87ccf5b708..a95e59373ebd 100755 --- a/tools/perf/python/twatch.py +++ b/tools/perf/python/twatch.py @@ -1,7 +1,6 @@ #! /usr/bin/python +# -*- coding: utf-8; mode: python -*- # SPDX-License-Identifier: GPL-2.0-only -# -*- python -*- -# -*- coding: utf-8 -*- # twatch - Experimental use of the perf python interface # Copyright (C) 2011 Arnaldo Carvalho de Melo # From patchwork Thu Sep 5 11:01:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 11132779 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3D2EB13B1 for ; Thu, 5 Sep 2019 11:01:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1D8BE2184B for ; Thu, 5 Sep 2019 11:01:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567681306; bh=kmwjHPFU1JbSFrNJzH99A3LUKqJd2p+4I7VkSc68g0M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=QUGXV1q7Nz0rd9KNVvhobg9Z0oEwQ8fAbZPhymcGyVFufGHqfdjVqfy5IZ1t4qRya /m3s3AtJcYxI2/OwEoFlgg6AgKVDMocHkux2NgyuPJgDpHAyrrjOvbQd5QrBFolxlc F8g3w6VuKgQkaJnpFZ8guWeXkq+ZMNvSNJOvNU6E= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733182AbfIELBe (ORCPT ); Thu, 5 Sep 2019 07:01:34 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:48324 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731666AbfIELBd (ORCPT ); Thu, 5 Sep 2019 07:01:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Es/zISrtwllZAcTDfnj7OAQJAy+Bnf95m2mw7+BsncA=; b=d5bEaDa3VutuNsrUO1pWw6Bd8q utxDqk1SomwhtO3mKhSkGFfXWtNfsUfasMJAn40C1oxmRQzLmDFdPfThT21htY+tDVECIsRhbyauR lWDWrYYbzVnhvWWvEe7KSsju/20qQ+eAqWKoirezRb/0/lfocNMKr9Uid+8uGiAfdQa5lfUmASV6w h5l/Yf4W+CTipGXvxael20TpzjZ8MST9bUzXMtiVdB6xuEG668WKZDt+Wq7lQX+cqfb6f3+TNRcuo R8OL5+dnvX6lV1M7AVApC8lbLo3peVhl0X+9IUTkC7VZ9czlhn6aJSDeQgRS7sOfdupAIFprtTpU+ 6QyPeDNA==; Received: from 177.17.137.173.dynamic.adsl.gvt.net.br ([177.17.137.173] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1i5pW8-0003ab-Ux; Thu, 05 Sep 2019 11:01:32 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92.1) (envelope-from ) id 1i5pW6-000314-LJ; Thu, 05 Sep 2019 08:01:30 -0300 From: Mauro Carvalho Chehab To: Linux Media Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , Greg Kroah-Hartman , Joe Perches , linux-kernel@vger.kernel.org, Jonathan Corbet , Allison Randal , "Rafael J. Wysocki" , Enrico Weigelt , Thomas Gleixner , Doug Smythies Subject: [PATCH 3/3] tools: intel_pstate_tracer.py: fix SPDX header in the light of PEP-263 Date: Thu, 5 Sep 2019 08:01:29 -0300 Message-Id: <4c6c3a5a5c3f9ccc5409511f0372008af0706e53.1567681249.git.mchehab+samsung@kernel.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org As stated at PEP-263, the coding tag should be at the first or second line. On those two scripts, the tag is at the wrong line. Place it at the right place and use the same kind of line that we're using on other python scripts that also work fine with emacs. Signed-off-by: Mauro Carvalho Chehab --- tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py b/tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py index 2d6d342b148f..1009be489f9a 100755 --- a/tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py +++ b/tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py @@ -1,6 +1,6 @@ #!/usr/bin/python +# -*- coding: utf-8; mode: python -*- # SPDX-License-Identifier: GPL-2.0-only -# -*- coding: utf-8 -*- # """ This utility can be used to debug and tune the performance of the intel_pstate driver. This utility can be used in two ways: