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 A5198C4332F for ; Fri, 3 Nov 2023 08:41:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A4A28280013; Fri, 3 Nov 2023 04:41:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9F9BA28000F; Fri, 3 Nov 2023 04:41:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8C197280013; Fri, 3 Nov 2023 04:41:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 7FDFC28000F for ; Fri, 3 Nov 2023 04:41:26 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 4891D40C45 for ; Fri, 3 Nov 2023 08:41:26 +0000 (UTC) X-FDA: 81415998972.08.BFE17AA Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by imf27.hostedemail.com (Postfix) with ESMTP id 8ADF840020 for ; Fri, 3 Nov 2023 08:41:23 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=XgQvT8OB; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf27.hostedemail.com: domain of lkp@intel.com designates 134.134.136.20 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=1699000884; 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=B7KmML/Ir8Tjr6ep8Htq6vYDLApUt2CVca5j4A5/YgU=; b=aqn2XvI6ToWNk4PgJ3XrXzpJF2UVsfMF+0N2WUra+OH3qU09BNslfULjtJMz8DYyrhRYWD 1tMz+RVHPu8JofNrk4AeV1h4Woht02O6/FIVl1Mc6tG+5rFYIZ3N4RBo9/oo4gkhQzjbJJ hZv8wrwTe6JaWqoAEUYqNcvjlUoSL6s= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=XgQvT8OB; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf27.hostedemail.com: domain of lkp@intel.com designates 134.134.136.20 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1699000884; a=rsa-sha256; cv=none; b=Bh9cKV6xdxYhesEPNk+O5w5f/zjYFYJMWcyxpUrYD2TKMM/+edqVKmGPj1C50spT5Dndc5 +e+TD4S4Bbuen7ir5L0Jgr5A/OQ42EXdEYlXKvv/eJWJtMKgEjmObu0OJ6CQbi5s514tPC W6xgxal8teJJtb6ndT6suXChFgnRWYU= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699000883; x=1730536883; h=date:from:to:cc:subject:message-id:mime-version; bh=TX+zBd0aiQi6lep7iTz14gzDPtyzYj6wzey71ja7Uqc=; b=XgQvT8OB2wTSo9xQ9tgOQ0gaxkmLcoRlag0+iutj+b1pjQ2oAz2FfHZ+ AcVgbpjkn8BJrR7S1p+5ve+TgSiNlmeD4dSykEzOWn/9NBKW9eoy+c2MR 8PDymbn4TrST0WBGE/BUSPNt1uPgZoGahKSLkuAUZU7wmXZkcbTJxqqOB a0mDBzEJXYQ/w8jO1YNAQrtrWgQ6fE87vVWUZuB66Dw0Ugi4deyRhb/et nM2eg5J/MT/Yk0/B+rBCoER4hdxyagbgXEpohx008cJS4mERX232ZZuiG MzJGAXys6SjCLYRcSEOR5GtRUkoeIEbfCyaqxTDVAhmjF4oH8UuxGzd+4 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10882"; a="379305549" X-IronPort-AV: E=Sophos;i="6.03,273,1694761200"; d="scan'208";a="379305549" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2023 01:41:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,273,1694761200"; d="scan'208";a="2832996" Received: from lkp-server01.sh.intel.com (HELO 17d9e85e5079) ([10.239.97.150]) by fmviesa002.fm.intel.com with ESMTP; 03 Nov 2023 01:41:20 -0700 Received: from kbuild by 17d9e85e5079 with local (Exim 4.96) (envelope-from ) id 1qypjy-0002Ne-0H; Fri, 03 Nov 2023 08:41:18 +0000 Date: Fri, 3 Nov 2023 16:40:55 +0800 From: kernel test robot To: Palmer Dabbelt Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List Subject: [linux-next:master 16110/16252] arch/riscv/kernel/smpboot.c:251:32: warning: passing argument 1 of 'check_unaligned_access' makes pointer from integer without a cast Message-ID: <202311031648.9xiTejVV-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 8ADF840020 X-Stat-Signature: 49igqjy7qqhjrtfioekwtma7y58uq8ay X-Rspam-User: X-HE-Tag: 1699000883-950156 X-HE-Meta: U2FsdGVkX1/c+vubpKBF/DohPsfanXjW2YltgjwrLWSj8yOmp4EM9BsJaLYzHalQy0KG5m8c25g/vdeQFRq04fgs3G0T0sy+0C0jOWpy8uBdQtriQ4XwhABeh0jRlieldhj8oOBhc1umILh6u8Y0K3G2C9mWgkivLNOKpWNV0cjCr7fIlUnDYyflRP3Us7kkat06yVoj0wIcshAQ8qgp3QV/6NSoz3p/CZEvt+fs/vNv73pQz+GVvT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d0egCNN68FiF5jQ1vfMJLggyRTFihb 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: e27090b1413ff236ca1aec26d6b022149115de2c commit: 8aefa036ccd9b3745e8f68c7a78ee4172296462f [16110/16252] Merge patch series "Add support to handle misaligned accesses in S-mode" config: riscv-allyesconfig (https://download.01.org/0day-ci/archive/20231103/202311031648.9xiTejVV-lkp@intel.com/config) compiler: riscv64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231103/202311031648.9xiTejVV-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/202311031648.9xiTejVV-lkp@intel.com/ All warnings (new ones prefixed by >>): arch/riscv/kernel/smpboot.c: In function 'smp_callin': >> arch/riscv/kernel/smpboot.c:251:32: warning: passing argument 1 of 'check_unaligned_access' makes pointer from integer without a cast [-Wint-conversion] 251 | check_unaligned_access(curr_cpuid); | ^~~~~~~~~~ | | | unsigned int In file included from arch/riscv/include/asm/hwcap.h:73, from arch/riscv/include/asm/alternative.h:19, from arch/riscv/include/asm/errata_list.h:8, from arch/riscv/include/asm/tlbflush.h:12, from arch/riscv/include/asm/pgtable.h:117, from arch/riscv/include/asm/uaccess.h:12, from include/linux/uaccess.h:11, from include/linux/sched/task.h:11, from include/linux/sched/signal.h:9, from include/linux/rcuwait.h:6, from include/linux/percpu-rwsem.h:7, from include/linux/fs.h:33, from include/linux/compat.h:17, from arch/riscv/include/asm/elf.h:12, from include/linux/elf.h:6, from include/linux/module.h:19, from include/linux/device/driver.h:21, from include/linux/device.h:32, from include/linux/acpi.h:14, from arch/riscv/kernel/smpboot.c:11: arch/riscv/include/asm/cpufeature.h:33:34: note: expected 'void *' but argument is of type 'unsigned int' 33 | int check_unaligned_access(void *unused); | ~~~~~~^~~~~~ vim +/check_unaligned_access +251 arch/riscv/kernel/smpboot.c 231 232 /* 233 * C entry point for a secondary processor. 234 */ 235 asmlinkage __visible void smp_callin(void) 236 { 237 struct mm_struct *mm = &init_mm; 238 unsigned int curr_cpuid = smp_processor_id(); 239 240 /* All kernel threads share the same mm context. */ 241 mmgrab(mm); 242 current->active_mm = mm; 243 244 store_cpu_topology(curr_cpuid); 245 notify_cpu_starting(curr_cpuid); 246 247 riscv_ipi_enable(); 248 249 numa_add_cpu(curr_cpuid); 250 set_cpu_online(curr_cpuid, 1); > 251 check_unaligned_access(curr_cpuid); -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki