Skip to contentSkip to conversation

linux-next: build warning after merge of the char-misc tree

DISCUSSION Stephen Rothwell 3 participants 4 messages Apr 26, 2019 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the char-misc tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

drivers/misc/aspeed-p2a-ctrl.c: In function 'aspeed_p2a_mmap':
drivers/misc/aspeed-p2a-ctrl.c:110:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
pgprot_t prot = vma->vm_page_prot;
^~~~~~~~

Introduced by commit

01c60dcea9f7 ("drivers/misc: Add Aspeed P2A control driver")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 5 lines · Stephen Rothwell

Hi all,

After merging the char-misc tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

Quoted 8 lines

drivers/misc/aspeed-p2a-ctrl.c: In function 'aspeed_p2a_mmap':
drivers/misc/aspeed-p2a-ctrl.c:110:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
pgprot_t prot = vma->vm_page_prot;
^~~~~~~~

Introduced by commit

01c60dcea9f7 ("drivers/misc: Add Aspeed P2A control driver")

Patrick, I thought you fixed all of these already? Can you send a patch again?

Can you also make the driver so it can build with CONFIG_COMPILE_TEST enabled so that others can find your problems earlier in the review process?

thanks,

greg k-h

#2 lore raw
Quoted 12 lines · Greg KH
Quoted 10 lines · Stephen Rothwell

Hi all,

After merging the char-misc tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

drivers/misc/aspeed-p2a-ctrl.c: In function 'aspeed_p2a_mmap':
drivers/misc/aspeed-p2a-ctrl.c:110:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
pgprot_t prot = vma->vm_page_prot;
^~~~~~~~

Quoted 6 lines
Quoted 3 lines

Introduced by commit

01c60dcea9f7 ("drivers/misc: Add Aspeed P2A control driver")

Patrick, I thought you fixed all of these already? Can you send a patch again?

I fixed the ones caught by the robot. I'll have to switch up my build environment a bit to fault on warnings for the kernel, not sure why it isn't --

Quoted 4 lines

Can you also make the driver so it can build with CONFIG_COMPILE_TEST enabled so that others can find your problems earlier in the review process?

Roger that.

Quoted 4 lines

thanks,

greg k-h

#3 lore raw
Quoted 16 lines · Patrick Venture
Quoted 14 lines · Greg KH
Quoted 12 lines · Stephen Rothwell

Hi all,

After merging the char-misc tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

drivers/misc/aspeed-p2a-ctrl.c: In function 'aspeed_p2a_mmap':
drivers/misc/aspeed-p2a-ctrl.c:110:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
pgprot_t prot = vma->vm_page_prot;
^~~~~~~~

Introduced by commit

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

01c60dcea9f7 ("drivers/misc: Add Aspeed P2A control driver")

Patrick, I thought you fixed all of these already? Can you send a patch again?

I fixed the ones caught by the robot. I'll have to switch up my build environment a bit to fault on warnings for the kernel, not sure why it isn't --

Verified the warnings being ignored isn't a local configuration issue, but the way OpenBMC is configured. Verified the warning via normal kernel compilation and fixed the issue. Reran and found no other issues for that drivers. Submitted patch for review.

Quoted 5 lines
Quoted 5 lines

Can you also make the driver so it can build with CONFIG_COMPILE_TEST enabled so that others can find your problems earlier in the review process?

Verified the driver builds and produces no warnings.

Thanks,
Patrick

Quoted 7 lines

Roger that.

Quoted 4 lines

thanks,

greg k-h