iucv: make iucv_bus const
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2023 07:41:18 +0000 (08:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Dec 2023 07:46:38 +0000 (07:46 +0000)
commitf732ba4ac9f3626e235cc33a4f1756f17884dd32
tree39b8939749ed235620c5727953b2126f2d5a6ac4
parent1271ca00aa7f9bb3fd94cb7ac8f654de71099580
iucv: make iucv_bus const

Now that the driver core can properly handle constant struct bus_type,
move the iucv_bus variable to be a constant structure as well, placing
it into read-only memory which can not be modified at runtime.

Cc: Wenjia Zhang <wenjia@linux.ibm.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Paolo Abeni <pabeni@redhat.com>
Cc: linux-s390@vger.kernel.org
Cc: netdev@vger.kernel.org
Acked-by: Alexandra Winter <wintera@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/iucv/iucv.h
net/iucv/iucv.c