aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/resource.c
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2010-01-01 11:40:50 -0500
committerJesse Barnes <jbarnes@virtuousgeek.org>2010-02-22 19:16:57 -0500
commit3b7a17fcdae532d29dffab9d564a28be08960988 (patch)
tree64ac96e997751e34fcd237485fac9b868d1e0614 /kernel/resource.c
parentb26b2d494b659f988b4d75eb394dfa0ddac415c9 (diff)
resource/PCI: mark struct resource as const
Now that we return the new resource start position, there is no need to update "struct resource" inside the align function. Therefore, mark the struct resource as const. Cc: Bjorn Helgaas <bjorn.helgaas@hp.com> Cc: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'kernel/resource.c')
-rw-r--r--kernel/resource.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/resource.c b/kernel/resource.c
index e697f20e228..7fd123ad00a 100644
--- a/kernel/resource.c
+++ b/kernel/resource.c
@@ -304,7 +304,7 @@ static int find_resource(struct resource *root, struct resource *new,
304 resource_size_t size, resource_size_t min, 304 resource_size_t size, resource_size_t min,
305 resource_size_t max, resource_size_t align, 305 resource_size_t max, resource_size_t align,
306 resource_size_t (*alignf)(void *, 306 resource_size_t (*alignf)(void *,
307 struct resource *, 307 const struct resource *,
308 resource_size_t, 308 resource_size_t,
309 resource_size_t), 309 resource_size_t),
310 void *alignf_data) 310 void *alignf_data)
@@ -361,7 +361,7 @@ int allocate_resource(struct resource *root, struct resource *new,
361 resource_size_t size, resource_size_t min, 361 resource_size_t size, resource_size_t min,
362 resource_size_t max, resource_size_t align, 362 resource_size_t max, resource_size_t align,
363 resource_size_t (*alignf)(void *, 363 resource_size_t (*alignf)(void *,
364 struct resource *, 364 const struct resource *,
365 resource_size_t, 365 resource_size_t,
366 resource_size_t), 366 resource_size_t),
367 void *alignf_data) 367 void *alignf_data)