From patchwork Wed Dec 6 08:46:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 13481290 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 57962C4167B for ; Wed, 6 Dec 2023 08:47:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-Version:Message-Id:Date :Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: List-Owner; bh=gSiLypNmPr1bq1y6mFhlFTZ1y4DdyvZqmWGNmeZU08A=; b=wf0tB0XAnIe+Ei lKAIkgynifwoyqjyBJ8whi5LRvSndYjClJsABs0P24TN1++cKyiuqWuLB9OZiv1KjqwhO4AaRyjbR Cdf6TBayRyyUxtOqZcyVXs1Cr7SKjHoLXzBDWStuBQBa35FtGBoCAIKKUsp35gDDGFQtz/lkGDYXf Wif6zGaWDHNUmzi7xMhBWIgglTP7utXiWZ+KD+e5r+KsKN2uxcB5lPwztDQN9glJuCNQUSjI2fYDo 1pYK9np00ZnQfT0XHH61z6azV3+aA04mTo0s5alRhuz9eMCNmW20LsjhrIWWnaNliShgROpAFp7pj beSpvC004ZEyU5eLh/2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rAnYg-009SiM-2H; Wed, 06 Dec 2023 08:47:06 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rAnYb-009Sbx-1L for linux-arm-kernel@lists.infradead.org; Wed, 06 Dec 2023 08:47:04 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20231206084653euoutp021073a2d604400bc7eb53a7157bb6eba7~eMcDQMpIW2730727307euoutp02H for ; Wed, 6 Dec 2023 08:46:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20231206084653euoutp021073a2d604400bc7eb53a7157bb6eba7~eMcDQMpIW2730727307euoutp02H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1701852413; bh=q4PDyyNqpXrVYosR/HC3mCzskrZhduX/SJA9wFZBRGQ=; h=From:To:Cc:Subject:Date:References:From; b=norDNfMz9S/Nh3vaYyTm4VbDjjG8HNp0TKznQRQB9Lt7O1zQ2hDWbk2/MCjTXL2f4 ymfrcRx3K64hR2Fj7QlsQW5GiVDelQ8RrYPa7KAFaUXeshEc/5d/fMMoODNCNz+ovf 1vb0YyoHEtBKlnRjkiXK1qB6ZxLVoIGB/cPkLJvc= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20231206084653eucas1p134fc27cc2ae2ffa9e188dc16ec92124f~eMcDA9mPa1222412224eucas1p12; Wed, 6 Dec 2023 08:46:53 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 13.8E.09814.DF430756; Wed, 6 Dec 2023 08:46:53 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20231206084652eucas1p1fd6025710032f3a4a64b05dab67a2a17~eMcCjv-FX1414014140eucas1p1n; Wed, 6 Dec 2023 08:46:52 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20231206084652eusmtrp1d620095f901b15e13a8be0efb99d76c0~eMcCiyr-G3235332353eusmtrp1m; Wed, 6 Dec 2023 08:46:52 +0000 (GMT) X-AuditID: cbfec7f4-711ff70000002656-24-657034fd7a96 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 0E.66.09146.CF430756; Wed, 6 Dec 2023 08:46:52 +0000 (GMT) Received: from AMDC4653.digital.local (unknown [106.120.51.32]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20231206084651eusmtip2f53b5a0cf2e7c5c077a9d3d4f416831d~eMcBy9Z122879728797eusmtip2P; Wed, 6 Dec 2023 08:46:51 +0000 (GMT) From: Marek Szyprowski To: linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Marek Szyprowski , Atish Patra , Anup Patel , Will Deacon , Mark Rutland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Kees Cook , Luis Chamberlain , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Subject: [PATCH] drivers: perf: constify the ctl_table argument of the riscv user access handler Date: Wed, 6 Dec 2023 09:46:42 +0100 Message-Id: <20231206084642.802053-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrEKsWRmVeSWpSXmKPExsWy7djPc7p/TQpSDd4sZ7Zo+fCO1WLr71ns Fh3n3CzOdOdabHp8jdXi8q45bBbbPrewWfz+8YzJYu2Ru+wWS69fZLK4MeEpo8XLyz3MFm2z +C1a7pg68HmsmbeG0eNax0YWj6m/z7B4zG64yOLx5uVLFo/DHV/YPTat6mTz2Lyk3qNvyypG j0vN19k9Pm+S8+jvPsYewBPF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rewWfz+8YzJYu2Ru+wWS69fZLK4MeEpo8XLyz3MFm2z +C1a7pg68HmsmbeG0eNax0YWj6m/z7B4zG64yOLx5uVLFo/DHV/YPTat6mTz2Lyk3qNvyypG j0vN19k9Pm+S8+jvPsYewBOlZ1OUX1qSqpCRX1xiqxRtaGGkZ2hpoWdkYqlnaGwea2VkqqRv Z5OSmpNZllqkb5egl7GzVbJgCnvFqwkVDYyNbF2MnBwSAiYSO/b9YO1i5OIQEljKKLH04FMm iISMxMlpDawQtrDEn2tdbBBFnxglmn7MYQRJsAkYSnS97QKbJCKQLbH98wR2kCJmgaPMEtNW vgabJCyQIHHp5XIwm0VAVeLlrfVgU3kF7CTaZr9hgdggL7H/4FlmiLigxMmZT8DizEDx5q2z mScw8s1CkpqFJLWAkWkVo0hqaXFuem6xoV5xYm5xaV66XnJ+7iZGYJRtO/Zz8w7Gea8+6h1i ZOJgPMQowcGsJMKbcz4/VYg3JbGyKrUoP76oNCe1+BCjKdB9E5mlRJPzgXGeVxJvaGZgamhi ZmlgamlmrCTO61nQkSgkkJ5YkpqdmlqQWgTTx8TBKdXAtPKcUm3ppeyeL72xRsYvNk/3En21 LHPn8TL26X098TJOe9cU61xuez7HyCu9UyflxiLbTSUt8prPHrJUH/L55fHuY4HttMd1//aX ZG+RLfOK4os0fZ32TFPhpdERbsmzB6QdHplYewl/2cg7w1O/K+mxd8TyqvqpCxwXXDhS+MLk 1dHSlU2fQ9dkhKqv7gwrX/dK+kdHQVFIyro74f+WK7Xvr9vuqrfx+LoHE2Zkqn1bXOIadzt5 1tInLLmLdDeuz3YRVW+ftvbbt5etp6fMjeX8flhccZVESu2SrvRDG7keV9wuj5msF7j7yUz3 34vZBIWP3PR/NWmm78wFckk98y0WmD62F64PnSz1nyUgVomlOCPRUIu5qDgRAG1C6e07AwAA X-CMS-MailID: 20231206084652eucas1p1fd6025710032f3a4a64b05dab67a2a17 X-Msg-Generator: CA X-RootMTR: 20231206084652eucas1p1fd6025710032f3a4a64b05dab67a2a17 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20231206084652eucas1p1fd6025710032f3a4a64b05dab67a2a17 References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231206_004702_067251_1B7859F9 X-CRM114-Status: GOOD ( 12.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fix riscv build break after commit c8be9e66ca1e ("sysctl: treewide: constify the ctl_table argument of handlers"). Fixes: c8be9e66ca1e ("sysctl: treewide: constify the ctl_table argument of handlers") Signed-off-by: Marek Szyprowski Reviewed-by: Palmer Dabbelt Acked-by: Palmer Dabbelt --- drivers/perf/riscv_pmu_sbi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/perf/riscv_pmu_sbi.c b/drivers/perf/riscv_pmu_sbi.c index 16acd4dcdb96..97e345f7d25d 100644 --- a/drivers/perf/riscv_pmu_sbi.c +++ b/drivers/perf/riscv_pmu_sbi.c @@ -986,7 +986,7 @@ static void riscv_pmu_update_counter_access(void *info) csr_write(CSR_SCOUNTEREN, 0x2); } -static int riscv_pmu_proc_user_access_handler(struct ctl_table *table, +static int riscv_pmu_proc_user_access_handler(const struct ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) {