From: Ethan Nelson-Moore <enelsonmoore@gmail.com>
To: netdev@vger.kernel.org
Cc: Ethan Nelson-Moore <enelsonmoore@gmail.com>,
Michael Grzeschik <m.grzeschik@pengutronix.de>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Subject: [PATCH net-next] net: arcnet: remove code depending on nonexistent config option
Date: Sun, 8 Feb 2026 18:54:41 -0800 [thread overview]
Message-ID: <20260209025442.50987-1-enelsonmoore@gmail.com> (raw)
The CONFIG_SA1100_CT6001 option has never existed in the kernel. Remove
code in arcdevice.h referring to it. This allows the
arcnet_(in|out)(s|)b macros to be simplified by removing the BUS_ALIGN
macro.
Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
---
drivers/net/arcnet/arcdevice.h | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
diff --git a/drivers/net/arcnet/arcdevice.h b/drivers/net/arcnet/arcdevice.h
index bee60b377d7c..6a5af0943567 100644
--- a/drivers/net/arcnet/arcdevice.h
+++ b/drivers/net/arcnet/arcdevice.h
@@ -374,24 +374,17 @@ static inline void arcnet_set_addr(struct net_device *dev, u8 addr)
/* I/O equivalents */
-#ifdef CONFIG_SA1100_CT6001
-#define BUS_ALIGN 2 /* 8 bit device on a 16 bit bus - needs padding */
-#else
-#define BUS_ALIGN 1
-#endif
-
/* addr and offset allow register like names to define the actual IO address.
- * A configuration option multiplies the offset for alignment.
*/
#define arcnet_inb(addr, offset) \
- inb((addr) + BUS_ALIGN * (offset))
+ inb((addr) + (offset))
#define arcnet_outb(value, addr, offset) \
- outb(value, (addr) + BUS_ALIGN * (offset))
+ outb(value, (addr) + (offset))
#define arcnet_insb(addr, offset, buffer, count) \
- insb((addr) + BUS_ALIGN * (offset), buffer, count)
+ insb((addr) + (offset), buffer, count)
#define arcnet_outsb(addr, offset, buffer, count) \
- outsb((addr) + BUS_ALIGN * (offset), buffer, count)
+ outsb((addr) + (offset), buffer, count)
#define arcnet_readb(addr, offset) \
readb((addr) + (offset))
--
2.43.0
reply other threads:[~2026-02-09 2:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20260209025442.50987-1-enelsonmoore@gmail.com \
--to=enelsonmoore@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=m.grzeschik@pengutronix.de \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox