* [PATCH 0/6] drivers/iio: Constify structs @ 2020-05-26 21:02 Rikard Falkeborn 2020-05-26 21:02 ` [PATCH 4/6] iio: dac: ad5686: Constify static struct iio_chan_spec Rikard Falkeborn 0 siblings, 1 reply; 6+ messages in thread From: Rikard Falkeborn @ 2020-05-26 21:02 UTC (permalink / raw) To: Jonathan Cameron Cc: Hartmut Knaack, Lars-Peter Clausen, Peter Meerwald-Stadler, linux-iio, linux-kernel, Rikard Falkeborn, linux-pm, Michael Hennerich Constify a number of static structs to allow the compiler to put them in read-only memory. The patches are independent. Rikard Falkeborn (6): iio: adc: max11100: Constify struct iio_chan_spec iio: dac: ad5380: Constify struct iio_chan_spec_ext_info iio: dac: ad5592r-base: Constify struct iio_chan_spec_ext_info iio: dac: ad5686: Constify static struct iio_chan_spec iio: light: stk3310: Constify regmap_config iio: magnetometer: mmc35240: Constify struct reg_default drivers/iio/adc/max11100.c | 2 +- drivers/iio/dac/ad5380.c | 2 +- drivers/iio/dac/ad5592r-base.c | 2 +- drivers/iio/dac/ad5686.c | 8 ++++---- drivers/iio/dac/ad5686.h | 2 +- drivers/iio/light/stk3310.c | 2 +- drivers/iio/magnetometer/mmc35240.c | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) -- 2.26.2 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 4/6] iio: dac: ad5686: Constify static struct iio_chan_spec 2020-05-26 21:02 [PATCH 0/6] drivers/iio: Constify structs Rikard Falkeborn @ 2020-05-26 21:02 ` Rikard Falkeborn 2020-05-27 4:50 ` Ardelean, Alexandru 0 siblings, 1 reply; 6+ messages in thread From: Rikard Falkeborn @ 2020-05-26 21:02 UTC (permalink / raw) To: Jonathan Cameron Cc: Hartmut Knaack, Lars-Peter Clausen, Peter Meerwald-Stadler, linux-iio, linux-kernel, Rikard Falkeborn, linux-pm, Michael Hennerich These are never modified and can be made const to allow the compiler to put it in read-only memory. Before: text data bss dec hex filename 6642 12608 64 19314 4b72 drivers/iio/dac/ad5686.o After: text data bss dec hex filename 16946 2304 64 19314 4b72 drivers/iio/dac/ad5686.o Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> --- drivers/iio/dac/ad5686.c | 8 ++++---- drivers/iio/dac/ad5686.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/iio/dac/ad5686.c b/drivers/iio/dac/ad5686.c index 8dd67da0a7da..6de48f618c95 100644 --- a/drivers/iio/dac/ad5686.c +++ b/drivers/iio/dac/ad5686.c @@ -206,12 +206,12 @@ static const struct iio_chan_spec_ext_info ad5686_ext_info[] = { } #define DECLARE_AD5693_CHANNELS(name, bits, _shift) \ -static struct iio_chan_spec name[] = { \ +static const struct iio_chan_spec name[] = { \ AD5868_CHANNEL(0, 0, bits, _shift), \ } #define DECLARE_AD5686_CHANNELS(name, bits, _shift) \ -static struct iio_chan_spec name[] = { \ +static const struct iio_chan_spec name[] = { \ AD5868_CHANNEL(0, 1, bits, _shift), \ AD5868_CHANNEL(1, 2, bits, _shift), \ AD5868_CHANNEL(2, 4, bits, _shift), \ @@ -219,7 +219,7 @@ static struct iio_chan_spec name[] = { \ } #define DECLARE_AD5676_CHANNELS(name, bits, _shift) \ -static struct iio_chan_spec name[] = { \ +static const struct iio_chan_spec name[] = { \ AD5868_CHANNEL(0, 0, bits, _shift), \ AD5868_CHANNEL(1, 1, bits, _shift), \ AD5868_CHANNEL(2, 2, bits, _shift), \ @@ -231,7 +231,7 @@ static struct iio_chan_spec name[] = { \ } #define DECLARE_AD5679_CHANNELS(name, bits, _shift) \ -static struct iio_chan_spec name[] = { \ +static const struct iio_chan_spec name[] = { \ AD5868_CHANNEL(0, 0, bits, _shift), \ AD5868_CHANNEL(1, 1, bits, _shift), \ AD5868_CHANNEL(2, 2, bits, _shift), \ diff --git a/drivers/iio/dac/ad5686.h b/drivers/iio/dac/ad5686.h index 52009b5eef88..a15f2970577e 100644 --- a/drivers/iio/dac/ad5686.h +++ b/drivers/iio/dac/ad5686.h @@ -104,7 +104,7 @@ typedef int (*ad5686_read_func)(struct ad5686_state *st, u8 addr); struct ad5686_chip_info { u16 int_vref_mv; unsigned int num_channels; - struct iio_chan_spec *channels; + const struct iio_chan_spec *channels; enum ad5686_regmap_type regmap_type; }; -- 2.26.2 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 4/6] iio: dac: ad5686: Constify static struct iio_chan_spec 2020-05-26 21:02 ` [PATCH 4/6] iio: dac: ad5686: Constify static struct iio_chan_spec Rikard Falkeborn @ 2020-05-27 4:50 ` Ardelean, Alexandru 2020-05-31 13:47 ` Jonathan Cameron 0 siblings, 1 reply; 6+ messages in thread From: Ardelean, Alexandru @ 2020-05-27 4:50 UTC (permalink / raw) To: rikard.falkeborn@gmail.com, jic23@kernel.org Cc: linux-iio@vger.kernel.org, linux-pm@vger.kernel.org, Hennerich, Michael, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-kernel@vger.kernel.org On Tue, 2020-05-26 at 23:02 +0200, Rikard Falkeborn wrote: > [External] > > These are never modified and can be made const to allow the compiler to > put it in read-only memory. > > Before: > text data bss dec hex filename > 6642 12608 64 19314 4b72 drivers/iio/dac/ad5686.o > > After: > text data bss dec hex filename > 16946 2304 64 19314 4b72 drivers/iio/dac/ad5686.o > Acked-by: Alexandru Ardelean <alexandru.ardelean@analog.com> > Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> > --- > drivers/iio/dac/ad5686.c | 8 ++++---- > drivers/iio/dac/ad5686.h | 2 +- > 2 files changed, 5 insertions(+), 5 deletions(-) > > diff --git a/drivers/iio/dac/ad5686.c b/drivers/iio/dac/ad5686.c > index 8dd67da0a7da..6de48f618c95 100644 > --- a/drivers/iio/dac/ad5686.c > +++ b/drivers/iio/dac/ad5686.c > @@ -206,12 +206,12 @@ static const struct iio_chan_spec_ext_info > ad5686_ext_info[] = { > } > > #define DECLARE_AD5693_CHANNELS(name, bits, _shift) \ > -static struct iio_chan_spec name[] = { \ > +static const struct iio_chan_spec name[] = { \ > AD5868_CHANNEL(0, 0, bits, _shift), \ > } > > #define DECLARE_AD5686_CHANNELS(name, bits, _shift) \ > -static struct iio_chan_spec name[] = { \ > +static const struct iio_chan_spec name[] = { \ > AD5868_CHANNEL(0, 1, bits, _shift), \ > AD5868_CHANNEL(1, 2, bits, _shift), \ > AD5868_CHANNEL(2, 4, bits, _shift), \ > @@ -219,7 +219,7 @@ static struct iio_chan_spec name[] = { > \ > } > > #define DECLARE_AD5676_CHANNELS(name, bits, _shift) \ > -static struct iio_chan_spec name[] = { \ > +static const struct iio_chan_spec name[] = { \ > AD5868_CHANNEL(0, 0, bits, _shift), \ > AD5868_CHANNEL(1, 1, bits, _shift), \ > AD5868_CHANNEL(2, 2, bits, _shift), \ > @@ -231,7 +231,7 @@ static struct iio_chan_spec name[] = { > \ > } > > #define DECLARE_AD5679_CHANNELS(name, bits, _shift) \ > -static struct iio_chan_spec name[] = { \ > +static const struct iio_chan_spec name[] = { \ > AD5868_CHANNEL(0, 0, bits, _shift), \ > AD5868_CHANNEL(1, 1, bits, _shift), \ > AD5868_CHANNEL(2, 2, bits, _shift), \ > diff --git a/drivers/iio/dac/ad5686.h b/drivers/iio/dac/ad5686.h > index 52009b5eef88..a15f2970577e 100644 > --- a/drivers/iio/dac/ad5686.h > +++ b/drivers/iio/dac/ad5686.h > @@ -104,7 +104,7 @@ typedef int (*ad5686_read_func)(struct ad5686_state > *st, u8 addr); > struct ad5686_chip_info { > u16 int_vref_mv; > unsigned int num_channels; > - struct iio_chan_spec *channels; > + const struct iio_chan_spec *channels; > enum ad5686_regmap_type regmap_type; > }; > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 4/6] iio: dac: ad5686: Constify static struct iio_chan_spec 2020-05-27 4:50 ` Ardelean, Alexandru @ 2020-05-31 13:47 ` Jonathan Cameron 2020-08-18 19:30 ` Rikard Falkeborn 0 siblings, 1 reply; 6+ messages in thread From: Jonathan Cameron @ 2020-05-31 13:47 UTC (permalink / raw) To: Ardelean, Alexandru Cc: rikard.falkeborn@gmail.com, linux-iio@vger.kernel.org, linux-pm@vger.kernel.org, Hennerich, Michael, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-kernel@vger.kernel.org On Wed, 27 May 2020 04:50:46 +0000 "Ardelean, Alexandru" <alexandru.Ardelean@analog.com> wrote: > On Tue, 2020-05-26 at 23:02 +0200, Rikard Falkeborn wrote: > > [External] > > > > These are never modified and can be made const to allow the compiler to > > put it in read-only memory. > > > > Before: > > text data bss dec hex filename > > 6642 12608 64 19314 4b72 drivers/iio/dac/ad5686.o > > > > After: > > text data bss dec hex filename > > 16946 2304 64 19314 4b72 drivers/iio/dac/ad5686.o > > > > Acked-by: Alexandru Ardelean <alexandru.ardelean@analog.com> > Applied. thanks, > > Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> > > --- > > drivers/iio/dac/ad5686.c | 8 ++++---- > > drivers/iio/dac/ad5686.h | 2 +- > > 2 files changed, 5 insertions(+), 5 deletions(-) > > > > diff --git a/drivers/iio/dac/ad5686.c b/drivers/iio/dac/ad5686.c > > index 8dd67da0a7da..6de48f618c95 100644 > > --- a/drivers/iio/dac/ad5686.c > > +++ b/drivers/iio/dac/ad5686.c > > @@ -206,12 +206,12 @@ static const struct iio_chan_spec_ext_info > > ad5686_ext_info[] = { > > } > > > > #define DECLARE_AD5693_CHANNELS(name, bits, _shift) \ > > -static struct iio_chan_spec name[] = { \ > > +static const struct iio_chan_spec name[] = { \ > > AD5868_CHANNEL(0, 0, bits, _shift), \ > > } > > > > #define DECLARE_AD5686_CHANNELS(name, bits, _shift) \ > > -static struct iio_chan_spec name[] = { \ > > +static const struct iio_chan_spec name[] = { \ > > AD5868_CHANNEL(0, 1, bits, _shift), \ > > AD5868_CHANNEL(1, 2, bits, _shift), \ > > AD5868_CHANNEL(2, 4, bits, _shift), \ > > @@ -219,7 +219,7 @@ static struct iio_chan_spec name[] = { > > \ > > } > > > > #define DECLARE_AD5676_CHANNELS(name, bits, _shift) \ > > -static struct iio_chan_spec name[] = { \ > > +static const struct iio_chan_spec name[] = { \ > > AD5868_CHANNEL(0, 0, bits, _shift), \ > > AD5868_CHANNEL(1, 1, bits, _shift), \ > > AD5868_CHANNEL(2, 2, bits, _shift), \ > > @@ -231,7 +231,7 @@ static struct iio_chan_spec name[] = { > > \ > > } > > > > #define DECLARE_AD5679_CHANNELS(name, bits, _shift) \ > > -static struct iio_chan_spec name[] = { \ > > +static const struct iio_chan_spec name[] = { \ > > AD5868_CHANNEL(0, 0, bits, _shift), \ > > AD5868_CHANNEL(1, 1, bits, _shift), \ > > AD5868_CHANNEL(2, 2, bits, _shift), \ > > diff --git a/drivers/iio/dac/ad5686.h b/drivers/iio/dac/ad5686.h > > index 52009b5eef88..a15f2970577e 100644 > > --- a/drivers/iio/dac/ad5686.h > > +++ b/drivers/iio/dac/ad5686.h > > @@ -104,7 +104,7 @@ typedef int (*ad5686_read_func)(struct ad5686_state > > *st, u8 addr); > > struct ad5686_chip_info { > > u16 int_vref_mv; > > unsigned int num_channels; > > - struct iio_chan_spec *channels; > > + const struct iio_chan_spec *channels; > > enum ad5686_regmap_type regmap_type; > > }; > > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 4/6] iio: dac: ad5686: Constify static struct iio_chan_spec 2020-05-31 13:47 ` Jonathan Cameron @ 2020-08-18 19:30 ` Rikard Falkeborn 2020-08-22 10:31 ` Jonathan Cameron 0 siblings, 1 reply; 6+ messages in thread From: Rikard Falkeborn @ 2020-08-18 19:30 UTC (permalink / raw) To: Jonathan Cameron Cc: Ardelean, Alexandru, rikard.falkeborn@gmail.com, linux-iio@vger.kernel.org, linux-pm@vger.kernel.org, Hennerich, Michael, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-kernel@vger.kernel.org On Sun, May 31, 2020 at 02:47:15PM +0100, Jonathan Cameron wrote: > On Wed, 27 May 2020 04:50:46 +0000 > "Ardelean, Alexandru" <alexandru.Ardelean@analog.com> wrote: > > > On Tue, 2020-05-26 at 23:02 +0200, Rikard Falkeborn wrote: > > > [External] > > > > > > These are never modified and can be made const to allow the compiler to > > > put it in read-only memory. > > > > > > Before: > > > text data bss dec hex filename > > > 6642 12608 64 19314 4b72 drivers/iio/dac/ad5686.o > > > > > > After: > > > text data bss dec hex filename > > > 16946 2304 64 19314 4b72 drivers/iio/dac/ad5686.o > > > > > > > Acked-by: Alexandru Ardelean <alexandru.ardelean@analog.com> > > > Applied. > > thanks, Was this one really applied? I can't see it anywhere? The rest of the patches in the series are in Linus' tree. Rikard > > > > Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> > > > --- > > > drivers/iio/dac/ad5686.c | 8 ++++---- > > > drivers/iio/dac/ad5686.h | 2 +- > > > 2 files changed, 5 insertions(+), 5 deletions(-) > > > > > > diff --git a/drivers/iio/dac/ad5686.c b/drivers/iio/dac/ad5686.c > > > index 8dd67da0a7da..6de48f618c95 100644 > > > --- a/drivers/iio/dac/ad5686.c > > > +++ b/drivers/iio/dac/ad5686.c > > > @@ -206,12 +206,12 @@ static const struct iio_chan_spec_ext_info > > > ad5686_ext_info[] = { > > > } > > > > > > #define DECLARE_AD5693_CHANNELS(name, bits, _shift) \ > > > -static struct iio_chan_spec name[] = { \ > > > +static const struct iio_chan_spec name[] = { \ > > > AD5868_CHANNEL(0, 0, bits, _shift), \ > > > } > > > > > > #define DECLARE_AD5686_CHANNELS(name, bits, _shift) \ > > > -static struct iio_chan_spec name[] = { \ > > > +static const struct iio_chan_spec name[] = { \ > > > AD5868_CHANNEL(0, 1, bits, _shift), \ > > > AD5868_CHANNEL(1, 2, bits, _shift), \ > > > AD5868_CHANNEL(2, 4, bits, _shift), \ > > > @@ -219,7 +219,7 @@ static struct iio_chan_spec name[] = { > > > \ > > > } > > > > > > #define DECLARE_AD5676_CHANNELS(name, bits, _shift) \ > > > -static struct iio_chan_spec name[] = { \ > > > +static const struct iio_chan_spec name[] = { \ > > > AD5868_CHANNEL(0, 0, bits, _shift), \ > > > AD5868_CHANNEL(1, 1, bits, _shift), \ > > > AD5868_CHANNEL(2, 2, bits, _shift), \ > > > @@ -231,7 +231,7 @@ static struct iio_chan_spec name[] = { > > > \ > > > } > > > > > > #define DECLARE_AD5679_CHANNELS(name, bits, _shift) \ > > > -static struct iio_chan_spec name[] = { \ > > > +static const struct iio_chan_spec name[] = { \ > > > AD5868_CHANNEL(0, 0, bits, _shift), \ > > > AD5868_CHANNEL(1, 1, bits, _shift), \ > > > AD5868_CHANNEL(2, 2, bits, _shift), \ > > > diff --git a/drivers/iio/dac/ad5686.h b/drivers/iio/dac/ad5686.h > > > index 52009b5eef88..a15f2970577e 100644 > > > --- a/drivers/iio/dac/ad5686.h > > > +++ b/drivers/iio/dac/ad5686.h > > > @@ -104,7 +104,7 @@ typedef int (*ad5686_read_func)(struct ad5686_state > > > *st, u8 addr); > > > struct ad5686_chip_info { > > > u16 int_vref_mv; > > > unsigned int num_channels; > > > - struct iio_chan_spec *channels; > > > + const struct iio_chan_spec *channels; > > > enum ad5686_regmap_type regmap_type; > > > }; > > > > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 4/6] iio: dac: ad5686: Constify static struct iio_chan_spec 2020-08-18 19:30 ` Rikard Falkeborn @ 2020-08-22 10:31 ` Jonathan Cameron 0 siblings, 0 replies; 6+ messages in thread From: Jonathan Cameron @ 2020-08-22 10:31 UTC (permalink / raw) To: Rikard Falkeborn Cc: Ardelean, Alexandru, linux-iio@vger.kernel.org, linux-pm@vger.kernel.org, Hennerich, Michael, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-kernel@vger.kernel.org On Tue, 18 Aug 2020 21:30:17 +0200 Rikard Falkeborn <rikard.falkeborn@gmail.com> wrote: > On Sun, May 31, 2020 at 02:47:15PM +0100, Jonathan Cameron wrote: > > On Wed, 27 May 2020 04:50:46 +0000 > > "Ardelean, Alexandru" <alexandru.Ardelean@analog.com> wrote: > > > > > On Tue, 2020-05-26 at 23:02 +0200, Rikard Falkeborn wrote: > > > > [External] > > > > > > > > These are never modified and can be made const to allow the compiler to > > > > put it in read-only memory. > > > > > > > > Before: > > > > text data bss dec hex filename > > > > 6642 12608 64 19314 4b72 drivers/iio/dac/ad5686.o > > > > > > > > After: > > > > text data bss dec hex filename > > > > 16946 2304 64 19314 4b72 drivers/iio/dac/ad5686.o > > > > > > > > > > Acked-by: Alexandru Ardelean <alexandru.ardelean@analog.com> > > > > > Applied. > > > > thanks, > > Was this one really applied? I can't see it anywhere? The rest of the > patches in the series are in Linus' tree. > No idea what happened here. Now applied to the togreg branch of iio.git and pushed out as testing. Sorry about that! Jonathan > Rikard > > > > > > > Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> > > > > --- > > > > drivers/iio/dac/ad5686.c | 8 ++++---- > > > > drivers/iio/dac/ad5686.h | 2 +- > > > > 2 files changed, 5 insertions(+), 5 deletions(-) > > > > > > > > diff --git a/drivers/iio/dac/ad5686.c b/drivers/iio/dac/ad5686.c > > > > index 8dd67da0a7da..6de48f618c95 100644 > > > > --- a/drivers/iio/dac/ad5686.c > > > > +++ b/drivers/iio/dac/ad5686.c > > > > @@ -206,12 +206,12 @@ static const struct iio_chan_spec_ext_info > > > > ad5686_ext_info[] = { > > > > } > > > > > > > > #define DECLARE_AD5693_CHANNELS(name, bits, _shift) \ > > > > -static struct iio_chan_spec name[] = { \ > > > > +static const struct iio_chan_spec name[] = { \ > > > > AD5868_CHANNEL(0, 0, bits, _shift), \ > > > > } > > > > > > > > #define DECLARE_AD5686_CHANNELS(name, bits, _shift) \ > > > > -static struct iio_chan_spec name[] = { \ > > > > +static const struct iio_chan_spec name[] = { \ > > > > AD5868_CHANNEL(0, 1, bits, _shift), \ > > > > AD5868_CHANNEL(1, 2, bits, _shift), \ > > > > AD5868_CHANNEL(2, 4, bits, _shift), \ > > > > @@ -219,7 +219,7 @@ static struct iio_chan_spec name[] = { > > > > \ > > > > } > > > > > > > > #define DECLARE_AD5676_CHANNELS(name, bits, _shift) \ > > > > -static struct iio_chan_spec name[] = { \ > > > > +static const struct iio_chan_spec name[] = { \ > > > > AD5868_CHANNEL(0, 0, bits, _shift), \ > > > > AD5868_CHANNEL(1, 1, bits, _shift), \ > > > > AD5868_CHANNEL(2, 2, bits, _shift), \ > > > > @@ -231,7 +231,7 @@ static struct iio_chan_spec name[] = { > > > > \ > > > > } > > > > > > > > #define DECLARE_AD5679_CHANNELS(name, bits, _shift) \ > > > > -static struct iio_chan_spec name[] = { \ > > > > +static const struct iio_chan_spec name[] = { \ > > > > AD5868_CHANNEL(0, 0, bits, _shift), \ > > > > AD5868_CHANNEL(1, 1, bits, _shift), \ > > > > AD5868_CHANNEL(2, 2, bits, _shift), \ > > > > diff --git a/drivers/iio/dac/ad5686.h b/drivers/iio/dac/ad5686.h > > > > index 52009b5eef88..a15f2970577e 100644 > > > > --- a/drivers/iio/dac/ad5686.h > > > > +++ b/drivers/iio/dac/ad5686.h > > > > @@ -104,7 +104,7 @@ typedef int (*ad5686_read_func)(struct ad5686_state > > > > *st, u8 addr); > > > > struct ad5686_chip_info { > > > > u16 int_vref_mv; > > > > unsigned int num_channels; > > > > - struct iio_chan_spec *channels; > > > > + const struct iio_chan_spec *channels; > > > > enum ad5686_regmap_type regmap_type; > > > > }; > > > > > > ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-08-22 10:31 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2020-05-26 21:02 [PATCH 0/6] drivers/iio: Constify structs Rikard Falkeborn 2020-05-26 21:02 ` [PATCH 4/6] iio: dac: ad5686: Constify static struct iio_chan_spec Rikard Falkeborn 2020-05-27 4:50 ` Ardelean, Alexandru 2020-05-31 13:47 ` Jonathan Cameron 2020-08-18 19:30 ` Rikard Falkeborn 2020-08-22 10:31 ` Jonathan Cameron
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).