mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
287 lines
23 KiB
Diff
287 lines
23 KiB
Diff
|
From e4b957d3a7c74749e2ccfb3dedb63b81e84b292c Mon Sep 17 00:00:00 2001
|
||
|
From: Ben Dooks <ben.dooks@codethink.co.uk>
|
||
|
Date: Tue, 15 Oct 2019 17:03:31 +0100
|
||
|
Subject: [PATCH] phy: phy-brcm-usb-init: fix __iomem annotations
|
||
|
|
||
|
The register address should have __iomem attributes
|
||
|
so fix this to remove the following sparse warnings:
|
||
|
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:459:30: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:459:30: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:459:30: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:459:30: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:461:30: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:461:30: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:461:30: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:461:30: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:465:30: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:465:30: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:465:30: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:465:30: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:469:30: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:469:30: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:469:30: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:469:30: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:478:30: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:478:30: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:478:30: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:478:30: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:480:30: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:480:30: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:480:30: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:480:30: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:485:30: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:485:30: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:485:30: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:485:30: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:494:9: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:494:9: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:494:9: expected void [noderef] <asn:2> *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:494:9: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:495:9: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:495:9: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:495:9: expected void [noderef] <asn:2> *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:495:9: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:498:9: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:498:9: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:498:9: expected void [noderef] <asn:2> *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:498:9: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:501:9: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:501:9: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:501:9: expected void [noderef] <asn:2> *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:501:9: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:613:9: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:613:9: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:613:9: expected void [noderef] <asn:2> *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:613:9: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:640:9: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:640:9: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:640:9: expected void [noderef] <asn:2> *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:640:9: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:422:13: warning: incorrect type in assignment (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:422:13: expected void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:422:13: got void [noderef] <asn:2> *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:38: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:38: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:38: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:52: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:52: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:52: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:710:64: warning: Using plain integer as NULL pointer
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:712:32: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:712:32: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:712:32: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:712:32: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:713:29: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:713:29: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:713:29: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:713:29: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:717:29: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:717:29: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:717:29: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:717:29: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:720:9: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:720:9: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:720:9: expected void [noderef] <asn:2> *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:720:9: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:721:9: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:721:9: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:721:9: expected void [noderef] <asn:2> *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:721:9: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:422:13: warning: incorrect type in assignment (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:422:13: expected void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:422:13: got void [noderef] <asn:2> *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:38: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:38: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:38: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:52: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:52: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:52: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:422:13: warning: incorrect type in assignment (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:422:13: expected void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:422:13: got void [noderef] <asn:2> *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:38: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:38: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:38: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:52: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:52: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:52: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:434:13: warning: incorrect type in assignment (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:434:13: expected void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:434:13: got void [noderef] <asn:2> *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:38: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:38: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:38: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:51: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:51: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:51: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:434:13: warning: incorrect type in assignment (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:434:13: expected void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:434:13: got void [noderef] <asn:2> *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:38: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:38: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:38: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:51: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:51: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:51: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:434:13: warning: incorrect type in assignment (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:434:13: expected void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:434:13: got void [noderef] <asn:2> *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:38: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:38: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:38: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:51: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:51: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:51: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:434:13: warning: incorrect type in assignment (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:434:13: expected void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:434:13: got void [noderef] <asn:2> *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:38: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:38: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:38: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:51: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:51: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:51: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:794:29: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:794:29: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:794:29: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:794:29: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:813:29: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:813:29: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:813:29: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:813:29: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:829:37: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:829:37: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:829:37: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:829:37: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:843:37: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:843:37: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:843:37: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:843:37: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:847:37: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:847:37: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:847:37: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:847:37: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:422:13: warning: incorrect type in assignment (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:422:13: expected void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:422:13: got void [noderef] <asn:2> *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:38: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:38: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:38: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:52: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:52: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:52: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:422:13: warning: incorrect type in assignment (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:422:13: expected void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:422:13: got void [noderef] <asn:2> *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:38: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:38: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:38: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:52: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:52: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:52: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:434:13: warning: incorrect type in assignment (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:434:13: expected void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:434:13: got void [noderef] <asn:2> *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:38: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:38: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:38: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:51: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:51: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:51: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:878:9: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:878:9: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:878:9: expected void [noderef] <asn:2> *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:878:9: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:880:29: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:880:29: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:880:29: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:880:29: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:896:29: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:896:29: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:896:29: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:896:29: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:901:37: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:901:37: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:901:37: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:901:37: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:905:37: warning: cast removes address space '<asn:2>' of expression
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:905:37: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:905:37: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:905:37: got void *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:422:13: warning: incorrect type in assignment (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:422:13: expected void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:422:13: got void [noderef] <asn:2> *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:38: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:38: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:38: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:52: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:52: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:52: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:422:13: warning: incorrect type in assignment (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:422:13: expected void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:422:13: got void [noderef] <asn:2> *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:38: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:38: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:38: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:52: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:52: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:423:52: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:434:13: warning: incorrect type in assignment (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:434:13: expected void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:434:13: got void [noderef] <asn:2> *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:38: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:38: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:38: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:51: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:51: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:51: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:434:13: warning: incorrect type in assignment (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:434:13: expected void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:434:13: got void [noderef] <asn:2> *
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:38: warning: incorrect type in argument 1 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:38: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:38: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:51: warning: incorrect type in argument 2 (different address spaces)
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:51: expected void [noderef] <asn:2> *addr
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:435:51: got void *reg
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c:422:13: warning: too many warnings
|
||
|
|
||
|
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
|
||
|
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
|
||
|
---
|
||
|
drivers/phy/broadcom/phy-brcm-usb-init.c | 8 ++++----
|
||
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
||
|
|
||
|
--- a/drivers/phy/broadcom/phy-brcm-usb-init.c
|
||
|
+++ b/drivers/phy/broadcom/phy-brcm-usb-init.c
|
||
|
@@ -126,8 +126,8 @@ enum {
|
||
|
USB_CTRL_SELECTOR_COUNT,
|
||
|
};
|
||
|
|
||
|
-#define USB_CTRL_REG(base, reg) ((void *)base + USB_CTRL_##reg)
|
||
|
-#define USB_XHCI_EC_REG(base, reg) ((void *)base + USB_XHCI_EC_##reg)
|
||
|
+#define USB_CTRL_REG(base, reg) ((void __iomem *)base + USB_CTRL_##reg)
|
||
|
+#define USB_XHCI_EC_REG(base, reg) ((void __iomem *)base + USB_XHCI_EC_##reg)
|
||
|
#define USB_CTRL_MASK(reg, field) \
|
||
|
USB_CTRL_##reg##_##field##_MASK
|
||
|
#define USB_CTRL_MASK_FAMILY(params, reg, field) \
|
||
|
@@ -416,7 +416,7 @@ void usb_ctrl_unset_family(struct brcm_u
|
||
|
u32 reg_offset, u32 field)
|
||
|
{
|
||
|
u32 mask;
|
||
|
- void *reg;
|
||
|
+ void __iomem *reg;
|
||
|
|
||
|
mask = params->usb_reg_bits_map[field];
|
||
|
reg = params->ctrl_regs + reg_offset;
|
||
|
@@ -428,7 +428,7 @@ void usb_ctrl_set_family(struct brcm_usb
|
||
|
u32 reg_offset, u32 field)
|
||
|
{
|
||
|
u32 mask;
|
||
|
- void *reg;
|
||
|
+ void __iomem *reg;
|
||
|
|
||
|
mask = params->usb_reg_bits_map[field];
|
||
|
reg = params->ctrl_regs + reg_offset;
|