Return-Path: Received: from mailapp01.imgtec.com ([195.59.15.196]:52555 "EHLO imgpgp01.kl.imgtec.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752764AbbJSJ7U (ORCPT ); Mon, 19 Oct 2015 05:59:20 -0400 Date: Mon, 19 Oct 2015 10:59:17 +0100 From: James Hogan To: CC: , , Subject: Re: patch "ttyFDC: Fix build problems due to use of module_{init,exit}" added to tty-next Message-ID: <20151019095917.GE30360@jhogan-linux.le.imgtec.org> References: <144518447222888@kroah.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="2hMgfIw2X+zgXrFs" Content-Disposition: inline In-Reply-To: <144518447222888@kroah.com> Sender: stable-owner@vger.kernel.org List-ID: --2hMgfIw2X+zgXrFs Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Greg, On Sun, Oct 18, 2015 at 09:07:52AM -0700, gregkh@linuxfoundation.org wrote: >=20 > This is a note to let you know that I've just added the patch titled >=20 > ttyFDC: Fix build problems due to use of module_{init,exit} >=20 > to my tty git tree which can be found at > git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git > in the tty-next branch. >=20 > The patch will show up in the next release of the linux-next tree > (usually sometime within the next 24 hours during the week.) >=20 > The patch will also be merged in the next major kernel release > during the merge window. Any chance of applying patch 1 (MIPS: CDMM: Add builtin_mips_cdmm_driver() macro) before this one? This patch needs it for the definition of the builtin_mips_cdmm_driver macro. Thanks James >=20 > If you have any questions about this process, please let me know. >=20 >=20 > From 3e8137a185240fa6da0ff91cd9c604716371903b Mon Sep 17 00:00:00 2001 > From: James Hogan > Date: Tue, 6 Oct 2015 15:12:06 +0100 > Subject: ttyFDC: Fix build problems due to use of module_{init,exit} > MIME-Version: 1.0 > Content-Type: text/plain; charset=3DUTF-8 > Content-Transfer-Encoding: 8bit >=20 > Commit 0fd972a7d91d (module: relocate module_init from init.h to > module.h) broke the build of ttyFDC driver due to that driver's (mis)use > of module_mips_cdmm_driver() without first including module.h, for > example: >=20 > In file included from ./arch/mips/include/asm/cdmm.h +11 :0, > from drivers/tty/mips_ejtag_fdc.c +34 : > include/linux/device.h +1295 :1: warning: data definition has no type or = storage class > ./arch/mips/include/asm/cdmm.h +84 :2: note: in expansion of macro =E2=80= =98module_driver=E2=80=99 > drivers/tty/mips_ejtag_fdc.c +1157 :1: note: in expansion of macro =E2=80= =98module_mips_cdmm_driver=E2=80=99 > include/linux/device.h +1295 :1: error: type defaults to =E2=80=98int=E2= =80=99 in declaration of =E2=80=98module_init=E2=80=99 [-Werror=3Dimplicit-= int] > ./arch/mips/include/asm/cdmm.h +84 :2: note: in expansion of macro =E2=80= =98module_driver=E2=80=99 > drivers/tty/mips_ejtag_fdc.c +1157 :1: note: in expansion of macro =E2=80= =98module_mips_cdmm_driver=E2=80=99 > drivers/tty/mips_ejtag_fdc.c +1157 :1: warning: parameter names (without = types) in function declaration >=20 > Instead of just adding the module.h include, switch to using the new > builtin_mips_cdmm_driver() helper macro and drop the remove callback, > since it isn't needed. If module support is added later, the code can > always be resurrected. >=20 > Signed-off-by: James Hogan > Cc: Greg Kroah-Hartman > Cc: Jiri Slaby > Cc: Paul Gortmaker > Cc: linux-mips@linux-mips.org > Cc: # 4.2.x- > Signed-off-by: Greg Kroah-Hartman > --- > drivers/tty/mips_ejtag_fdc.c | 35 +---------------------------------- > 1 file changed, 1 insertion(+), 34 deletions(-) >=20 > diff --git a/drivers/tty/mips_ejtag_fdc.c b/drivers/tty/mips_ejtag_fdc.c > index 5a6d0b5cd18b..a119176a1855 100644 > --- a/drivers/tty/mips_ejtag_fdc.c > +++ b/drivers/tty/mips_ejtag_fdc.c > @@ -1048,38 +1048,6 @@ err_destroy_ports: > return ret; > } > =20 > -static int mips_ejtag_fdc_tty_remove(struct mips_cdmm_device *dev) > -{ > - struct mips_ejtag_fdc_tty *priv =3D mips_cdmm_get_drvdata(dev); > - struct mips_ejtag_fdc_tty_port *dport; > - int nport; > - unsigned int cfg; > - > - if (priv->irq >=3D 0) { > - raw_spin_lock_irq(&priv->lock); > - cfg =3D mips_ejtag_fdc_read(priv, REG_FDCFG); > - /* Disable interrupts */ > - cfg &=3D ~(REG_FDCFG_TXINTTHRES | REG_FDCFG_RXINTTHRES); > - cfg |=3D REG_FDCFG_TXINTTHRES_DISABLED; > - cfg |=3D REG_FDCFG_RXINTTHRES_DISABLED; > - mips_ejtag_fdc_write(priv, REG_FDCFG, cfg); > - raw_spin_unlock_irq(&priv->lock); > - } else { > - priv->removing =3D true; > - del_timer_sync(&priv->poll_timer); > - } > - kthread_stop(priv->thread); > - if (dev->cpu =3D=3D 0) > - mips_ejtag_fdc_con.tty_drv =3D NULL; > - tty_unregister_driver(priv->driver); > - for (nport =3D 0; nport < NUM_TTY_CHANNELS; nport++) { > - dport =3D &priv->ports[nport]; > - tty_port_destroy(&dport->port); > - } > - put_tty_driver(priv->driver); > - return 0; > -} > - > static int mips_ejtag_fdc_tty_cpu_down(struct mips_cdmm_device *dev) > { > struct mips_ejtag_fdc_tty *priv =3D mips_cdmm_get_drvdata(dev); > @@ -1152,12 +1120,11 @@ static struct mips_cdmm_driver mips_ejtag_fdc_tty= _driver =3D { > .name =3D "mips_ejtag_fdc", > }, > .probe =3D mips_ejtag_fdc_tty_probe, > - .remove =3D mips_ejtag_fdc_tty_remove, > .cpu_down =3D mips_ejtag_fdc_tty_cpu_down, > .cpu_up =3D mips_ejtag_fdc_tty_cpu_up, > .id_table =3D mips_ejtag_fdc_tty_ids, > }; > -module_mips_cdmm_driver(mips_ejtag_fdc_tty_driver); > +builtin_mips_cdmm_driver(mips_ejtag_fdc_tty_driver); > =20 > static int __init mips_ejtag_fdc_init_console(void) > { > --=20 > 2.6.1 >=20 >=20 --2hMgfIw2X+zgXrFs Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWJL71AAoJEGwLaZPeOHZ6wVIP/1hDWXaB3ghPdPjXmBf8elRz ZTiPL1UKkBClctyADyqENt+WIJC4+h4xuYTwSc5udxTCk3qgNXGUCrlFvN2zcu0+ NxbfHD3TFw/Sybjg931omnNWZySjCCHH9+zvYSCnYVM6rY1N/wJ2nRskulPXF0dF ncIV5bx1NF3uIr+xbRVcdtGMYmS+ChG1zch1Z4YmTecH7Wfh8uPVyMODDqToe5vi 5ATH7QSB76Rp9AY+ol7A8LpLfub0hlyrzIxnpQY87EaUO9QN7/1mymYjis2pN81a CYvd3MSnHc1NQAL41wsm0xUjgDmY80GZ/DD2dLQf3e25/MRF3sI1HNTK0fWThXpX AlXYJfpj/Nb4f0ESkz4y2Wj6BNmSxJxgMG524JomBDJJZfSji4eL2okGI7weJigx Nzp+CXgEuEF/ZPX9vOHZUmqtgncurZVmFOvPQ3ctZWyPPxmclmM07V2Wt7CYV590 TgDahUX9eG8cYSX236K0gutZRxtMWi+CRGvJBCO4wNhuUcyvXWZU81ZFpcV06BRi RSvpS814iNG/XImEZo3hc3egho4QER3WlkRdCvxr1lA4N6srZr0YG4t+lSSvP6MC YvO/4Dgy7umVP9JBEq5ejRBIPC9SIjh7kyFgeN0tS8jN3HprF5d7OfQUKsD8JQCx PdRUQ9oVzwF4ODv9JsAP =49GG -----END PGP SIGNATURE----- --2hMgfIw2X+zgXrFs--