From: Matthias-Christian Ott <matthias.christian@tiscali.de>
To: Damir Perisa <damir.perisa@solnet.ch>
Cc: linux-kernel@vger.kernel.org
Subject: Re: how to handle ... warning: `something' is deprecated ...
Date: Thu, 05 May 2005 18:46:17 +0200 [thread overview]
Message-ID: <427A4DD9.4050108@tiscali.de> (raw)
In-Reply-To: <200505051739.42521.damir.perisa@solnet.ch>
Damir Perisa wrote:
> hi all,
>
> i was wondering what i should do with warnings that come up. especially i
> wonder about depreached code. should it be posted to the ML? do the
> people maintaining the drivers/code know about them? what is the general
> procedure? (i know warnings are not errors ;-)
>
The Linux Kernel is just a bad patchwork -- there's no general procedure.
> examples (kernel26mm 2.6.12-rc3-mm3):
>
> CC drivers/char/agp/efficeon-agp.o
> drivers/char/agp/efficeon-agp.c: In function `efficeon_create_gatt_table':
> drivers/char/agp/efficeon-agp.c:222: warning: passing arg 1 of
> `virt_to_phys' makes pointer from integer without a cast
>
This is architectur specific.
> CC [M] drivers/char/specialix.o
> drivers/char/specialix.c: In function `sx_check_io_range':
> drivers/char/specialix.c:343: warning: `check_region' is deprecated
> (declared at include/linux/ioport.h:124)
>
> CC [M] drivers/ide/ide-tape.o
> drivers/ide/ide-tape.c: In function `idetape_copy_stage_from_user':
> drivers/ide/ide-tape.c:2659: warning: ignoring return value of
> `copy_from_user', declared with attribute warn_unused_result
> drivers/ide/ide-tape.c: In function `idetape_copy_stage_to_user':
> drivers/ide/ide-tape.c:2686: warning: ignoring return value of
> `copy_to_user', declared with attribute warn_unused_result
>
> CC [M] drivers/isdn/capi/capidrv.o
> drivers/isdn/capi/capidrv.c:2108:3: warning: #warning FIXME: maybe a race
> condition the card should be removed here from global list /kkeil
>
Well, this is just an information about a possible race condition.
> CC [M] drivers/isdn/hisax/config.o
> drivers/isdn/hisax/config.c: In function `HiSax_readstatus':
> drivers/isdn/hisax/config.c:636: warning: ignoring return value of
> `copy_to_user', declared with attribute warn_unused_result
> drivers/isdn/hisax/config.c:647: warning: ignoring return value of
> `copy_to_user', declared with attribute warn_unused_result
>
> CC drivers/mca/mca-legacy.o
> In file included from drivers/mca/mca-legacy.c:31:
> include/linux/mca-legacy.h:12:2: warning: #warning "MCA legacy - please
> move your driver to the new sysfs api"
> In file included from drivers/mca/mca-legacy.c:31:
> include/linux/mca-legacy.h:12:2: warning: #warning "MCA legacy - please
> move your driver to the new sysfs api"
>
> CC [M] drivers/net/irda/nsc-ircc.o
> drivers/net/irda/nsc-ircc.c: In function `nsc_ircc_cleanup':
> drivers/net/irda/nsc-ircc.c:229: warning: `pm_unregister_all' is
> deprecated (declared at include/linux/pm.h:117)
> drivers/net/irda/nsc-ircc.c: In function `nsc_ircc_open':
> drivers/net/irda/nsc-ircc.c:366: warning: `pm_register' is deprecated
> (declared at include/linux/pm.h:107)
>
> CC [M] drivers/net/irda/smsc-ircc2.o
> drivers/net/irda/smsc-ircc2.c: In function `smsc_ircc_open':
> drivers/net/irda/smsc-ircc2.c:465: warning: `pm_register' is deprecated
> (declared at include/linux/pm.h:107)
> drivers/net/irda/smsc-ircc2.c: In function `smsc_ircc_close':
> drivers/net/irda/smsc-ircc2.c:1696: warning: `pm_unregister' is deprecated
> (declared at include/linux/pm.h:112)
>
> CC [M] drivers/net/irda/ali-ircc.o
> drivers/net/irda/ali-ircc.c: In function `ali_ircc_cleanup':
> drivers/net/irda/ali-ircc.c:231: warning: `pm_unregister_all' is
> deprecated (declared at include/linux/pm.h:117)
> drivers/net/irda/ali-ircc.c: In function `ali_ircc_open':
> drivers/net/irda/ali-ircc.c:360: warning: `pm_register' is deprecated
> (declared at include/linux/pm.h:107)
>
> CC [M] drivers/net/tulip/dmfe.o
> drivers/net/tulip/dmfe.c: In function `dmfe_parse_srom':
> drivers/net/tulip/dmfe.c:1805: warning: passing arg 1 of `__le16_to_cpup'
> from incompatible pointer type
> drivers/net/tulip/dmfe.c:1817: warning: passing arg 1 of `__le32_to_cpup'
> from incompatible pointer type
> drivers/net/tulip/dmfe.c:1817: warning: passing arg 1 of `__le32_to_cpup'
> from incompatible pointer type
>
See above.
> CC [M] drivers/net/ne2.o
> In file included from drivers/net/ne2.c:73:
> include/linux/mca-legacy.h:12:2: warning: #warning "MCA legacy - please
> move your driver to the new sysfs api"
>
> thank you in advance,
>
> Damir Perisa
>
Well I think this deprecation warnings should be fixed as fast as possible, because you can remove the old code and a you have uniform code -- not a mix of old and new code.
Matthias-Christian Ott
prev parent reply other threads:[~2005-05-05 16:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-05 15:39 how to handle ... warning: `something' is deprecated Damir Perisa
2005-05-05 16:46 ` Matthias-Christian Ott [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=427A4DD9.4050108@tiscali.de \
--to=matthias.christian@tiscali.de \
--cc=damir.perisa@solnet.ch \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.