Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp832103rdb; Wed, 6 Dec 2023 00:47:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQuVNF6IR+8nJXT3JRV/k0pUo6z6nFEJUj5ENhUabGbUFsBLS58fnvCuJiwOQ8NB8PzV3x X-Received: by 2002:a17:902:d2c6:b0:1d0:7619:e8b6 with SMTP id n6-20020a170902d2c600b001d07619e8b6mr233364plc.34.1701852430060; Wed, 06 Dec 2023 00:47:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701852430; cv=none; d=google.com; s=arc-20160816; b=PeqI9j++2Pw+dQzEN/AuOMjyCuv6KovfRdOOo4Jze44KKChORROttfAFq290L+HpRw cV+jVh7x4RU6wnjXidcJcu0qvn9ZBWTzlx2MRZhsGBqgOkWR0jdIUUkwn8TUbTWMkq9A aiH24CzeD+rLRZyN04+eBTrYQx7TfLiRJg7hCeOGhxdkIuktyP2LnwbY8G7aAXxNPHqJ vm3Qn8T6E2I+q2QVgfWigeKXOd5Qb7gUn0LplNu4r/x3qM14bXm+A/v5zJBjQVX3ZJxG UZrjrYmHtGSkPyLVYdQSD8XNzbtSuDu0Rej7ppxJ1wOn5ROWtZwII6sl9GJueF9HNI1y mYFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :dkim-filter; bh=q4PDyyNqpXrVYosR/HC3mCzskrZhduX/SJA9wFZBRGQ=; fh=ipc7w3Sqdi+5u9bhXyq0KwoFRHavYz//VCDCKKFH+Pw=; b=UN0VzS224V7ReIDcgT+FzSIJRYlA+LZm8r0gsELiRkJstFwgZO6XtEd6C+cBRL/+D1 iXnhzsdbT1bjTRYIecUje33xCVMiccQnbkOu2ifSv2Y0QgftWMrtdYCCMjamU3kGbzCQ VjMFpLXSMsqIwJslJ+Yr0PCDMZwa8lZTFEn13jXg9L4/hkylZZHHxbijDrRnGt8rD7QY cwrQqwynxFaAnBzH8ks0FnfqJwVK4yMZX7EXKV+PLyE4mbFg53SzOnoYk6Sfzk+fJt1G T3wS7yGeSK92k25WcGkSfKOCQyu1OO2y3ZSDCN9hbuF09OZdS0z+4sDZspAeubpf9oGX qgNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=norDNfMz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id c7-20020a170902aa4700b001d09c96b9f9si5021327plr.425.2023.12.06.00.47.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 00:47:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=norDNfMz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id B03278082CD6; Wed, 6 Dec 2023 00:47:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377006AbjLFIqz (ORCPT + 99 others); Wed, 6 Dec 2023 03:46:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbjLFIqy (ORCPT ); Wed, 6 Dec 2023 03:46:54 -0500 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E275E11F for ; Wed, 6 Dec 2023 00:46:56 -0800 (PST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20231206084653euoutp0208d65c95720c51a26b711d61d7c4c5d0~eMcDVnmbk2728827288euoutp02J for ; Wed, 6 Dec 2023 08:46:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20231206084653euoutp0208d65c95720c51a26b711d61d7c4c5d0~eMcDVnmbk2728827288euoutp02J 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=20Wei=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 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrEKsWRmVeSWpSXmKPExsWy7djPc7p/TQpSDd4sZ7Zo+fCO1WLr71ns Fh3n3CzOdOdabHp8jdXi8q45bBbbPrewWfz+8YzJYu2Ru+wWS69fZLK4MeEpo8XLyz3MFm2z +C1a7pg68HmsmbeG0eNax0YWj6m/z7B4zG64yOLx5uVLFo/DHV/YPTat6mTz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content-Type: text/plain; charset="utf-8" X-RootMTR: 20231206084652eucas1p1fd6025710032f3a4a64b05dab67a2a17 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20231206084652eucas1p1fd6025710032f3a4a64b05dab67a2a17 References: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 06 Dec 2023 00:47:07 -0800 (PST) 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 --- 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) { -- 2.34.1