summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2026-04-29 15:26:11 +0300
committerBjorn Helgaas <bhelgaas@google.com>2026-06-23 12:08:51 -0500
commit71c6e7808ee99a6e1b29bc30486baf825f9ec728 (patch)
tree82c2e915aa7ac0be63ecf9f0770a7643d371868b /include
parent854f9522a20b6b61a0d6fc9db53e8a1437f65f08 (diff)
downloadlinux-next-71c6e7808ee99a6e1b29bc30486baf825f9ec728.tar.gz
linux-next-71c6e7808ee99a6e1b29bc30486baf825f9ec728.zip
resource: Make resource_alignment() input const resource
resource_alignment() does not need to change resource so it can be made const. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Link: https://patch.msgid.link/20260429122617.7324-6-ilpo.jarvinen@linux.intel.com
Diffstat (limited to 'include')
-rw-r--r--include/linux/ioport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ioport.h b/include/linux/ioport.h
index 3c73c9c0d4f7..f7930b3dfd0a 100644
--- a/include/linux/ioport.h
+++ b/include/linux/ioport.h
@@ -261,7 +261,7 @@ extern int allocate_resource(struct resource *root, struct resource *new,
struct resource *lookup_resource(struct resource *root, resource_size_t start);
int adjust_resource(struct resource *res, resource_size_t start,
resource_size_t size);
-resource_size_t resource_alignment(struct resource *res);
+resource_size_t resource_alignment(const struct resource *res);
/**
* resource_set_size - Calculate resource end address from size and start