pr_warn() must be pr_warning() instead
Fixing the following warning and error message:
[...]drivers/mci/mci-core.c: In function 'mci_card_probe':drivers/mci/mci-core.c:1195:3: warning: implicit declaration of function 'pr_warn'
[...]drivers/built-in.o: In function `mci_card_probe':/home/jb/work/Pengutronix/barebox-development/barebox-git/drivers/mci/mci-core.c:1195: undefined reference to `pr_warn'
drivers/mci/mci-core.c +1 -1
@@ -1192,7 +1192,7 @@ static int mci_card_probe(struct device_d *mci_dev)/* reset the card */ rc =mci_go_idle (mci_dev);if (rc) { -pr_warn ("Cannot reset the SD/MMC card\n" ); +pr_warning ("Cannot reset the SD/MMC card\n" ); goto on_error; }
Signature · 9 lines
Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | Phone: +49-5121-206917-5128 | Vertretung Sued/Muenchen, Germany | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de/ | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 13 lines · Juergen Beisert
Fixing the following warning and error message:
[...]drivers/mci/mci-core.c: In function 'mci_card_probe':drivers/mci/mci-core.c:1195:3: warning: implicit declaration of function 'pr_warn'
[...]drivers/built-in.o: In function `mci_card_probe':/home/jb/work/Pengutronix/barebox-development/barebox-git/drivers/mci/mci-core.c:1195: undefined reference to `pr_warn'drivers/mci/mci-core.c +0
-0
drivers/mci/mci-core.c static int mci_card_probe(struct device_d *mci_dev) · line 1195
Quoted 5 lines
drivers/mci/mci-core.c +1
-1@@ -1192,7 +1192,7 @@ static int mci_card_probe(struct device_d *mci_dev)/* reset the card */ rc =mci_go_idle (mci_dev);if (rc) { -pr_warn ("Cannot reset the SD/MMC card\n" ); +pr_warning ("Cannot reset the SD/MMC card\n" );
The kernel has
#define pr_warn pr_warning
Maybe barebox should get that, too?
Best regards
Uwe
Signature · 7 lines
Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox