Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3530094pxp; Tue, 8 Mar 2022 16:44:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwuxVvuXxo26j86GkHjVAOiGrukTlWWc+XKhzK7UI/01ZPhva/I954cXCGbwbzbQQz7ThsZ X-Received: by 2002:a17:902:8f83:b0:151:5c71:a6e6 with SMTP id z3-20020a1709028f8300b001515c71a6e6mr20457162plo.126.1646786662627; Tue, 08 Mar 2022 16:44:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646786662; cv=none; d=google.com; s=arc-20160816; b=R2mdQSPGnHOGrMDAh5IDabbVmW2oYsJnXRJHiVke/bVoEJefXZX6orJ7IABetbKVNN zcB//UyKuwLAeqPqJHrI5HbFy6/0MCqaG1C1GVNtyhip9ZOQCjQT1DrlgvpYC95c4ajp likWoseNOmYJkxlAP4iqBS576V0HNrZHM4GglqCKBkq+EOjJxavLNOgV4e/Rstxkc4Ln gwWlURHJnk1HqtC0Ve3ghaXatGnFOzzQvEydcWd1dVPGxmChuXX1/DFFY5YU29LrSMGe 7iRxk/LZDmRbc9+qFon1Xytr2O3hoKI69tR7/IAynqnhMTRb7Q4IIbT3JmRM0DYmbUY5 gHiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=VrXaIwOZOVtIvy4hHy4AW36uJVE3txcBuUPvIgUQUTk=; b=0sFMT/7X2nO7OgYPogqpCS/QdNaQHKWKLMFCYHkF9RNw9OyV6c5VqsupCex78yDs+E w8192Lbyncnkj6+xg18/+tfLfElo52WFFBO5j7ezOyjiPKYOeAgNTdCRd1U1w3NKAxPY fIh8g46tJTCVMOi/j+H9jjZnaRYClPUmoMdob0mtUIpbuXXWKR8KZxvfn+mw0685u17j bxFXuaS/s8tR/TlIhnYvmRiehlqz1IzF7oEUCVbKVAuBeNz+eSDpchxTSH1EiZLdKKQs R+7IiDsPEW8Qfoqo0tO498Ipas398vqbpxnIz2gcxLGMjXXVtXXxOP8trPOIzdOV9FVN Z+xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XHgWXNwq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p8-20020a17090ab90800b001bf0a6e46bfsi493225pjr.144.2022.03.08.16.44.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 16:44:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XHgWXNwq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3FC50D2270; Tue, 8 Mar 2022 15:59:33 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242930AbiCGWBK (ORCPT + 99 others); Mon, 7 Mar 2022 17:01:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234140AbiCGWBI (ORCPT ); Mon, 7 Mar 2022 17:01:08 -0500 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 792DC12AD4; Mon, 7 Mar 2022 14:00:10 -0800 (PST) Received: by mail-wr1-x42e.google.com with SMTP id u10so23861775wra.9; Mon, 07 Mar 2022 14:00:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VrXaIwOZOVtIvy4hHy4AW36uJVE3txcBuUPvIgUQUTk=; b=XHgWXNwqYyjxnOvdpUvHpl/knt8ZquuiELDtEkVC3I6XKXdmxibh9o7cveOY8e3wIU 4fRJhN/LdOpLZhOo0s3YPKnnbKQ65vUu+GxYY39iN5iNKVLm4dh8DL812cdKdLFIs6aR 3VWNN0sxgmGH/zRZVi0F8adSG7gYSL4KQoAKZIlxWF+yQehb6FLp9JFrDiTEZXA6UAKz 3JmY38syMUAr5b5rkhgU6hHoS2w4LEpybbBqWh3WFoJaUmaHMdbqjSaNN+3o8k5S/LO7 6dGGt4W2vCcrgixU4UiPuilZq+eDs6OMGritSRXSUzldpXMrDkj10Y8/hMbq0DCB9xeD NAfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VrXaIwOZOVtIvy4hHy4AW36uJVE3txcBuUPvIgUQUTk=; b=2fXohMbYEJCZednB0B3wrcnfVzyrD6iTZfKqTjuLRmrUyPGMoTRb2oG9kw0J+8hKd7 /oDAQZGfLA5H/P6Bt3qe1icqXyizuAsTcNfeu8E869cJRnzDp0gAsgsPNbZnRZDmgrXm FwzvX2sr1cdax17lxd3cMpC/5Sq6yYWnvg/Z/CY07p4n2dI7AZMbF/k+Y/+53wU6J07S 34LtDVH1b8LvSoWPqSOymucpdr7cqjNPZFVAeRB4xVq0s/RhMi7HPNEQ3hxwXKtogSwN vlv1ePeE4otSexEagKwar+iwXUP64yEyui8p6P2UFTQTkm3oDcIOsKyK433ZuF1WZCgb 6PVg== X-Gm-Message-State: AOAM533NiNUqPhEvoqVJSH39LVot/pN0bGW/X8Q/8py1r2aNuYI/1Lpu 17t3aBP2VrrtBrsLXFq5ukE= X-Received: by 2002:adf:8063:0:b0:1ef:78e3:330 with SMTP id 90-20020adf8063000000b001ef78e30330mr9940151wrk.424.1646690408993; Mon, 07 Mar 2022 14:00:08 -0800 (PST) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id o12-20020a5d62cc000000b001f048bc25dfsm12124754wrv.67.2022.03.07.14.00.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Mar 2022 14:00:08 -0800 (PST) From: Colin Ian King To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/i915/dpll: make read-only array div1_vals static const Date: Mon, 7 Mar 2022 22:00:07 +0000 Message-Id: <20220307220007.162830-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Don't populate the read-only array div1_vals on the stack but instead make it static const. Also makes the object code a little smaller. Signed-off-by: Colin Ian King --- drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_dpll_mgr.c b/drivers/gpu/drm/i915/display/intel_dpll_mgr.c index 569903d47aea..17668b58b30c 100644 --- a/drivers/gpu/drm/i915/display/intel_dpll_mgr.c +++ b/drivers/gpu/drm/i915/display/intel_dpll_mgr.c @@ -2759,7 +2759,7 @@ static bool icl_mg_pll_find_divisors(int clock_khz, bool is_dp, bool use_ssc, bool is_dkl) { u32 dco_min_freq, dco_max_freq; - int div1_vals[] = {7, 5, 3, 2}; + static const int div1_vals[] = {7, 5, 3, 2}; unsigned int i; int div2; -- 2.35.1