From: kernel test robot <lkp@intel.com>
To: Palmer Dabbelt <palmer@rivosinc.com>
Cc: oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>
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
Date: Fri, 3 Nov 2023 16:40:55 +0800 [thread overview]
Message-ID: <202311031648.9xiTejVV-lkp@intel.com> (raw)
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 <lkp@intel.com>
| 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
reply other threads:[~2023-11-03 8:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202311031648.9xiTejVV-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-mm@kvack.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=palmer@rivosinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox