From patchwork Thu Dec 7 08:35:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexandre Ghiti X-Patchwork-Id: 13482933 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 272E6C4167B for ; Thu, 7 Dec 2023 08:35:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5B8736B0074; Thu, 7 Dec 2023 03:35:18 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 568596B0078; Thu, 7 Dec 2023 03:35:18 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 42E826B007B; Thu, 7 Dec 2023 03:35:18 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 2D5C86B0074 for ; Thu, 7 Dec 2023 03:35:18 -0500 (EST) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id EB9F580127 for ; Thu, 7 Dec 2023 08:35:17 +0000 (UTC) X-FDA: 81539362674.21.1EB4237 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) by imf22.hostedemail.com (Postfix) with ESMTP id 02F93C000E for ; Thu, 7 Dec 2023 08:35:15 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b="Ht/U/IpE"; dmarc=none; spf=pass (imf22.hostedemail.com: domain of alexghiti@rivosinc.com designates 209.85.128.42 as permitted sender) smtp.mailfrom=alexghiti@rivosinc.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1701938116; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=K3iWeWB/mBuBm6/U8a08QVjCJLxiEQB+3v21Lk3/MtY=; b=bIbrwB1nfrkeX10xCWnkDRLaIyTjanBmI/zvT6c2s7ksOb4ufo1FA2FeH78j13UOPAZtPD ioDDuUeDwq9pQthvgft5PSbbL89OXA/krzQM+tV5QQ8B9J58p/z/HEbInRol8qFLMeLGdC 7OOqzeGf1kobHY2tLbFJDTzNaNaD0dE= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b="Ht/U/IpE"; dmarc=none; spf=pass (imf22.hostedemail.com: domain of alexghiti@rivosinc.com designates 209.85.128.42 as permitted sender) smtp.mailfrom=alexghiti@rivosinc.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1701938116; a=rsa-sha256; cv=none; b=Xnm1UIGw4TOYQvE4K7wIv2KZclvTrXyHdniURmNMhyreRhW6zFpld1HPDVUzeHcg8P1wgX qPcmp1zoDrTf4njwuN7Bt3SU3049BYqkKNZs1sTei4MRz58/rPNu99rbEGLI+P0pDaFpMl YSVzXhxwHN+UJtvS63XSJFNq6BvNhSo= Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-40c09f4814eso9717555e9.1 for ; Thu, 07 Dec 2023 00:35:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1701938114; x=1702542914; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=K3iWeWB/mBuBm6/U8a08QVjCJLxiEQB+3v21Lk3/MtY=; b=Ht/U/IpEAso1YxUgyFs+NVCrZzFnspMlxzZkdyEDfKKELhLl6ROgTBnt31odGRLRmY uRBqlN6RXV1N0t+8g/8ihX4DacTuhcZAzZhNE0cYekpv8J7gxkmINwk0HTGFjwtJLcbq iKB3azFIxgPhr1k53HBfDIBIJFPg9ODagyBbz9ynV8blBLW7rmPA0/HAFQQg4QWl8LoR aY4CIyNXzzcSXTtJu3JLbBXmSeAi4S+VC2AcvWlUSmdZsDF5cHuDV8JKw14/0qGTCjxi vaWdpwr9vb4Q9Jw6HVBirSCZPEPa8Kqos9KmR+J44wrm8C1exq5g+fy2Eji3eE6zUg0w nbBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701938114; x=1702542914; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K3iWeWB/mBuBm6/U8a08QVjCJLxiEQB+3v21Lk3/MtY=; b=ATNH79LzgQ+mb2RJERDxL/XNYL6NRKydB8SxxvxxjfdfxU1RQk7jgDB78mAKzj77Jn DyuYf/CIRXznJ+Ts/1pG7NxKbSosJ5d4Rum/fX87MIZDDSAJDyI9WZozgph4v+7rUFrn 7o39F2CSvLFAo4ZW5bxoaewOIy3CtyglYlHyudllEDMzaaLvoB4kv44FUgHF6DBxMAQu Y/WhvIFx0V1ylJXjkhOTJy3b3XsA5VPMfgqSTPIq5nrQJodhVlKcvJ1SKx/0RMabWqly 1BRhcVzCrvDHfBafDo3jI3pAfbRI6q1VaEQJ91NRqS4R9NYesJlRK0FqadPBIBUTPy3A 3Ucw== X-Gm-Message-State: AOJu0YzdsS96chxy/ho4kHawi9oWe3JtGsqIQgQvmK91Lps332HAARv0 8PeKbCP6G6VaFWTzo/4U8LsjWA== X-Google-Smtp-Source: AGHT+IEaswcjzcSyX1BwyZBLdJdW1iILqzt5qzHgKeJ6f6tHRBd37xpxD4elOzZFWryup4RnCj9XsQ== X-Received: by 2002:a05:600c:1ca6:b0:40b:5e21:dd2a with SMTP id k38-20020a05600c1ca600b0040b5e21dd2amr1284898wms.88.1701938114170; Thu, 07 Dec 2023 00:35:14 -0800 (PST) Received: from alex-rivos.home (amontpellier-656-1-456-62.w92-145.abo.wanadoo.fr. [92.145.124.62]) by smtp.gmail.com with ESMTPSA id k19-20020adfb353000000b003335c061a2asm821969wrd.33.2023.12.07.00.35.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 00:35:13 -0800 (PST) From: Alexandre Ghiti To: lkp@intel.com, linux-mm@kvack.org, linux@weissschuh.net, llvm@lists.linux.dev, mcgrof@kernel.org, oe-kbuild-all@lists.linux.dev Cc: Alexandre Ghiti Subject: [PATCH -next] drivers: perf: Fix build error by adding const to ctl_table argument of handler Date: Thu, 7 Dec 2023 09:35:12 +0100 Message-Id: <20231207083512.51792-1-alexghiti@rivosinc.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <202312062242.RFPPozG9-lkp@intel.com> References: <202312062242.RFPPozG9-lkp@intel.com> MIME-Version: 1.0 X-Rspamd-Queue-Id: 02F93C000E X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: zkzocoo8556qsank1i9ipjww4qnws648 X-HE-Tag: 1701938115-497749 X-HE-Meta: U2FsdGVkX19bWVaQnSrPyyYf3u1cIArFKbc9UazT9bda+CmBf1MLhbQgZvDA+3JA3wUf8LvEELChNf6a/jHTXd4oV+C50q9Nw69yCJ6hwc+TxPKC8WRmVy6/xRxAkD5iytxQ5XeOI2Pb78PQgvV3JIKqsKWNmXe2NIgdNsw+EOkB64PP5Cu0OW5NcYj1paAKzcgLxjzxGN38qBEAdI++K7ty5PH1fbc8Jqf7nD18ycyAWFj9ca3gAIyih+CvIKCGxKf0ds0QFoywMnv5gUSWpD8QrypZzXbQG3NXVR+fJkmYd4nNSTxmADTKLINQVSf4tZsCffHHeJwmN/bZAM0RFHiE9Fe9a1jAZ4lm4YReErMU96n3xwbHF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72wsnn/YVWHEm+Kv7mWLN37vLu+6KOE0UWll+3yBGfTjvxhVwX3DGpXe7jvuXWTl0BovrHJit6j4kz43OSRbEJ3fNbDbZuhjZ+FmroECInepukJizPi/I8fYwmUc6b+JMHXxW2B4VHWB4WUv4688cfcLjb33BUo= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: The ctl_table argument of the proc_handler field was constified treewide but somehow missed the occurrence in the riscv pmu sbi driver, so add the const to fix the build error. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202312062242.RFPPozG9-lkp@intel.com/ Fixes: c8be9e66ca1e ("sysctl: treewide: constify the ctl_table argument of handlers") Signed-off-by: Alexandre Ghiti Reviewed-by: Björn Töpel 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) {