Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1609168
| From | Corentin Labbe <clabbe.montjoie@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/6] hpet: remove unused writeq/readq function definitions |
| Date | 2017-03-25 15:50 +0100 |
| Message-ID | <toVaW-2cv-15@gated-at.bofh.it> (permalink) |
| References | <toVaW-2cv-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
hpet is availlable only on x86/ia64 and thoses arch both provides
readq/writeq functions.
So this patch remove unused writeq/readq function definitions in hpet.c
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
---
drivers/char/hpet.c | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c
index f0e6427..a22543d 100644
--- a/drivers/char/hpet.c
+++ b/drivers/char/hpet.c
@@ -123,22 +123,6 @@ static struct hpets *hpets;
#define HPET_PERIODIC 0x0004
#define HPET_SHARED_IRQ 0x0008
-
-#ifndef readq
-static inline unsigned long long readq(void __iomem *addr)
-{
- return readl(addr) | (((unsigned long long)readl(addr + 4)) << 32LL);
-}
-#endif
-
-#ifndef writeq
-static inline void writeq(unsigned long long v, void __iomem *addr)
-{
- writel(v & 0xffffffff, addr);
- writel(v >> 32, addr + 4);
-}
-#endif
-
static irqreturn_t hpet_interrupt(int irq, void *data)
{
struct hpet_dev *devp;
--
2.10.2
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/6] hpet: misc fix Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-25 15:50 +0100
[PATCH 2/6] hpet: remove unused writeq/readq function definitions Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-25 15:50 +0100
Re: [PATCH 2/6] hpet: remove unused writeq/readq function definitions kbuild test robot <lkp@intel.com> - 2017-03-27 02:00 +0200
Re: [PATCH 2/6] hpet: remove unused writeq/readq function definitions Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-27 10:00 +0200
Re: [PATCH 2/6] hpet: remove unused writeq/readq function definitions Clemens Ladisch <clemens@ladisch.de> - 2017-03-27 10:10 +0200
Re: [PATCH 2/6] hpet: remove unused writeq/readq function definitions Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-27 11:00 +0200
[PATCH 1/6] hpet: remove unused variable hpet in hpet_ioctl_common Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-03-25 15:50 +0100
csiph-web