On 04-07-19, 09:04, kbuild test robot wrote: > tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next > head: 267eacd79cadd5e2d6307320497d66119907c411 > commit: 57fa6137402b98327d1247c5aaf3d4f0595a73fe [91/102] PM / QOS: Pass request type to dev_pm_qos_read_value() > config: riscv-allnoconfig (attached as .config) > compiler: riscv64-linux-gcc (GCC) 7.4.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > git checkout 57fa6137402b98327d1247c5aaf3d4f0595a73fe > # save the attached .config to linux build tree > GCC_VERSION=7.4.0 make.cross ARCH=riscv > > If you fix the issue, kindly add following tag > Reported-by: kbuild test robot <lkp@xxxxxxxxx> > > All error/warnings (new ones prefixed by >>): > > In file included from kernel//power/qos.c:33:0: > include/linux/pm_qos.h: In function 'dev_pm_qos_read_value': > >> include/linux/pm_qos.h:197:9: error: expected '(' before 'type' > switch type { > ^~~~ > include/linux/pm_qos.h:197:9: warning: statement with no effect [-Wunused-value] > >> include/linux/pm_qos.h:204:1: warning: no return statement in function returning non-void [-Wreturn-type] > } > ^ > include/linux/pm_qos.h: At top level: > include/linux/pm_qos.h:219:4: error: expected identifier or '(' before '{' token > { return 0; } > ^ > include/linux/pm_qos.h:216:19: warning: 'dev_pm_qos_add_notifier' declared 'static' but never defined [-Wunused-function] > static inline int dev_pm_qos_add_notifier(struct device *dev, Very embarrassing. Fixed these two now. Thanks. -- viresh