Skip to content
Commit c18e6869 authored by Geoff Levand's avatar Geoff Levand Committed by Jakub Kicinski
Browse files

net/connector: Add const qualifier to cb_id



The connector driver never modifies any cb_id passed to it, so add a const
qualifier to those arguments so callers can declare their struct cb_id as a
constant object.

Fixes build warnings like these when passing a constant struct cb_id:

  warning: passing argument 1 of ‘cn_add_callback’ discards ‘const’ qualifier from pointer target

Signed-off-by: default avatarGeoff Levand <geoff@infradead.org>
Link: https://lore.kernel.org/r/a9e49c9e-67fa-16e7-0a6b-72f6bd30c58a@infradead.org


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 4375ada0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment