* [joel-granados:jag/s390_sysctl 1/1] arch/s390/mm/cmm.c:262:1: warning: 'static' is not at beginning of declaration
@ 2025-04-09 12:41 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-04-09 12:41 UTC (permalink / raw)
To: Joel Granados; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/joel.granados/linux.git jag/s390_sysctl
head: 5503b9cfa4bda9b2e79c545295dfd03eda1eb010
commit: 5503b9cfa4bda9b2e79c545295dfd03eda1eb010 [1/1] s390/sysctl: Remove ctl_table entry from cmm_pages_handler
config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20250409/202504092024.2dXoEnEC-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250409/202504092024.2dXoEnEC-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/202504092024.2dXoEnEC-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/s390/mm/cmm.c:262:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
262 | const static struct ctl_table cmm_pages_ctls[] = {
| ^~~~~
arch/s390/mm/cmm.c:349:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
349 | const static struct ctl_table cmm_table[] = {
| ^~~~~
>> arch/s390/mm/cmm.c:229:13: warning: 'cmm_get_pages' defined but not used [-Wunused-function]
229 | static long cmm_get_pages(void)
| ^~~~~~~~~~~~~
vim +/static +262 arch/s390/mm/cmm.c
228
> 229 static long cmm_get_pages(void)
230 {
231 return cmm_pages;
232 }
233
234 static void cmm_add_timed_pages(long nr)
235 {
236 cmm_timed_pages_target += nr;
237 cmm_kick_thread();
238 }
239
240 static long cmm_get_timed_pages(void)
241 {
242 return cmm_timed_pages;
243 }
244
245 static void cmm_set_timeout(long nr, long seconds)
246 {
247 cmm_timeout_pages = nr;
248 cmm_timeout_seconds = seconds;
249 cmm_set_timer();
250 }
251
252 static int cmm_skip_blanks(char *cp, char **endp)
253 {
254 char *str;
255
256 for (str = cp; *str == ' ' || *str == '\t'; str++)
257 ;
258 *endp = str;
259 return str != cp;
260 }
261
> 262 const static struct ctl_table cmm_pages_ctls[] = {
263 {
264 .data = &cmm_pages,
265 .maxlen = sizeof(long),
266 .procname = "cmm_pages",
267 },
268 {
269 .data = &cmm_pages_target,
270 .maxlen = sizeof(long),
271 .procname = "cmm_pages",
272 },
273 };
274 #define cmm_pages_ctl cmm_pages_ctls[0]
275 #define cmm_pages_target_ctl cmm_pages_ctls[1]
276
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-04-09 12:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-09 12:41 [joel-granados:jag/s390_sysctl 1/1] arch/s390/mm/cmm.c:262:1: warning: 'static' is not at beginning of declaration kernel test robot
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.