linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 10881/13550] include/soc/microchip/mpfs.h:49:29: warning: no previous prototype for function 'mpfs_sys_controller_get'
@ 2021-06-25 12:48 kernel test robot
  2021-06-25 14:17 ` Conor.Dooley
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-06-25 12:48 UTC (permalink / raw)
  To: Conor Dooley
  Cc: kbuild-all, clang-built-linux, Linux Memory Management List, Jassi Brar

[-- Attachment #1: Type: text/plain, Size: 2512 bytes --]

Hi Conor,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   8702f95941c215501826ea8743a8b64b83479209
commit: de5473936808627fa98c3d2e8e3fa3076338f601 [10881/13550] mbox: add polarfire soc system controller mailbox
config: x86_64-randconfig-r015-20210625 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9ca0171a9ffdef5fdb1511d197a3fd72490362de)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=de5473936808627fa98c3d2e8e3fa3076338f601
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout de5473936808627fa98c3d2e8e3fa3076338f601
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from drivers/mailbox/mailbox-mpfs.c:19:
>> include/soc/microchip/mpfs.h:49:29: warning: no previous prototype for function 'mpfs_sys_controller_get' [-Wmissing-prototypes]
   struct mpfs_sys_controller *mpfs_sys_controller_get(struct device_node *mailbox_node)
                               ^
   include/soc/microchip/mpfs.h:49:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   struct mpfs_sys_controller *mpfs_sys_controller_get(struct device_node *mailbox_node)
   ^
   static 
   include/soc/microchip/mpfs.h:43:12: warning: unused function 'mpfs_blocking_transaction' [-Wunused-function]
   static int mpfs_blocking_transaction(struct mpfs_sys_controller *mpfs_client, void *msg,
              ^
   2 warnings generated.


vim +/mpfs_sys_controller_get +49 include/soc/microchip/mpfs.h

    48	
  > 49	struct mpfs_sys_controller *mpfs_sys_controller_get(struct device_node *mailbox_node)
    50	{
    51		return NULL;
    52	}
    53	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 52542 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-next:master 10881/13550] include/soc/microchip/mpfs.h:49:29: warning: no previous prototype for function 'mpfs_sys_controller_get'
  2021-06-25 12:48 [linux-next:master 10881/13550] include/soc/microchip/mpfs.h:49:29: warning: no previous prototype for function 'mpfs_sys_controller_get' kernel test robot
@ 2021-06-25 14:17 ` Conor.Dooley
  0 siblings, 0 replies; 2+ messages in thread
From: Conor.Dooley @ 2021-06-25 14:17 UTC (permalink / raw)
  To: lkp, jaswinder.singh; +Cc: kbuild-all, clang-built-linux, linux-mm

On 25/06/2021 13:48, kernel test robot wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> Hi Conor,
>
> FYI, the error/warning still remains.
Hi,
I resubmitted my series since to fix these errors and another, plus a 
fix in another file.
I believe i forgot to add the reported by tags, should I resend with the 
appropriate tags added?
Conor.
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   8702f95941c215501826ea8743a8b64b83479209
> commit: de5473936808627fa98c3d2e8e3fa3076338f601 [10881/13550] mbox: add polarfire soc system controller mailbox
> config: x86_64-randconfig-r015-20210625 (attached as .config)
> compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9ca0171a9ffdef5fdb1511d197a3fd72490362de)
> 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
>          # install x86_64 cross compiling tool for clang build
>          # apt-get install binutils-x86-64-linux-gnu
>          # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=de5473936808627fa98c3d2e8e3fa3076338f601
>          git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
>          git fetch --no-tags linux-next master
>          git checkout de5473936808627fa98c3d2e8e3fa3076338f601
>          # save the attached .config to linux build tree
>          COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
> All warnings (new ones prefixed by >>):
>
>     In file included from drivers/mailbox/mailbox-mpfs.c:19:
>>> include/soc/microchip/mpfs.h:49:29: warning: no previous prototype for function 'mpfs_sys_controller_get' [-Wmissing-prototypes]
>     struct mpfs_sys_controller *mpfs_sys_controller_get(struct device_node *mailbox_node)
>                                 ^
>     include/soc/microchip/mpfs.h:49:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
>     struct mpfs_sys_controller *mpfs_sys_controller_get(struct device_node *mailbox_node)
>     ^
>     static
>     include/soc/microchip/mpfs.h:43:12: warning: unused function 'mpfs_blocking_transaction' [-Wunused-function]
>     static int mpfs_blocking_transaction(struct mpfs_sys_controller *mpfs_client, void *msg,
>                ^
>     2 warnings generated.
>
>
> vim +/mpfs_sys_controller_get +49 include/soc/microchip/mpfs.h
>
>      48
>    > 49  struct mpfs_sys_controller *mpfs_sys_controller_get(struct device_node *mailbox_node)
>      50  {
>      51          return NULL;
>      52  }
>      53
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-25 14:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-25 12:48 [linux-next:master 10881/13550] include/soc/microchip/mpfs.h:49:29: warning: no previous prototype for function 'mpfs_sys_controller_get' kernel test robot
2021-06-25 14:17 ` Conor.Dooley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox