<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pm24.git/drivers/net/arcnet/com90xx.c, branch v5.7</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>https://git.kobert.dev/pm24.git/atom/drivers/net/arcnet/com90xx.c?h=v5.7</id>
<link rel='self' href='https://git.kobert.dev/pm24.git/atom/drivers/net/arcnet/com90xx.c?h=v5.7'/>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/'/>
<updated>2019-07-29T16:38:34Z</updated>
<entry>
<title>arcnet: com90xx: Mark expected switch fall-throughs</title>
<updated>2019-07-29T16:38:34Z</updated>
<author>
<name>Gustavo A. R. Silva</name>
<email>gustavo@embeddedor.com</email>
</author>
<published>2019-07-29T11:09:53Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=f3eb2c334a6d3f5e704ecd0b150d5cfe6e3aca40'/>
<id>urn:sha1:f3eb2c334a6d3f5e704ecd0b150d5cfe6e3aca40</id>
<content type='text'>
Mark switch cases where we are expecting to fall through.

This patch fixes the following warnings (Building: powerpc allyesconfig):

drivers/net/arcnet/com90xx.c: In function 'com90xx_setup':
include/linux/printk.h:304:2: warning: this statement may fall through [-Wimplicit-fallthrough=]
  printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/arcnet/com90xx.c:695:3: note: in expansion of macro 'pr_err'
   pr_err("Too many arguments\n");
   ^~~~~~
drivers/net/arcnet/com90xx.c:696:2: note: here
  case 3:  /* Mem address */
  ^~~~
drivers/net/arcnet/com90xx.c:697:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
   shmem = ints[3];
   ~~~~~~^~~~~~~~~
drivers/net/arcnet/com90xx.c:698:2: note: here
  case 2:  /* IRQ */
  ^~~~
drivers/net/arcnet/com90xx.c:699:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
   irq = ints[2];
   ~~~~^~~~~~~~~
drivers/net/arcnet/com90xx.c:700:2: note: here
  case 1:  /* IO address */
  ^~~~

Reported-by: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;
Signed-off-by: Gustavo A. R. Silva &lt;gustavo@embeddedor.com&gt;
Reviewed-by: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Annotate hardware config module parameters in drivers/net/arcnet/</title>
<updated>2017-04-20T11:02:32Z</updated>
<author>
<name>David Howells</name>
<email>dhowells@redhat.com</email>
</author>
<published>2017-04-04T15:54:25Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=06a5128a29b3d67fadff5d9593d79b815d8b34d8'/>
<id>urn:sha1:06a5128a29b3d67fadff5d9593d79b815d8b34d8</id>
<content type='text'>
When the kernel is running in secure boot mode, we lock down the kernel to
prevent userspace from modifying the running kernel image.  Whilst this
includes prohibiting access to things like /dev/mem, it must also prevent
access by means of configuring driver modules in such a way as to cause a
device to access or modify the kernel image.

To this end, annotate module_param* statements that refer to hardware
configuration and indicate for future reference what type of parameter they
specify.  The parameter parser in the core sees this information and can
skip such parameters with an error message if the kernel is locked down.
The module initialisation then runs as normal, but just sees whatever the
default values for those parameters is.

Note that we do still need to do the module initialisation because some
drivers have viable defaults set in case parameters aren't specified and
some drivers support automatic configuration (e.g. PNP or PCI) in addition
to manually coded parameters.

This patch annotates drivers in drivers/net/arcnet/.

Suggested-by: Alan Cox &lt;gnomes@lxorguk.ukuu.org.uk&gt;
Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
cc: Michael Grzeschik &lt;m.grzeschik@pengutronix.de&gt;
cc: netdev@vger.kernel.org
</content>
</entry>
<entry>
<title>arcnet: com90xx: add __init attribute</title>
<updated>2016-04-20T00:17:45Z</updated>
<author>
<name>Julia Lawall</name>
<email>julia.lawall@lip6.fr</email>
</author>
<published>2016-04-18T14:55:35Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=553bc087caf052458dc9f92bc42710027740caa9'/>
<id>urn:sha1:553bc087caf052458dc9f92bc42710027740caa9</id>
<content type='text'>
Add __init attribute on a function that is only called from other __init
functions and that is not inlined, at least with gcc version 4.8.4 on an
x86 machine with allyesconfig.  Currently, the function is put in the
.text.unlikely segment.  Declaring it as __init will cause it to be put in
the .init.text and to disappear after initialization.

The result of objdump -x on the function before the change is as follows:

0000000000000000 l     F .text.unlikely 00000000000000bf check_mirror

And after the change it is as follows:

0000000000000000 l     F .init.text	00000000000000ba check_mirror

Done with the help of Coccinelle.  The semantic patch checks for local
static non-init functions that are called from an __init function and are
not called from any other function.

Signed-off-by: Julia Lawall &lt;Julia.Lawall@lip6.fr&gt;
Acked-by: Michael Grzeschik &lt;mgr@pengutronix.de&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>arcnet: Add com9026.h to standardize COM9026_REG_&lt;foo&gt;</title>
<updated>2015-09-23T06:44:27Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2015-05-05T17:06:13Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=8e0f295ea5e712ca30db08a4e3c496e914ee7fef'/>
<id>urn:sha1:8e0f295ea5e712ca30db08a4e3c496e914ee7fef</id>
<content type='text'>
Deduplicate the COM9026 registers.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: Michael Grzeschik &lt;m.grzeschik@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>arcnet: com90xx: Use arcnet_readb/writeb routines</title>
<updated>2015-09-23T06:44:27Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2015-05-05T17:06:11Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=a11a5442d108357d44d34407ce2ed9d77ab424a0'/>
<id>urn:sha1:a11a5442d108357d44d34407ce2ed9d77ab424a0</id>
<content type='text'>
Simplify and make consistent the current uses of readb/writeb
by using the newly introduced arcnet_&lt;I/O&gt; equivalents.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: Michael Grzeschik &lt;m.grzeschik@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>arcnet: com90xx: Use arcnet_&lt;I/O&gt; routines</title>
<updated>2015-09-23T06:44:26Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2015-05-05T17:06:08Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=09dfbcd5d178f8e03b5a29c9f3411687ec388c91'/>
<id>urn:sha1:09dfbcd5d178f8e03b5a29c9f3411687ec388c91</id>
<content type='text'>
Simplify and make consistent the current uses of inb/outb
by using the newly introduced arcnet_&lt;I/O&gt; equivalents.

o Add new #defines for register offsets
o Remove old #defines that included the ioaddr
o Remove obfuscating macros by expanding them in-place where appropriate

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: Michael Grzeschik &lt;m.grzeschik@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>arcnet: Move files out of include/linux</title>
<updated>2015-09-23T06:44:25Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2015-05-05T17:06:03Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=26c6d281688e8bb8154fa78c60e551d024f5d0b8'/>
<id>urn:sha1:26c6d281688e8bb8154fa78c60e551d024f5d0b8</id>
<content type='text'>
These #include files don't need to be in the include/linux directory
as they can be local to drivers/net/arcnet/

Move them and update the #include statements.

Update the MAINTAINERS file pattern by deleting arcdevice from the
NETWORKING block as arcnet is currently unmaintained.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: Michael Grzeschik &lt;m.grzeschik@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>arcnet: Wrap some long lines</title>
<updated>2015-09-23T06:44:25Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2015-05-05T17:06:02Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=d6d7d3ed56e3bfe7fd34108dbe23f0610e3d8621'/>
<id>urn:sha1:d6d7d3ed56e3bfe7fd34108dbe23f0610e3d8621</id>
<content type='text'>
Just neatening.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: Michael Grzeschik &lt;m.grzeschik@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>arcnet: Convert printk to pr_&lt;level&gt;</title>
<updated>2015-09-23T06:44:24Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2015-05-05T17:05:56Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=05a24b234b9dda3720208b74503f2cf1d05774ee'/>
<id>urn:sha1:05a24b234b9dda3720208b74503f2cf1d05774ee</id>
<content type='text'>
Use the more current logging style.

Remove #define VERSION, use pr_info normally.
Add pr_fmt with "arcnet:" prefixes and KBUILD_MODNAME.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: Michael Grzeschik &lt;m.grzeschik@pengutronix.de&gt;
</content>
</entry>
<entry>
<title>arcnet: Convert BUGMSG and BUGMSG2 to arc_prink and arc_cont</title>
<updated>2015-09-23T06:44:24Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2015-05-05T17:05:55Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=a34c0932c3b2f28542825ffc5280d562c49ad42d'/>
<id>urn:sha1:a34c0932c3b2f28542825ffc5280d562c49ad42d</id>
<content type='text'>
These macros don't actually represent BUG uses but are more commonly
used as logging macros, so use a more kernel style macro.

Convert the BUGMSG from a netdev_ like use to actually use netdev_&lt;level&gt;.

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: Michael Grzeschik &lt;m.grzeschik@pengutronix.de&gt;
</content>
</entry>
</feed>
