Re: [PATCH] Fix implicit cast warning in test_klp_state.c

2024-02-20 Thread zhang warden
Would you please pasting the original warning of your complier? And did you check your source code if your source code is the the latest version? Regards, Warden > On Feb 20, 2024, at 21:20, Shresth Prasad wrote: > >> What compiler version and architecture? Are you >compiling using flags like

Re: [PATCH] Fix implicit cast warning in test_klp_state.c

2024-02-19 Thread zhang warden
Well, the repo location I use is git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git. It seem klp_get_state return struct klp_state. The definition of this function in my repo as follows: struct klp_state *klp_get_state(struct klp_patch *patch, unsigned long id) { struct klp_st