linux-next: build failure after merge of the char-misc tree
Subsystems (2)
[email protected]
maintainerHi all,
After merging the char-misc tree, today's linux-next build (x86 allmodconfig) failed like this:
/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sd_request':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:809:17: error: unused variable 'dev' [-Werror=unused-variable]
809 | struct device *dev = &host->pdev->dev;
| ^~~/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sdmmc_set_ios':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:1084:17: error: unused variable 'dev' [-Werror=unused-variable]
1084 | struct device *dev = &host->pdev->dev;
| ^~~/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sdmmc_get_ro':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:1133:17: error: unused variable 'dev' [-Werror=unused-variable]
1133 | struct device *dev = &host->pdev->dev;
| ^~~/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sdmmc_get_cd':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:1159:17: error: unused variable 'dev' [-Werror=unused-variable]
1159 | struct device *dev = &host->pdev->dev;
| ^~~/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sdmmc_switch_voltage':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:1258:17: error: unused variable 'dev' [-Werror=unused-variable]
1258 | struct device *dev = &host->pdev->dev;
| ^~~/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sdmmc_execute_tuning':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:1311:17: error: unused variable 'dev' [-Werror=unused-variable]
1311 | struct device *dev = &host->pdev->dev;
| ^~~
cc1: all warnings being treated as errors
Caused by commit
7570fb41e450ba37 ("mmc: rtsx: Let MMC core handle runtime PM")
I have used the char-misc tree from yesterday instead.
Quoted 31 lines · On Fri, Feb 25, 2022 at 08:40:55PM +0000, [email protected] wrote:
Hi all,
After merging the char-misc tree, today's linux-next build (x86 allmodconfig) failed like this:
/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sd_request':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:809:17: error: unused variable 'dev' [-Werror=unused-variable]
809 | struct device *dev =&host->pdev->dev;
| ^~~/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sdmmc_set_ios':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:1084:17: error: unused variable 'dev' [-Werror=unused-variable]
1084 | struct device *dev =&host->pdev->dev;
| ^~~/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sdmmc_get_ro':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:1133:17: error: unused variable 'dev' [-Werror=unused-variable]
1133 | struct device *dev =&host->pdev->dev;
| ^~~/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sdmmc_get_cd':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:1159:17: error: unused variable 'dev' [-Werror=unused-variable]
1159 | struct device *dev =&host->pdev->dev;
| ^~~/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sdmmc_switch_voltage':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:1258:17: error: unused variable 'dev' [-Werror=unused-variable]
1258 | struct device *dev =&host->pdev->dev;
| ^~~/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sdmmc_execute_tuning':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:1311:17: error: unused variable 'dev' [-Werror=unused-variable]
1311 | struct device *dev =&host->pdev->dev;
| ^~~
cc1: all warnings being treated as errors
Quoted 5 lines
Caused by commit
7570fb41e450ba37("mmc: rtsx: Let MMC core handle runtime PM")I have used the char-misc tree from yesterday instead.
Kai-Heng, can you send an add-on patch to fix this?
thanks,
greg k-h
Hi all,
Quoted 34 lines · On Sat, 26 Feb 2022 16:08:32 +0100 Greg KH <[email protected]> wrote:
Quoted 32 lines · On Fri, Feb 25, 2022 at 08:40:55PM +0000, [email protected] wrote:
After merging the char-misc tree, today's linux-next build (x86 allmodconfig) failed like this:
/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sd_request':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:809:17: error: unused variable 'dev' [-Werror=unused-variable]
809 | struct device *dev =&host->pdev->dev;
| ^~~/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sdmmc_set_ios':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:1084:17: error: unused variable 'dev' [-Werror=unused-variable]
1084 | struct device *dev =&host->pdev->dev;
| ^~~/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sdmmc_get_ro':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:1133:17: error: unused variable 'dev' [-Werror=unused-variable]
1133 | struct device *dev =&host->pdev->dev;
| ^~~/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sdmmc_get_cd':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:1159:17: error: unused variable 'dev' [-Werror=unused-variable]
1159 | struct device *dev =&host->pdev->dev;
| ^~~/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sdmmc_switch_voltage':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:1258:17: error: unused variable 'dev' [-Werror=unused-variable]
1258 | struct device *dev =&host->pdev->dev;
| ^~~/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sdmmc_execute_tuning':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:1311:17: error: unused variable 'dev' [-Werror=unused-variable]
1311 | struct device *dev =&host->pdev->dev;
| ^~~
cc1: all warnings being treated as errorsCaused by commit
Quoted 7 lines
Quoted 3 lines
7570fb41e450ba37("mmc: rtsx: Let MMC core handle runtime PM")I have used the char-misc tree from yesterday instead.
Kai-Heng, can you send an add-on patch to fix this?
thanks,
I am still getting these build errors.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 39 lines · Stephen Rothwell
Hi all,
Quoted 36 lines · On Sat, 26 Feb 2022 16:08:32 +0100 Greg KH <[email protected]> wrote:
Quoted 34 lines · On Fri, Feb 25, 2022 at 08:40:55PM +0000, [email protected] wrote:
After merging the char-misc tree, today's linux-next build (x86 allmodconfig) failed like this:
/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sd_request':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:809:17: error: unused variable 'dev' [-Werror=unused-variable]
809 | struct device *dev =&host->pdev->dev;
| ^~~/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sdmmc_set_ios':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:1084:17: error: unused variable 'dev' [-Werror=unused-variable]
1084 | struct device *dev =&host->pdev->dev;
| ^~~/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sdmmc_get_ro':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:1133:17: error: unused variable 'dev' [-Werror=unused-variable]
1133 | struct device *dev =&host->pdev->dev;
| ^~~/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sdmmc_get_cd':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:1159:17: error: unused variable 'dev' [-Werror=unused-variable]
1159 | struct device *dev =&host->pdev->dev;
| ^~~/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sdmmc_switch_voltage':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:1258:17: error: unused variable 'dev' [-Werror=unused-variable]
1258 | struct device *dev =&host->pdev->dev;
| ^~~/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c: In function 'sdmmc_execute_tuning':/tmp/next/build/drivers/mmc/host/rtsx_pci_sdmmc.c:1311:17: error: unused variable 'dev' [-Werror=unused-variable]
1311 | struct device *dev =&host->pdev->dev;
| ^~~
cc1: all warnings being treated as errorsCaused by commit
7570fb41e450ba37("mmc: rtsx: Let MMC core handle runtime PM")
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
I have used the char-misc tree from yesterday instead.
Kai-Heng, can you send an add-on patch to fix this?
thanks,
I am still getting these build errors.
Should now be fixed, sorry for the delay.
greg k-h