All of lore.kernel.org
 help / color / mirror / Atom feed
* [krzk-github:n/audio-wsa884x-on-top-of-wip-sm8450-hdmi-audio-on-qcomlt 178/453] drivers/pci/endpoint/functions/pci-epf-mhi.c:146:6: warning: no previous prototype for function 'pci_epf_mhi_raise_irq'
@ 2023-05-13 21:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-05-13 21:37 UTC (permalink / raw)
  To: Manivannan Sadhasivam; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/krzk/linux n/audio-wsa884x-on-top-of-wip-sm8450-hdmi-audio-on-qcomlt
head:   255ec801b7a09e914735a942f27f3c74f5e8e810
commit: 2e57e366c02cd2c24bb947f2f2607857318bc1e4 [178/453] PCI: endpoint: Add PCI Endpoint function driver for MHI bus
config: powerpc-allyesconfig (https://download.01.org/0day-ci/archive/20230514/202305140553.mkEWd8CJ-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project b0fb98227c90adf2536c9ad644a74d5e92961111)
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 powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://github.com/krzk/linux/commit/2e57e366c02cd2c24bb947f2f2607857318bc1e4
        git remote add krzk-github https://github.com/krzk/linux
        git fetch --no-tags krzk-github n/audio-wsa884x-on-top-of-wip-sm8450-hdmi-audio-on-qcomlt
        git checkout 2e57e366c02cd2c24bb947f2f2607857318bc1e4
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/pci/endpoint/functions/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305140553.mkEWd8CJ-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/pci/endpoint/functions/pci-epf-mhi.c:100:24: error: field has incomplete type 'enum pci_notify_event'
           enum pci_notify_event event;
                                 ^
   drivers/pci/endpoint/functions/pci-epf-mhi.c:100:7: note: forward declaration of 'enum pci_notify_event'
           enum pci_notify_event event;
                ^
>> drivers/pci/endpoint/functions/pci-epf-mhi.c:146:6: warning: no previous prototype for function 'pci_epf_mhi_raise_irq' [-Wmissing-prototypes]
   void pci_epf_mhi_raise_irq(struct mhi_ep_cntrl *mhi_cntrl, u32 vector)
        ^
   drivers/pci/endpoint/functions/pci-epf-mhi.c:146:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void pci_epf_mhi_raise_irq(struct mhi_ep_cntrl *mhi_cntrl, u32 vector)
   ^
   static 
   drivers/pci/endpoint/functions/pci-epf-mhi.c:159:5: warning: no previous prototype for function 'pci_epf_mhi_read_from_host' [-Wmissing-prototypes]
   int pci_epf_mhi_read_from_host(struct mhi_ep_cntrl *mhi_cntrl, u64 from, void __iomem *to,
       ^
   drivers/pci/endpoint/functions/pci-epf-mhi.c:159:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int pci_epf_mhi_read_from_host(struct mhi_ep_cntrl *mhi_cntrl, u64 from, void __iomem *to,
   ^
   static 
   drivers/pci/endpoint/functions/pci-epf-mhi.c:196:5: warning: no previous prototype for function 'pci_epf_mhi_write_to_host' [-Wmissing-prototypes]
   int pci_epf_mhi_write_to_host(struct mhi_ep_cntrl *mhi_cntrl, void __iomem *from, u64 to,
       ^
   drivers/pci/endpoint/functions/pci-epf-mhi.c:196:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int pci_epf_mhi_write_to_host(struct mhi_ep_cntrl *mhi_cntrl, void __iomem *from, u64 to,
   ^
   static 
   drivers/pci/endpoint/functions/pci-epf-mhi.c:235:57: error: no member named 'nb' in 'struct pci_epf'
           struct pci_epf *epf = container_of(nb, struct pci_epf, nb);
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
   include/linux/container_of.h:20:49: note: expanded from macro 'container_of'
           static_assert(__same_type(*(ptr), ((type *)0)->member) ||       \
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:338:74: note: expanded from macro '__same_type'
   #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
                                                                            ^
   include/linux/build_bug.h:77:50: note: expanded from macro 'static_assert'
   #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
                                    ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:78:56: note: expanded from macro '__static_assert'
   #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
                                                          ^~~~
   drivers/pci/endpoint/functions/pci-epf-mhi.c:235:24: error: no member named 'nb' in 'pci_epf'
           struct pci_epf *epf = container_of(nb, struct pci_epf, nb);
                                 ^                                ~~
   include/linux/container_of.h:23:21: note: expanded from macro 'container_of'
           ((type *)(__mptr - offsetof(type, member))); })
                              ^              ~~~~~~
   include/linux/stddef.h:16:32: note: expanded from macro 'offsetof'
   #define offsetof(TYPE, MEMBER)  __builtin_offsetof(TYPE, MEMBER)
                                   ^                        ~~~~~~
   drivers/pci/endpoint/functions/pci-epf-mhi.c:235:18: error: initializing 'struct pci_epf *' with an expression of incompatible type 'void'
           struct pci_epf *epf = container_of(nb, struct pci_epf, nb);
                           ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/pci/endpoint/functions/pci-epf-mhi.c:245:7: error: use of undeclared identifier 'CORE_INIT'
           case CORE_INIT:
                ^
   drivers/pci/endpoint/functions/pci-epf-mhi.c:270:7: error: use of undeclared identifier 'LINK_UP'
           case LINK_UP:
                ^
   drivers/pci/endpoint/functions/pci-epf-mhi.c:292:7: error: use of undeclared identifier 'LINK_DOWN'
           case LINK_DOWN:
                ^
   drivers/pci/endpoint/functions/pci-epf-mhi.c:300:7: error: use of undeclared identifier 'BME'
           case BME:
                ^
   drivers/pci/endpoint/functions/pci-epf-mhi.c:351:7: error: no member named 'nb' in 'struct pci_epf'
           epf->nb.notifier_call = pci_epf_mhi_notifier;
           ~~~  ^
   drivers/pci/endpoint/functions/pci-epf-mhi.c:352:2: error: call to undeclared function 'pci_epc_register_notifier'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           pci_epc_register_notifier(epc, &epf->nb);
           ^
   drivers/pci/endpoint/functions/pci-epf-mhi.c:352:39: error: no member named 'nb' in 'struct pci_epf'
           pci_epc_register_notifier(epc, &epf->nb);
                                           ~~~  ^
   drivers/pci/endpoint/functions/pci-epf-mhi.c:365:2: error: call to undeclared function 'pci_epc_unregister_notifier'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           pci_epc_unregister_notifier(epc, &epf->nb);
           ^
   drivers/pci/endpoint/functions/pci-epf-mhi.c:365:2: note: did you mean 'pci_epf_unregister_driver'?
   include/linux/pci-epf.h:210:6: note: 'pci_epf_unregister_driver' declared here
   void pci_epf_unregister_driver(struct pci_epf_driver *driver);
        ^
   drivers/pci/endpoint/functions/pci-epf-mhi.c:365:41: error: no member named 'nb' in 'struct pci_epf'
           pci_epc_unregister_notifier(epc, &epf->nb);
                                             ~~~  ^
   drivers/pci/endpoint/functions/pci-epf-mhi.c:416:12: error: incompatible function pointer types initializing 'int (*)(struct pci_epf *)' with an expression of type 'int (struct pci_epf *, const struct pci_epf_device_id *)' [-Wincompatible-function-pointer-types]
           .probe          = pci_epf_mhi_probe,
                             ^~~~~~~~~~~~~~~~~
   3 warnings and 14 errors generated.


vim +/pci_epf_mhi_raise_irq +146 drivers/pci/endpoint/functions/pci-epf-mhi.c

   145	
 > 146	void pci_epf_mhi_raise_irq(struct mhi_ep_cntrl *mhi_cntrl, u32 vector)
   147	{
   148		struct pci_epf_mhi *epf_mhi = container_of(mhi_cntrl, struct pci_epf_mhi, mhi_cntrl);
   149		struct pci_epf *epf = epf_mhi->epf;
   150		struct pci_epc *epc = epf->epc;
   151	
   152		/*
   153		 * Vector is incremented by 1 here as the DWC core will decrement it before
   154		 * writing to iATU.
   155		 */
   156		pci_epc_raise_irq(epc, epf->func_no, epf->vfunc_no, PCI_EPC_IRQ_MSI, vector + 1);
   157	}
   158	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-13 21:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-13 21:37 [krzk-github:n/audio-wsa884x-on-top-of-wip-sm8450-hdmi-audio-on-qcomlt 178/453] drivers/pci/endpoint/functions/pci-epf-mhi.c:146:6: warning: no previous prototype for function 'pci_epf_mhi_raise_irq' 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.