All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Joel Granados <joel.granados@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [joel-granados:jag/s390_sysctl 1/1] arch/s390/mm/cmm.c:262:1: warning: 'static' is not at beginning of declaration
Date: Wed, 9 Apr 2025 20:41:18 +0800	[thread overview]
Message-ID: <202504092024.2dXoEnEC-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-04-09 12: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=202504092024.2dXoEnEC-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=joel.granados@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.