From patchwork Thu Sep 22 17:46:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9346159 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 18D05607D0 for ; Thu, 22 Sep 2016 17:46:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 11B9D2ABD6 for ; Thu, 22 Sep 2016 17:46:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 061212AC07; Thu, 22 Sep 2016 17:46:18 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 903362ABD6 for ; Thu, 22 Sep 2016 17:46:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 21E636E91E; Thu, 22 Sep 2016 17:46:17 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.web.de (mout.web.de [212.227.15.3]) by gabe.freedesktop.org (Postfix) with ESMTPS id 006D16E91E for ; Thu, 22 Sep 2016 17:46:14 +0000 (UTC) Received: from [192.168.1.2] ([77.182.99.72]) by smtp.web.de (mrweb002) with ESMTPSA (Nemesis) id 0Lxx4O-1ar3ln3voC-015H7Z; Thu, 22 Sep 2016 19:46:12 +0200 Subject: [PATCH 14/14] GPU-DRM-TTM: Mark an array of text strings as "const" in ttm_dma_pool_init() To: dri-devel@lists.freedesktop.org, Daniel Vetter , David Airlie , Emil Velikov References: <566ABCD9.1060404@users.sourceforge.net> <4d34446f-05ad-c3ce-5d33-8fb4f25af25c@users.sourceforge.net> From: SF Markus Elfring Message-ID: <9bb7cfe3-c230-93b5-01b8-697ad8f67843@users.sourceforge.net> Date: Thu, 22 Sep 2016 19:46:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <4d34446f-05ad-c3ce-5d33-8fb4f25af25c@users.sourceforge.net> X-Provags-ID: V03:K0:wL1SFt3ZjQ2za6Wd5R8jBnkZl89q8jchg7hqlzcfcOdFRlFhR4w azbX3FVesBkjFExcEcV0AME1M6KHUYCFIRMGAjSQRaxLjLkws5bHBCpuXjp4yYVXbnK00CW q8j+sTQvcWn312XTdmLY69zt5UJ8QMa9JOerBpFEihp2HXLITacBDhthrHZJGCV+qY3QiIS b7FIb+vUxb+nPDy0Y/xQQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:/mPXB8RrgP4=:9acNwTE207KKj+YofMhSwk 8lXagOUk/RneFXQSGVEIJ4Z+2GVF50M5pROCaBLCi4lVop1/6JrqtouI83hHw9g7pBeWoGmak sMYwaFw87IsIxuNzTTeLqUMFNNfTRCfpkcgPvM4RLAiiigEPSK/WiTZ/n8l/GXR1IrQB1o7Xy FpWj/x84Jp0RZ6YlOlLCtf6gui+gKfSngdJHTJVxQdfydhgUdAt399Er11RKQxu2fDDX+jPVz EyoK7ysxdV9m+yychNZIZQ6Lvjo3I86IuAAQLXVrYIw+05fXtfPzxMyeXXxfCmvMp06qWxZY0 qKRmdd10MUef6aq8fmo1GB5dDjtSFAoTjwrkYC+ONIWJp018ICBCUbx+KVPmiKgWCXZ8slfZR 5ZzVsTQNZ5KVrC4ESpK+tz7fEFfwp3qIA/nVP2rlydYot41eDX+Ntife+T2yBGtBgeme5PodI ytpES0xPh8evSSseBRFXauoI6h13ipP86RU7s+eJKYSqn/VvnbqdUlgessaVFIhAXtWDI8Rza VRO26ibFH6CfWqUQG74hYI2lAECiQI8n1WLm6FKy0OAm79zE3b3Fjs5FAtQqX25c2OQuvwrbD RDjD6JjDegTHxamTZvsztADrrItzqN6b7ffIYUoj57CYMiin2jQBdOgb8Ax7ZO7KEDK5+nnxb WD+OWNTmd9n5fCkbmzyEIoE0xiPHRaZqO+zDjsYdG3lAATQU1L9VX2+Qq2YaK/BU0002BmxPC CwnTEPiThuzpJ1dBWAsvaVHsiNmSNsIavGjNdrrzLT8puu/O55e7VdZklYwa3EPyNwQy5bIVJ Or4b/hY Cc: Julia Lawall , kernel-janitors@vger.kernel.org, LKML X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Thu, 22 Sep 2016 18:46:01 +0200 The local variable "n" was not modified after it was initialized with a few text strings. Thus express this detail also by the data type qualifier "const". Signed-off-by: Markus Elfring --- drivers/gpu/drm/ttm/ttm_page_alloc_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c b/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c index aa1679d..e21c1b3 100644 --- a/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c +++ b/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c @@ -574,7 +574,7 @@ static int ttm_dma_pool_match(struct device *dev, void *res, void *match_data) static struct dma_pool *ttm_dma_pool_init(struct device *dev, gfp_t flags, enum pool_type type) { - char *n[] = {"wc", "uc", "cached", " dma32", "unknown",}; + char const * const n[] = {"wc", "uc", "cached", " dma32", "unknown",}; enum pool_type t[] = {IS_WC, IS_UC, IS_CACHED, IS_DMA32, IS_UNDEFINED}; struct device_pools *sec_pool; struct dma_pool *pool, **ptr;