From 2137dd70c5a009a99ce8e5f2b5af4ab2eb9dc841 Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Sat, 20 Oct 2018 06:34:10 +0200 Subject: [PATCH] linux/smc_diag.h: update struct smc_diag_req definition In accordance with Linux commit v4.19-rc8~22^2~17^2. * linux/smc_diag.h (struct smc_diag_req): Use an anonymous union for diag_fallback/diag_mode fields. --- linux/smc_diag.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linux/smc_diag.h b/linux/smc_diag.h index c4f2088b..f4bdd793 100644 --- a/linux/smc_diag.h +++ b/linux/smc_diag.h @@ -23,7 +23,10 @@ struct smc_diag_req { struct smc_diag_msg { uint8_t diag_family; uint8_t diag_state; - uint8_t diag_fallback; + union { + uint8_t diag_fallback; + uint8_t diag_mode; + }; uint8_t diag_shutdown; struct inet_diag_sockid id; -- 2.40.0