GNU/Weeb Mailing List <[email protected]>
 help / color / mirror / Atom feed
From: kernel test robot <[email protected]>
To: Ammar Faizi <[email protected]>,
	GNU/Weeb Mailing List <[email protected]>
Cc: [email protected]
Subject: [ammarfaizi2-block:google/android/kernel/common/android12-trusty-5.10 1/1] drivers/trusty/trusty-sched-share.c:249:5: warning: no previous prototype for 'trusty_get_requested_nice'
Date: Sun, 12 Mar 2023 07:35:58 +0800	[thread overview]
Message-ID: <[email protected]> (raw)

Hi Brandon,

FYI, the error/warning still remains.

tree:   https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android12-trusty-5.10
head:   de814afe14b14bf51d89ff8c1861b7a15ef2c3b2
commit: e399cfde2692714203fc1afa84819394082f4078 [1/1] ANDROID: escalate kthread nice for Trusty
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20230312/[email protected]/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/ammarfaizi2/linux-block/commit/e399cfde2692714203fc1afa84819394082f4078
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android12-trusty-5.10
        git checkout e399cfde2692714203fc1afa84819394082f4078
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

   drivers/trusty/trusty-sched-share.c:110:34: warning: no previous prototype for 'trusty_register_sched_share' [-Wmissing-prototypes]
     110 | struct trusty_sched_share_state *trusty_register_sched_share(struct device *device)
         |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/printk.h:409,
                    from include/linux/kernel.h:16,
                    from include/asm-generic/bug.h:20,
                    from arch/arm/include/asm/bug.h:60,
                    from include/linux/bug.h:5,
                    from include/linux/thread_info.h:12,
                    from include/asm-generic/current.h:5,
                    from ./arch/arm/include/generated/asm/current.h:1,
                    from include/linux/sched.h:12,
                    from include/linux/ratelimit.h:6,
                    from include/linux/dev_printk.h:16,
                    from include/linux/device.h:15,
                    from drivers/trusty/trusty-sched-share.c:10:
   drivers/trusty/trusty-sched-share.c: In function 'trusty_register_sched_share':
   drivers/trusty/trusty-sched-share.c:152:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     152 |                 (u64)sched_share_state);
         |                 ^
   include/linux/dynamic_debug.h:129:29: note: in definition of macro '__dynamic_func_call'
     129 |                 func(&id, ##__VA_ARGS__);               \
         |                             ^~~~~~~~~~~
   include/linux/dynamic_debug.h:161:9: note: in expansion of macro '_dynamic_func_call'
     161 |         _dynamic_func_call(fmt,__dynamic_dev_dbg,               \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:123:9: note: in expansion of macro 'dynamic_dev_dbg'
     123 |         dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~
   drivers/trusty/trusty-sched-share.c:151:9: note: in expansion of macro 'dev_dbg'
     151 |         dev_dbg(device, "%s: sched_share_state=%llx\n", __func__,
         |         ^~~~~~~
   drivers/trusty/trusty-sched-share.c: At top level:
   drivers/trusty/trusty-sched-share.c:183:6: warning: no previous prototype for 'trusty_unregister_sched_share' [-Wmissing-prototypes]
     183 | void trusty_unregister_sched_share(struct trusty_sched_share_state *sched_share_state)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/trusty/trusty-sched-share.c:249:5: warning: no previous prototype for 'trusty_get_requested_nice' [-Wmissing-prototypes]
     249 | int trusty_get_requested_nice(unsigned int cpu_num, struct trusty_sched_share_state *tcpu_state)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/trusty/trusty-sched-share.c:257:6: warning: no previous prototype for 'trusty_set_actual_nice' [-Wmissing-prototypes]
     257 | void trusty_set_actual_nice(unsigned int cpu_num,
         |      ^~~~~~~~~~~~~~~~~~~~~~


vim +/trusty_get_requested_nice +249 drivers/trusty/trusty-sched-share.c

   248	
 > 249	int trusty_get_requested_nice(unsigned int cpu_num, struct trusty_sched_share_state *tcpu_state)
   250	{
   251		struct trusty_sched_shared *tsh = (struct trusty_sched_shared *)tcpu_state->sched_shared_vm;
   252	
   253		return map_trusty_prio_to_linux_nice(
   254				trusty_get_trusty_percpu_data(tsh, cpu_num)->ask_shadow_priority);
   255	}
   256	
 > 257	void trusty_set_actual_nice(unsigned int cpu_num,

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

                 reply	other threads:[~2023-03-11 23:36 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 \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /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