From mboxrd@z Thu Jan 1 00:00:00 1970 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 40F4DC4167B for ; Thu, 7 Dec 2023 12:34:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 41DB06B0074; Thu, 7 Dec 2023 07:34:44 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3CD836B0075; Thu, 7 Dec 2023 07:34:44 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2BCEB6B0078; Thu, 7 Dec 2023 07:34:44 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 191876B0074 for ; Thu, 7 Dec 2023 07:34:44 -0500 (EST) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id E61FBA01C8 for ; Thu, 7 Dec 2023 12:34:43 +0000 (UTC) X-FDA: 81539966046.21.F4A2288 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by imf06.hostedemail.com (Postfix) with ESMTP id ABF04180016 for ; Thu, 7 Dec 2023 12:34:40 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="V0/hF0zc"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf06.hostedemail.com: domain of lkp@intel.com designates 198.175.65.12 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1701952482; a=rsa-sha256; cv=none; b=pI+3A5xAMDltgPJobTxoYU7Dp2AafwrSaU15AYwiWup78BDUjSDG5ueTu+/eZ9PUUc41ek O8O01pm8F4yZaUuCEi+sACWy99pcQHzIA04xEZmPT8kC8OdbgBbxG6McG2959rRC8z3UFu 1bjpMNQBcQNgNMbB/noSPNfK2ajeyIA= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="V0/hF0zc"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf06.hostedemail.com: domain of lkp@intel.com designates 198.175.65.12 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1701952482; 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-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=RQ9RI0IVMv2LjKBlypoZz0V9/Kq8958mu4OX9FJsqFk=; b=zEHBDZWN2eYhf3y3peQLKKGZaQOIH0QU1w3G2Bok992qu9efeOej/LbNrvuQpwtjRBvbcB qsWBSHRXNa+U6IliF/7NHWfTSzwQmGD968AxIwK5eRbCV2P4rx3a5wdkt/OaVyfDsSuyEf MKJXeVI1vXSwqsZ+HfBxMahdoAfYEdQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701952480; x=1733488480; h=date:from:to:cc:subject:message-id:mime-version; bh=3QTIpRDoNM7WI3ltgGX03/EutWE7qRKSVZUcH+7nick=; b=V0/hF0zcAcSIaUqaY+dxeyo7rXANUYmuCHFU3xozwLSLX93RvtkhJa5C UJOAb/Ql3RFZyClJn2HwsSlKuuKF+hCBKOSCmB4zQvO7GXUkFqriRo/Ih xaKG2IjtbjmQmkGWWp7Z5ltUEyTOgqMHZeWnXg6XqS6QwDBvU7v/h9b55 6z8T+uO9o6B4DCFq/rxGzm3MbGonV79ut7MXdlWqlS5ddRXSs/3pPcpmi ZEcT1VaM2PtTZ/T6V+leRomms0fV9tLhOaXHaTh3Vj35IBCjvH8PwIuIc Fdl7byTcxQzkCOId+cbd/5YB/zZFnSX1p41dnIm5Y4TsDffnr+Pllu9ec g==; X-IronPort-AV: E=McAfee;i="6600,9927,10916"; a="1305865" X-IronPort-AV: E=Sophos;i="6.04,256,1695711600"; d="scan'208";a="1305865" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2023 04:34:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10916"; a="721449025" X-IronPort-AV: E=Sophos;i="6.04,256,1695711600"; d="scan'208";a="721449025" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 07 Dec 2023 04:34:37 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rBDaN-000CEc-1A; Thu, 07 Dec 2023 12:34:35 +0000 Date: Thu, 7 Dec 2023 20:34:33 +0800 From: kernel test robot To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Luis Chamberlain Subject: [linux-next:master 5087/5882] drivers/perf/riscv_pmu_sbi.c:1008:35: error: initialization of 'int (*)(const struct ctl_table *, int, void *, size_t *, loff_t *)' {aka 'int (*)(const struct ctl_table *, int, void *, unsigned int *, long long int *)'} from incompatible pointer type 'i... Message-ID: <202312072017.DQIMIMxq-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: ABF04180016 X-Stat-Signature: pws78cw1ezij5aooy83c3e4ie8spbxa9 X-HE-Tag: 1701952480-655884 X-HE-Meta: U2FsdGVkX1+XzqlnXzc/7mSKERs+p+511tQ3yJ+/RJbUEiF8W4+iwnp0fG5ZMkvtJD0iC2R+BP5KTCTBMTX/VD+GeaqAURxuKjvZTlO9NwyhEyA0yWsFKd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IrbrThRWQexhUz8sqU6xUrMDH7PP9snLxOW8LSIpcaeDbyAB/HSNq3Q8/VT7kZ2LxULGUpXz+oJHIeAIB8FUK43T5QFBbVxS+eGtR7hl+77tNjyz5WmZBoEPA00LZ8qPEipXtUYGiIBaZSxIblh3NJ6Z1U29Y8OsMLmGI2xAkQeO/uykZgZQg0nuJ4u36HJKZZQq35qS/vtW4K40JISRLY/m7JVn8iaZ/T7n/Xb11jHrAU8wCfg 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 8e00ce02066e8f6f1ad5eab49a2ede7bf7a5ef64 commit: c8be9e66ca1eb71c694537e20d00533db48650a9 [5087/5882] sysctl: treewide: constify the ctl_table argument of handlers config: riscv-rv32_defconfig (https://download.01.org/0day-ci/archive/20231207/202312072017.DQIMIMxq-lkp@intel.com/config) compiler: riscv32-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231207/202312072017.DQIMIMxq-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202312072017.DQIMIMxq-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/perf/riscv_pmu_sbi.c:1008:35: error: initialization of 'int (*)(const struct ctl_table *, int, void *, size_t *, loff_t *)' {aka 'int (*)(const struct ctl_table *, int, void *, unsigned int *, long long int *)'} from incompatible pointer type 'int (*)(struct ctl_table *, int, void *, size_t *, loff_t *)' {aka 'int (*)(struct ctl_table *, int, void *, unsigned int *, long long int *)'} [-Werror=incompatible-pointer-types] 1008 | .proc_handler = riscv_pmu_proc_user_access_handler, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/perf/riscv_pmu_sbi.c:1008:35: note: (near initialization for 'sbi_pmu_sysctl_table[0].proc_handler') cc1: some warnings being treated as errors vim +1008 drivers/perf/riscv_pmu_sbi.c cc4c07c89aada1 Alexandre Ghiti 2023-08-02 1001 cc4c07c89aada1 Alexandre Ghiti 2023-08-02 1002 static struct ctl_table sbi_pmu_sysctl_table[] = { cc4c07c89aada1 Alexandre Ghiti 2023-08-02 1003 { cc4c07c89aada1 Alexandre Ghiti 2023-08-02 1004 .procname = "perf_user_access", cc4c07c89aada1 Alexandre Ghiti 2023-08-02 1005 .data = &sysctl_perf_user_access, cc4c07c89aada1 Alexandre Ghiti 2023-08-02 1006 .maxlen = sizeof(unsigned int), cc4c07c89aada1 Alexandre Ghiti 2023-08-02 1007 .mode = 0644, cc4c07c89aada1 Alexandre Ghiti 2023-08-02 @1008 .proc_handler = riscv_pmu_proc_user_access_handler, cc4c07c89aada1 Alexandre Ghiti 2023-08-02 1009 .extra1 = SYSCTL_ZERO, cc4c07c89aada1 Alexandre Ghiti 2023-08-02 1010 .extra2 = SYSCTL_TWO, cc4c07c89aada1 Alexandre Ghiti 2023-08-02 1011 }, cc4c07c89aada1 Alexandre Ghiti 2023-08-02 1012 { } cc4c07c89aada1 Alexandre Ghiti 2023-08-02 1013 }; cc4c07c89aada1 Alexandre Ghiti 2023-08-02 1014 :::::: The code at line 1008 was first introduced by commit :::::: cc4c07c89aada16229084eeb93895c95b7eabaa3 drivers: perf: Implement perf event mmap support in the SBI backend :::::: TO: Alexandre Ghiti :::::: CC: Palmer Dabbelt -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki