diff options
author | Stephen Hurd <shurd@FreeBSD.org> | 2018-05-29 21:56:39 +0000 |
---|---|---|
committer | Stephen Hurd <shurd@FreeBSD.org> | 2018-05-29 21:56:39 +0000 |
commit | 3e0e6330b52cb5af572ac2b5cda1199a32cbed4b (patch) | |
tree | ddcc2cec3d9f5134e68d8db8e99b2f6bced23edd /sys/sys/gtaskqueue.h | |
parent | 21a8e0b1d5868eeaa75b9024df6c603dc77e8e3c (diff) | |
download | src-3e0e6330b52cb5af572ac2b5cda1199a32cbed4b.tar.gz src-3e0e6330b52cb5af572ac2b5cda1199a32cbed4b.zip |
iflib: mark irq allocation name parameter as constant
The *name parameter passed to iflib_irq_alloc_generic and
iflib_softirq_alloc_generic is never modified. Many places in code pass
string literals and thus should not be modified.
Mark the *name parameter as a const char * instead, so that we enforce
that the name is not modified before passing to bus_describe_intr()
Submitted by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed by: kmacy
Sponsored by: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D15343
Notes
Notes:
svn path=/head/; revision=334358
Diffstat (limited to 'sys/sys/gtaskqueue.h')
-rw-r--r-- | sys/sys/gtaskqueue.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/gtaskqueue.h b/sys/sys/gtaskqueue.h index e8cfef044268..c06ef503c11e 100644 --- a/sys/sys/gtaskqueue.h +++ b/sys/sys/gtaskqueue.h @@ -56,9 +56,9 @@ int grouptaskqueue_enqueue(struct gtaskqueue *queue, struct gtask *task); void taskqgroup_attach(struct taskqgroup *qgroup, struct grouptask *grptask, void *uniq, int irq, const char *name); int taskqgroup_attach_cpu(struct taskqgroup *qgroup, struct grouptask *grptask, - void *uniq, int cpu, int irq, char *name); + void *uniq, int cpu, int irq, const char *name); void taskqgroup_detach(struct taskqgroup *qgroup, struct grouptask *gtask); -struct taskqgroup *taskqgroup_create(char *name); +struct taskqgroup *taskqgroup_create(const char *name); void taskqgroup_destroy(struct taskqgroup *qgroup); int taskqgroup_adjust(struct taskqgroup *qgroup, int cnt, int stride); void taskqgroup_config_gtask_init(void *ctx, struct grouptask *gtask, gtask_fn_t *fn, |