From: kernel test robot <lkp@intel.com>
To: Mark Brown <broonie@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Thiago Jung Bauermann <thiago.bauermann@linaro.org>,
Catalin Marinas <catalin.marinas@arm.com>
Subject: [broonie-ci:arm64-gcs 27/40] arch/arm64/kernel/ptrace.c:1472:1: warning: non-void function does not return a value in all control paths
Date: Mon, 30 Sep 2024 19:03:05 +0800 [thread overview]
Message-ID: <202409301807.bMALFYf7-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git arm64-gcs
head: da6c19766d3399121d0f97a5dcf38de9e315ec9b
commit: ef0e2d1b9c3ffcc89d29b948024b0803cc59b53a [27/40] arm64/ptrace: Expose GCS via ptrace and core files
config: arm64-randconfig-001-20240930 (https://download.01.org/0day-ci/archive/20240930/202409301807.bMALFYf7-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 7773243d9916f98ba0ffce0c3a960e4aa9f03e81)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240930/202409301807.bMALFYf7-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/202409301807.bMALFYf7-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from arch/arm64/kernel/ptrace.c:11:
In file included from include/linux/audit.h:13:
In file included from include/linux/ptrace.h:10:
In file included from include/linux/pid_namespace.h:7:
In file included from include/linux/mm.h:2223:
include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
>> arch/arm64/kernel/ptrace.c:1472:1: warning: non-void function does not return a value in all control paths [-Wreturn-type]
1472 | }
| ^
2 warnings generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for MODVERSIONS
Depends on [n]: MODULES [=y] && !COMPILE_TEST [=y]
Selected by [y]:
- RANDSTRUCT_FULL [=y] && (CC_HAS_RANDSTRUCT [=y] || GCC_PLUGINS [=n]) && MODULES [=y]
vim +1472 arch/arm64/kernel/ptrace.c
1455
1456 static int poe_set(struct task_struct *target, const struct
1457 user_regset *regset, unsigned int pos,
1458 unsigned int count, const void *kbuf, const
1459 void __user *ubuf)
1460 {
1461 int ret;
1462 long ctrl;
1463
1464 if (!system_supports_poe())
1465 return -EINVAL;
1466
1467 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &ctrl, 0, -1);
1468 if (ret)
1469 return ret;
1470
1471 target->thread.por_el0 = ctrl;
> 1472 }
1473 #endif
1474
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-09-30 11:04 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=202409301807.bMALFYf7-lkp@intel.com \
--to=lkp@intel.com \
--cc=broonie@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=thiago.bauermann@linaro.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.