* [freescale-fslc:pr/483 2/9636] arch/arm/mach-imx/reboot.c:31:6: warning: no previous prototype for 'do_switch_recovery'
@ 2021-10-31 20:36 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-31 20:36 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3578 bytes --]
tree: https://github.com/Freescale/linux-fslc pr/483
head: 65f148f24e613519a7fe64a9aa941f33e053feac
commit: bc552ba32d60e90cdb4a503c4174a80869f96fed [2/9636] MA-7633-2 [Android-Reboot]reboot to fastboot\recovery mode
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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/Freescale/linux-fslc/commit/bc552ba32d60e90cdb4a503c4174a80869f96fed
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/483
git checkout bc552ba32d60e90cdb4a503c4174a80869f96fed
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm
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 >>):
>> arch/arm/mach-imx/reboot.c:31:6: warning: no previous prototype for 'do_switch_recovery' [-Wmissing-prototypes]
31 | void do_switch_recovery(void)
| ^~~~~~~~~~~~~~~~~~
>> arch/arm/mach-imx/reboot.c:61:6: warning: no previous prototype for 'do_switch_fastboot' [-Wmissing-prototypes]
61 | void do_switch_fastboot(void)
| ^~~~~~~~~~~~~~~~~~
vim +/do_switch_recovery +31 arch/arm/mach-imx/reboot.c
30
> 31 void do_switch_recovery(void)
32 {
33 u32 reg;
34 void *addr;
35 struct clk *snvs_root;
36 if (cpu_is_imx6()) {
37 addr = ioremap(MX6_SNVS_BASE_ADDR, MX6_SNVS_SIZE);
38 if (!addr) {
39 pr_warn("SNVS ioremap failed!\n");
40 return;
41 }
42 reg = __raw_readl(addr + MX6_SNVS_LPGPR);
43 reg |= ANDROID_RECOVERY_BOOT;
44 __raw_writel(reg, (addr + MX6_SNVS_LPGPR));
45 } else {
46 snvs_root = clk_get_sys("imx-snvs.0", "snvs");
47 addr = ioremap(MX7_SNVS_BASE_ADDR, MX7_SNVS_SIZE);
48 if (!addr) {
49 pr_warn("SNVS ioremap failed!\n");
50 return;
51 }
52 clk_enable(snvs_root);
53 reg = __raw_readl(addr + MX7_SNVS_LPGPR);
54 reg |= ANDROID_RECOVERY_BOOT;
55 __raw_writel(reg, (addr + MX7_SNVS_LPGPR));
56 clk_disable(snvs_root);
57 }
58 iounmap(addr);
59 }
60
> 61 void do_switch_fastboot(void)
62 {
63 u32 reg;
64 void *addr;
65 struct clk *snvs_root;
66 if (cpu_is_imx6()) {
67 addr = ioremap(MX6_SNVS_BASE_ADDR, MX6_SNVS_SIZE);
68 if (!addr) {
69 pr_warn("SNVS ioremap failed!\n");
70 return;
71 }
72 reg = __raw_readl(addr + MX6_SNVS_LPGPR);
73 reg |= ANDROID_FASTBOOT_BOOT;
74 __raw_writel(reg, addr + MX6_SNVS_LPGPR);
75 } else {
76 snvs_root = clk_get_sys("imx-snvs.0", "snvs");
77 addr = ioremap(MX7_SNVS_BASE_ADDR, MX7_SNVS_SIZE);
78 if (!addr) {
79 pr_warn("SNVS ioremap failed!\n");
80 return;
81 }
82 clk_enable(snvs_root);
83 reg = __raw_readl(addr + MX7_SNVS_LPGPR);
84 reg |= ANDROID_FASTBOOT_BOOT;
85 __raw_writel(reg, addr + MX7_SNVS_LPGPR);
86 clk_disable(snvs_root);
87 }
88 iounmap(addr);
89 }
90
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 76886 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-31 20:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-31 20:36 [freescale-fslc:pr/483 2/9636] arch/arm/mach-imx/reboot.c:31:6: warning: no previous prototype for 'do_switch_recovery' 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.