Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp55209ioo; Wed, 25 May 2022 20:31:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYVTId/5v4q2kjckl4FrZ1k7GdVusdooMBbTPpW6fDjwLvGIzDveWzmmg0j7N8VAJlcAWz X-Received: by 2002:aa7:c6c2:0:b0:42b:d8aa:f45e with SMTP id b2-20020aa7c6c2000000b0042bd8aaf45emr1544157eds.307.1653535885089; Wed, 25 May 2022 20:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653535885; cv=none; d=google.com; s=arc-20160816; b=lYgG67cUc5cjLV2ruWe1D5vYmKpAAelLdBz6QDSa4ijrgkJ0s9zZimH2eo9RKlw+Jx qo3cEivQyefN+wk20Z+eHOdKSSbGBWQnzN+9DpRZ372iYWU5XpFXV2GRJThtM+M8CmTc g0tWNeKswl94vq6l0OAEZf42EJIa1Ai+viog2dLc2aLhhm9N8KMZBm8j8xGD1thpc0Cp R2UrbMZeO3LB8v4CPwX1TAUPU+gn+zcYwB4QF5eYJIebqncLLezK4hBdcq5p5gU1RTju MdJ9Rp/mhCSOfYcGHcOInHztiV+3L72rCAee6l4jIq5erVxV0hkqbcoNbsQWkrsbP3/I 6PIw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OY0E16hIBo604DmSItoCHyoi+2ltQUNHsFtM0BekMlA=; b=PvikCR+P7kgFlkheuEvYOEmMMkixMXiBWe92Etz9KadhfcSLq4de7jUYFmhFfT7nSa H/X2SrvBQjd4tgUCa+dB5c1dqfuUn6s99qpJFqnCKVek7ORmSoL+HtawoIFzXp2rqydX 20nv2Lx2cyYeLCv1k3Ix/3Re+qTS0EHmaa3bdNrgAKegyRTJJGS2NzYwBth8WRgMWP+V 0jCHuWhjhegkdtVlqcKtjEkVGR7RhRwM5qt1wRAzGdO5DAPGWNxJLS5opPmZNEZ0jM0M PqmRBZubqt8trcS2ZJK4+cSMbFTerJGdrvG2yemLGEzPfA1Knv16zfc1um4tgPkVk4s8 a3aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=WRQHhRiA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m18-20020a509992000000b0042a96a858absi302737edb.440.2022.05.25.20.30.49; Wed, 25 May 2022 20:31:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=WRQHhRiA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239663AbiEYO6W (ORCPT + 99 others); Wed, 25 May 2022 10:58:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244892AbiEYO6O (ORCPT ); Wed, 25 May 2022 10:58:14 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 526D2AEE10 for ; Wed, 25 May 2022 07:58:14 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: alyssa) with ESMTPSA id B43D81F450F2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1653490693; bh=V/KfHPBGZosfbKnwVHQPcXJblhj5zBtBpc0Z5yGRgrI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WRQHhRiAFVBl75rpUn357RwSiO3Ibg5i7H5HD80WWA47v2CIh4h04LlD2pld3R5kC JnRx2TrbiCB6fYd5FerW2SxAIZuR34ir3EZTxm6Pb+ChtF8k5b0MM/YEi4PvfHhYIB acxZqLeD9ysQIrR9s2ekfZSezWPsVqQ6TvVR5kYgTt8jrEBgOq6LmYqy51LCntGtlF eT1TPhFSM8rx9dr/HD3qlKWEWkKIhUWabzpp9FrITzLIRcUIGl9BUaFcaVLp1jreOY n1oEKNn1Krhl8x5CI+V3Xu6linExP5xVh+Jth4Ob7dQ8FPGRI36HBnuT/fE8kQs8MS RFUk1lXfIfUYw== From: Alyssa Rosenzweig To: dri-devel@lists.freedesktop.org Cc: Rob Herring , Tomeu Vizoso , Steven Price , Alyssa Rosenzweig , David Airlie , Daniel Vetter , =?UTF-8?q?N=C3=ADcolas=20F=20=2E=20R=20=2E=20A=20=2E=20Prado?= , AngeloGioacchino Del Regno , linux-kernel@vger.kernel.org Subject: [PATCH v2 3/9] drm/panfrost: Constify argument to has_hw_issue Date: Wed, 25 May 2022 10:57:48 -0400 Message-Id: <20220525145754.25866-4-alyssa.rosenzweig@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220525145754.25866-1-alyssa.rosenzweig@collabora.com> References: <20220525145754.25866-1-alyssa.rosenzweig@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham 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 Logically, this function is free of side effects, so any pointers it takes should be const. Needed to avoid a warning in the next patch. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_issues.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_issues.h b/drivers/gpu/drm/panfrost/panfrost_issues.h index 41a714ce6fce..14670ee58ace 100644 --- a/drivers/gpu/drm/panfrost/panfrost_issues.h +++ b/drivers/gpu/drm/panfrost/panfrost_issues.h @@ -251,7 +251,7 @@ enum panfrost_hw_issue { #define hw_issues_g76 0 -static inline bool panfrost_has_hw_issue(struct panfrost_device *pfdev, +static inline bool panfrost_has_hw_issue(const struct panfrost_device *pfdev, enum panfrost_hw_issue issue) { return test_bit(issue, pfdev->features.hw_issues); -- 2.35.1