From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4C03C43331 for ; Thu, 5 Sep 2019 19:58:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EFB932082C for ; Thu, 5 Sep 2019 19:58:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567713489; bh=mJJv7bKaAYOsFT1lvu/Ibyo80Mbk4EazeWj8qD3RaDw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=z6nId1ggJ77zZN6pdot5Y7B+lBA6veIqItNdEAHAfEd0PQ5e/ZqRfjXLjaiW3gTbj 5zjpVEFTRpBdFl0w2GWqrg4wuaxVS+kriifcJq8yFJSPx2bIrfwFXcEmyI6v2Umto9 7HTerH3jjNt8wNL9lSN9u9N26NQmSvoCWiJ7K2qQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391588AbfIET57 (ORCPT ); Thu, 5 Sep 2019 15:57:59 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:58456 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388596AbfIET56 (ORCPT ); Thu, 5 Sep 2019 15:57:58 -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=Mo0egFykTZYm3jAW18Ny4uIu0/ os3uteHN//gSLMFWyQTtMjcyZ5rPrlhFwny4sc0p/KOc5OKVK5cpC/FcLnfh4Qj0SvCoeITdie5or Kg7Hn7oKL4brXaLz8lZ1wKnTmD2tz0+LrKhJ7FxYw/0ZEcA71LbQMKKzithJbdTEDS2QYorlA2txU dRtRNtkEYQ8jCsSdQMyzDeLq1qBEMf/ZtIYgJyq3rapo8xbxGDjabroWkeoe7MFz4F0AXxEF4r/A3 wVao44R7iYYkrP/Ho6FHoRu/0A0yC7Qqn/f8QFheY3WEJaBmI+1zogti22c2a5R3tYnRwYcuwXkak sGLtS4Nw==; Received: from [177.159.253.249] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1i5xtF-0000IF-Ce; Thu, 05 Sep 2019 19:57:57 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92.1) (envelope-from ) id 1i5xtC-0005m8-Lu; Thu, 05 Sep 2019 16:57:54 -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 , Armijn Hemel , Allison Randal , Thomas Gleixner Subject: [PATCH 2/6] tools: perf: fix SPDX header in the light of PEP-263 Date: Thu, 5 Sep 2019 16:57:49 -0300 Message-Id: X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 # -- 2.21.0