From patchwork Tue Jun 13 10:28:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9783633 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E30CD60325 for ; Tue, 13 Jun 2017 10:29:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D0FB228651 for ; Tue, 13 Jun 2017 10:29:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C465328583; Tue, 13 Jun 2017 10:29:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 55AC228583 for ; Tue, 13 Jun 2017 10:29:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=uvLDRTtNs9kat8XcvLCHUHJUQs61JLrARxA66HdfgEM=; b=bSe 3ZUCeYVSZn9kQQF+7YfEbntjfBuvBM18B3Xj6fxGc9RrLC3NxydOdgrZA04DqGr8T6vAxTaDERQBx bvfdxYiHTQKXjg5jVQEPqELWEm4PlToodKEzS+mKcioJT+QDdvR15rgNvP+0uvFflN7dONCCKUIgL RdGyj02lBLwLIghJF+ZZltnVU8TEPntVoICvgkCM0+PrLdM75qRSj7832xYS4OnUGCuZEPvq0mEC/ PkaBpEp6vWGaCcvqZEN98mESS3qD9kN6wuum6w4S7W0NtC+XEKs2JYxxQT9nCxDZYxnYaXIqYPCQN NkyQyDpdWtlCJXhvcAslbjVGtvN3z2A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dKj4c-0008N8-Su; Tue, 13 Jun 2017 10:29:22 +0000 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dKj4a-0008LU-7C for linux-arm-kernel@lists.infradead.org; Tue, 13 Jun 2017 10:29:21 +0000 Received: by mail-pg0-x244.google.com with SMTP id v14so17852099pgn.1 for ; Tue, 13 Jun 2017 03:28:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=a+u6CH+mSmC65LuOmzl16wzrjmtb/Tx1PJhQ6Ckp9eg=; b=rxaTkpDfVR4nhFm0LwoDT78BAnZcFmbWxtG4vgJh1eLwyLpZgIfTozdF9NGSi65odW 1jgQECpjojlNeUIzWVpW73+HnU+BWl0XwLmvqC0sDgM/P44jsKkZwqaIKKAVpWCApL+J mYgh0eWWll7Vvv3ZfAi4091zal5SP3Qq7m2AAbJBQ6e9qzknJJ/967JZkIsvp19aEdls yPgKoKlf6CMJLGrx2XWp15yNTSGJ727HZDXxvWOzJG5IJLYCUHLv3d+5nt7olmv6ln4O pq9lKzspXwglvHsQSIcv5ECH3f7UReX4e+Q/N4WNvfvbhHhxNk0jOUtfWOkiEDctdZ1W Bn6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=a+u6CH+mSmC65LuOmzl16wzrjmtb/Tx1PJhQ6Ckp9eg=; b=BaFej4q9sV9wkWjJ6pEOiz0IlL9xac6yoD2X7dnpQcxzEiqnDeh7KZgF/8Kgnhw/du shs0uyfqX1n602/AbX9uciZSX54G7Bxf2dkTX6pR9+UzDKHzcAJo6FuGoZ9r02gPx+vT Dvk58rjvPsKbNmn4J1SnXqQ2rNXXMPjVuYk/dY2tJuliedwixTJHozJ/eAjrmibMePAL MEPQPuMml/TcahguXNQPkn6Z7FOAeR4hWA7iyQpzbIKWuLOZqa3v9Dm3Z6JP2ef4Z4DT eDK6U45++siJZAftsqsMpiwegtAgAnoCqRBgYEtOx6dkuz4e3LSwtdq140xbVOW0pKSk rapg== X-Gm-Message-State: AODbwcCd3tY2sj9a9du/q4OTlm2CR1CnlixRZhYuRMyRYrZfpdjPBrfp jWD4l8UomX3ahAr83R0= X-Received: by 10.84.215.148 with SMTP id l20mr36615388pli.79.1497349739004; Tue, 13 Jun 2017 03:28:59 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id t82sm23145688pfe.88.2017.06.13.03.28.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Jun 2017 03:28:58 -0700 (PDT) From: Arvind Yadav To: will.deacon@arm.com, robin.murphy@arm.com, joro@8bytes.org Subject: [PATCH] iommu/io-pgtable-arm-v7s: constify dummy_tlb_ops. Date: Tue, 13 Jun 2017 15:58:30 +0530 Message-Id: <897ee913564b40242149e464c1f3d7d8df393056.1497349602.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170613_032920_342408_76D13535 X-CRM114-Status: GOOD ( 10.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP File size before: text data bss dec hex filename 6146 56 9 6211 1843 drivers/iommu/io-pgtable-arm-v7s.o File size After adding 'const': text data bss dec hex filename 6170 24 9 6203 183b drivers/iommu/io-pgtable-arm-v7s.o Signed-off-by: Arvind Yadav --- drivers/iommu/io-pgtable-arm-v7s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/io-pgtable-arm-v7s.c b/drivers/iommu/io-pgtable-arm-v7s.c index 8d6ca28..f886995 100644 --- a/drivers/iommu/io-pgtable-arm-v7s.c +++ b/drivers/iommu/io-pgtable-arm-v7s.c @@ -749,7 +749,7 @@ static void dummy_tlb_sync(void *cookie) WARN_ON(cookie != cfg_cookie); } -static struct iommu_gather_ops dummy_tlb_ops = { +static const struct iommu_gather_ops dummy_tlb_ops = { .tlb_flush_all = dummy_tlb_flush_all, .tlb_add_flush = dummy_tlb_add_flush, .tlb_sync = dummy_tlb_sync,