diff options
author | Hans de Goede <hdegoede@redhat.com> | 2023-04-04 13:19:55 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-04-06 14:24:04 +0200 |
commit | fb131c472df92b2885262e747906c0a4038c82e5 (patch) | |
tree | 5ce08fc33d80a4431f18ca68f1c5ef1b6d6b84df /drivers/platform | |
parent | c69fec50ec2e3aeea46b13235b72d9d5a1bf095a (diff) | |
download | linux-stable-fb131c472df92b2885262e747906c0a4038c82e5.tar.gz linux-stable-fb131c472df92b2885262e747906c0a4038c82e5.tar.bz2 linux-stable-fb131c472df92b2885262e747906c0a4038c82e5.zip |
platform/x86: apple-gmux: Fix iomem_base __iomem annotation
Fix the __iomem annotation of the iomem_base pointers in the apple-gmux
code. The __iomem should go before the *.
This fixes a bunch of sparse warnings like this one:
drivers/platform/x86/apple-gmux.c:224:48: sparse:
expected void const [noderef] __iomem *
got unsigned char [usertype] *
Fixes: 0c18184de990 ("platform/x86: apple-gmux: support MMIO gmux on T2 Macs")
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/oe-kbuild-all/202304040401.IMxt7Ubi-lkp@intel.com/
Suggested-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Orlando Chamberlain <orlandoch.dev@gmail.com>
Link: https://lore.kernel.org/r/20230404111955.43266-1-hdegoede@redhat.com
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/apple-gmux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/apple-gmux.c b/drivers/platform/x86/apple-gmux.c index 4c311e1dedad..e02b4aea4f1e 100644 --- a/drivers/platform/x86/apple-gmux.c +++ b/drivers/platform/x86/apple-gmux.c @@ -57,7 +57,7 @@ struct apple_gmux_config; struct apple_gmux_data { - u8 *__iomem iomem_base; + u8 __iomem *iomem_base; unsigned long iostart; unsigned long iolen; const struct apple_gmux_config *config; |