net: ipa: miscellaneous cleanups
Subsystems (3)
cover net: ipa: miscellaneous cleanups
This series contains some minor cleanups I've been meaning to get around to for a while. The first few remove the definitions of some currently-unused symbols. Several fix some warnings that are reported when the build is done with "W=2". All are simple and have no effect on the operation of the code.
-Alex
Alex Elder (10):
net: ipa: kill definition of TRE_FLAGS_IEOB_FMASK
net: ipa: kill unused status opcodes
net: ipa: kill unused status exceptions
net: ipa: remove unused status structure field masks
net: ipa: share field mask values for GSI interrupt type
net: ipa: share field mask values for GSI global interrupt
net: ipa: share field mask values for GSI general interrupt
net: ipa: fix two mild warnings
net: ipa: rename a phandle variable
net: ipa: fix two comments
drivers/net/ipa/gsi.c | 15 ++++----- drivers/net/ipa/gsi_reg.h | 59 ++++++++++------------------------ drivers/net/ipa/gsi_trans.c | 1 - drivers/net/ipa/ipa_endpoint.c | 47 +++------------------------ drivers/net/ipa/ipa_main.c | 8 ++--- drivers/net/ipa/ipa_reg.h | 2 +- drivers/net/ipa/ipa_uc.c | 2 +- 7 files changed, 34 insertions(+), 100 deletions(-)
Signature · 1 line
2.20.1
PATCH 1/10 net: ipa: kill definition of TRE_FLAGS_IEOB_FMASK
In "gsi_trans.c", the field mask TRE_FLAGS_IEOB_FMASK is defined but never used. Although there's no harm in defining this, remove it for now and redefine it at some future date if it becomes needed. This is warned about if "W=2" is added to the build command.
--- drivers/net/ipa/gsi_trans.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/ipa/gsi_trans.c +0 -1
@@ -81,7 +81,6 @@ struct gsi_tre {/* gsi_tre->flags mask values (in CPU byte order) */ #define TRE_FLAGS_CHAIN_FMASK GENMASK(0, 0) -#define TRE_FLAGS_IEOB_FMASK GENMASK(8, 8)#define TRE_FLAGS_IEOT_FMASK GENMASK(9, 9)#define TRE_FLAGS_BEI_FMASK GENMASK(10, 10)#define TRE_FLAGS_TYPE_FMASK GENMASK(23, 16)
Signature · 1 line
2.20.1
PATCH 2/10 net: ipa: kill unused status opcodes
In reply to Alex ElderThree status opcodes are not currently supported. Symbols representing their numeric values are defined but never used. Remove those unused definitions; they can be defined again when they actually get used.
--- drivers/net/ipa/ipa_endpoint.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/net/ipa/ipa_endpoint.c +1 -5
@@ -42,11 +42,8 @@/** enum ipa_status_opcode - status element opcode hardware values */ enum ipa_status_opcode {IPA_STATUS_OPCODE_PACKET =0x01 , -IPA_STATUS_OPCODE_NEW_FRAG_RULE =0x02 ,IPA_STATUS_OPCODE_DROPPED_PACKET =0x04 ,IPA_STATUS_OPCODE_SUSPENDED_PACKET =0x08 , -IPA_STATUS_OPCODE_LOG =0x10 , -IPA_STATUS_OPCODE_DCMP =0x20 ,IPA_STATUS_OPCODE_PACKET_2ND_PASS =0x40 , };
@@ -1048,8 +1045,7 @@ static bool ipa_endpoint_skb_build(struct ipa_endpoint *endpoint, }/* The format of a packet status element is the same for several status -* types (opcodes). The NEW_FRAG_RULE, LOG, DCMP (decompression) types -* aren't currently supported +* types (opcodes). Other types aren't currently supported. */ static bool ipa_status_format_packet (enum ipa_status_opcode opcode) {
Signature · 1 line
2.20.1
PATCH 3/10 net: ipa: kill unused status exceptions
In reply to Alex ElderOnly the deaggregation status exception type is ever actually used. If any other status exception type is reported we basically ignore it, and consume the packet. Remove the unused definitions of status exception type symbols; they can be added back when we actually handle them.
Separately, two consecutive if statements test the same condition near the top of ipa_endpoint_suspend_one(). Instead, use a single test with a block that combines the previously-separate lines of code.
--- drivers/net/ipa/ipa_endpoint.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-)
drivers/net/ipa/ipa_endpoint.c +3 -11
@@ -51,13 +51,6 @@ enum ipa_status_opcode {enum ipa_status_exception {/* 0 means no exception */ IPA_STATUS_EXCEPTION_DEAGGR =0x01 , -IPA_STATUS_EXCEPTION_IPTYPE =0x04 , -IPA_STATUS_EXCEPTION_PACKET_LENGTH =0x08 , -IPA_STATUS_EXCEPTION_FRAG_RULE_MISS =0x10 , -IPA_STATUS_EXCEPTION_SW_FILT =0x20 , -/* The meaning of the next value depends on whether the IP version */ -IPA_STATUS_EXCEPTION_NAT =0x40 ,/* IPv4 */ -IPA_STATUS_EXCEPTION_IPV6CT =IPA_STATUS_EXCEPTION_NAT , };/* Status element provided by hardware */
@@ -1082,7 +1075,7 @@ static bool ipa_status_drop_packet(const struct ipa_status *status) {u32 val; -/* Deaggregation exceptions we drop; others we consume */ +/* Deaggregation exceptions we drop; all other types we consume */ if (status->exception)return status->exception ==IPA_STATUS_EXCEPTION_DEAGGR ;
@@ -1428,11 +1421,10 @@ void ipa_endpoint_suspend_one(struct ipa_endpoint *endpoint)if (!(endpoint->ipa->enabled &BIT (endpoint->endpoint_id)))return ; -if (!endpoint->toward_ipa) +if (!endpoint->toward_ipa) {ipa_endpoint_replenish_disable (endpoint); - -if (!endpoint->toward_ipa) (void )ipa_endpoint_program_suspend (endpoint, true); + }/* IPA v3.5.1 doesn't use channel stop for suspend */ stop_channel = endpoint->ipa->version !=IPA_VERSION_3_5_1 ;
Signature · 1 line
2.20.1
PATCH 4/10 net: ipa: remove unused status structure field masks
In reply to Alex ElderMost of the field masks used for fields in a status structure are unused. Remove their definitions; we can add them back again when we actually use them to handle arriving status messages. These are warned about if "W=2" is added to the build command.
--- drivers/net/ipa/ipa_endpoint.c | 27 --------------------------- 1 file changed, 27 deletions(-)
drivers/net/ipa/ipa_endpoint.c +0 -27
@@ -69,36 +69,9 @@ struct ipa_status { };/* Field masks for struct ipa_status structure fields */ - -#define IPA_STATUS_SRC_IDX_FMASK GENMASK(4, 0) -#define IPA_STATUS_DST_IDX_FMASK GENMASK(4, 0) - -#define IPA_STATUS_FLAGS1_FLT_LOCAL_FMASK GENMASK(0, 0) -#define IPA_STATUS_FLAGS1_FLT_HASH_FMASK GENMASK(1, 1) -#define IPA_STATUS_FLAGS1_FLT_GLOBAL_FMASK GENMASK(2, 2) -#define IPA_STATUS_FLAGS1_FLT_RET_HDR_FMASK GENMASK(3, 3) -#define IPA_STATUS_FLAGS1_FLT_RULE_ID_FMASK GENMASK(13, 4) -#define IPA_STATUS_FLAGS1_RT_LOCAL_FMASK GENMASK(14, 14) -#define IPA_STATUS_FLAGS1_RT_HASH_FMASK GENMASK(15, 15) -#define IPA_STATUS_FLAGS1_UCP_FMASK GENMASK(16, 16) -#define IPA_STATUS_FLAGS1_RT_TBL_IDX_FMASK GENMASK(21, 17)#define IPA_STATUS_FLAGS1_RT_RULE_ID_FMASK GENMASK(31, 22) -#define IPA_STATUS_FLAGS2_NAT_HIT_FMASK GENMASK_ULL(0, 0) -#define IPA_STATUS_FLAGS2_NAT_ENTRY_IDX_FMASK GENMASK_ULL(13, 1) -#define IPA_STATUS_FLAGS2_NAT_TYPE_FMASK GENMASK_ULL(15, 14) -#define IPA_STATUS_FLAGS2_TAG_INFO_FMASK GENMASK_ULL(63, 16) - -#define IPA_STATUS_FLAGS3_SEQ_NUM_FMASK GENMASK(7, 0) -#define IPA_STATUS_FLAGS3_TOD_CTR_FMASK GENMASK(31, 8) - -#define IPA_STATUS_FLAGS4_HDR_LOCAL_FMASK GENMASK(0, 0) -#define IPA_STATUS_FLAGS4_HDR_OFFSET_FMASK GENMASK(10, 1) -#define IPA_STATUS_FLAGS4_FRAG_HIT_FMASK GENMASK(11, 11) -#define IPA_STATUS_FLAGS4_FRAG_RULE_FMASK GENMASK(15, 12) -#define IPA_STATUS_FLAGS4_HW_SPECIFIC_FMASK GENMASK(31, 16) -#ifdef IPA_VALIDATE static void ipa_endpoint_validate_build (void )
Signature · 1 line
2.20.1
PATCH 5/10 net: ipa: share field mask values for GSI interrupt type
In reply to Alex ElderThe GSI interrupt type register and interrupt type mask register have the same field bits at the same locations. Use a common set of field masks for both registers rather than essentially duplicating them. The only place the interrupt mask register uses any of these is in gsi_irq_enable().
--- drivers/net/ipa/gsi.c | 4 ++-- drivers/net/ipa/gsi_reg.h | 17 +++++------------ 2 files changed, 7 insertions(+), 14 deletions(-)
drivers/net/ipa/gsi.c +2 -2
@@ -254,8 +254,8 @@ static void gsi_irq_enable(struct gsi *gsi)/* We don't use inter-EE channel or event interrupts */ val =GSI_CNTXT_TYPE_IRQ_MSK_ALL ; - val &= ~MSK_INTER_EE_CH_CTRL_FMASK ; - val &= ~MSK_INTER_EE_EV_CTRL_FMASK ; + val &= ~INTER_EE_CH_CTRL_FMASK ; + val &= ~INTER_EE_EV_CTRL_FMASK ;iowrite32 (val, gsi->virt +GSI_CNTXT_TYPE_IRQ_MSK_OFFSET ); val =GENMASK (gsi->channel_count -1 ,0 );
drivers/net/ipa/gsi_reg.h +5 -12
@@ -258,6 +258,11 @@ GSI_EE_N_CNTXT_TYPE_IRQ_OFFSET(GSI_EE_AP)#define GSI_EE_N_CNTXT_TYPE_IRQ_OFFSET (ee) \ (0x0001f080 + 0x4000 * (ee)) +#define GSI_CNTXT_TYPE_IRQ_MSK_OFFSET \ + GSI_EE_N_CNTXT_TYPE_IRQ_MSK_OFFSET(GSI_EE_AP) +#define GSI_EE_N_CNTXT_TYPE_IRQ_MSK_OFFSET (ee) \ + (0x0001f088 + 0x4000 * (ee)) +/* The masks below are used for the TYPE_IRQ and TYPE_IRQ_MASK registers */ #define CH_CTRL_FMASK GENMASK(0, 0)#define EV_CTRL_FMASK GENMASK(1, 1)#define GLOB_EE_FMASK GENMASK(2, 2)
@@ -265,18 +270,6 @@#define INTER_EE_CH_CTRL_FMASK GENMASK(4, 4)#define INTER_EE_EV_CTRL_FMASK GENMASK(5, 5)#define GENERAL_FMASK GENMASK(6, 6) - -#define GSI_CNTXT_TYPE_IRQ_MSK_OFFSET \ - GSI_EE_N_CNTXT_TYPE_IRQ_MSK_OFFSET(GSI_EE_AP) -#define GSI_EE_N_CNTXT_TYPE_IRQ_MSK_OFFSET (ee) \ - (0x0001f088 + 0x4000 * (ee)) -#define MSK_CH_CTRL_FMASK GENMASK(0, 0) -#define MSK_EV_CTRL_FMASK GENMASK(1, 1) -#define MSK_GLOB_EE_FMASK GENMASK(2, 2) -#define MSK_IEOB_FMASK GENMASK(3, 3) -#define MSK_INTER_EE_CH_CTRL_FMASK GENMASK(4, 4) -#define MSK_INTER_EE_EV_CTRL_FMASK GENMASK(5, 5) -#define MSK_GENERAL_FMASK GENMASK(6, 6)#define GSI_CNTXT_TYPE_IRQ_MSK_ALL GENMASK(6, 0)#define GSI_CNTXT_SRC_CH_IRQ_OFFSET \
Signature · 1 line
2.20.1
PATCH 6/10 net: ipa: share field mask values for GSI global interrupt
In reply to Alex ElderThe GSI global interrupt is managed by three registers: enable; status; and clear. The three registers have same set of field bits at the same locations. Use a common set of field masks for all three registers to avoid duplication.
--- drivers/net/ipa/gsi.c | 4 ++-- drivers/net/ipa/gsi_reg.h | 21 ++++++--------------- 2 files changed, 8 insertions(+), 17 deletions(-)
drivers/net/ipa/gsi.c +2 -2
@@ -1074,8 +1074,8 @@ static void gsi_isr_glob_ee(struct gsi *gsi) val &= ~ERROR_INT_FMASK ; -if (val &EN_GP_INT1_FMASK ) { - val ^=EN_GP_INT1_FMASK ; +if (val &GP_INT1_FMASK ) { + val ^=GP_INT1_FMASK ;gsi_isr_gp_int1 (gsi); }
drivers/net/ipa/gsi_reg.h +6 -15
@@ -321,29 +321,20 @@ GSI_EE_N_CNTXT_GLOB_IRQ_STTS_OFFSET(GSI_EE_AP)#define GSI_EE_N_CNTXT_GLOB_IRQ_STTS_OFFSET (ee) \ (0x0001f100 + 0x4000 * (ee)) -#define ERROR_INT_FMASK GENMASK(0, 0) -#define GP_INT1_FMASK GENMASK(1, 1) -#define GP_INT2_FMASK GENMASK(2, 2) -#define GP_INT3_FMASK GENMASK(3, 3) -#define GSI_CNTXT_GLOB_IRQ_EN_OFFSET \ GSI_EE_N_CNTXT_GLOB_IRQ_EN_OFFSET(GSI_EE_AP)#define GSI_EE_N_CNTXT_GLOB_IRQ_EN_OFFSET (ee) \ (0x0001f108 + 0x4000 * (ee)) -#define EN_ERROR_INT_FMASK GENMASK(0, 0) -#define EN_GP_INT1_FMASK GENMASK(1, 1) -#define EN_GP_INT2_FMASK GENMASK(2, 2) -#define EN_GP_INT3_FMASK GENMASK(3, 3) -#define GSI_CNTXT_GLOB_IRQ_ALL GENMASK(3, 0) -#define GSI_CNTXT_GLOB_IRQ_CLR_OFFSET \ GSI_EE_N_CNTXT_GLOB_IRQ_CLR_OFFSET(GSI_EE_AP)#define GSI_EE_N_CNTXT_GLOB_IRQ_CLR_OFFSET (ee) \ (0x0001f110 + 0x4000 * (ee)) -#define CLR_ERROR_INT_FMASK GENMASK(0, 0) -#define CLR_GP_INT1_FMASK GENMASK(1, 1) -#define CLR_GP_INT2_FMASK GENMASK(2, 2) -#define CLR_GP_INT3_FMASK GENMASK(3, 3) +/* The masks below are used for the general IRQ STTS, EN, and CLR registers */ +#define ERROR_INT_FMASK GENMASK(0, 0) +#define GP_INT1_FMASK GENMASK(1, 1) +#define GP_INT2_FMASK GENMASK(2, 2) +#define GP_INT3_FMASK GENMASK(3, 3) +#define GSI_CNTXT_GLOB_IRQ_ALL GENMASK(3, 0)#define GSI_CNTXT_GSI_IRQ_STTS_OFFSET \ GSI_EE_N_CNTXT_GSI_IRQ_STTS_OFFSET(GSI_EE_AP)
Signature · 1 line
2.20.1
PATCH 7/10 net: ipa: share field mask values for GSI general interrupt
In reply to Alex ElderThe GSI general interrupt is managed by three registers: enable; status; and clear. The three registers have same set of field bits at the same locations. Use a common set of field masks for all three registers to avoid duplication.
--- drivers/net/ipa/gsi.c | 2 +- drivers/net/ipa/gsi_reg.h | 21 ++++++--------------- 2 files changed, 7 insertions(+), 16 deletions(-)
drivers/net/ipa/gsi.c +1 -1
@@ -271,7 +271,7 @@ static void gsi_irq_enable(struct gsi *gsi)iowrite32 (val, gsi->virt +GSI_CNTXT_GLOB_IRQ_EN_OFFSET );/* Never enable GSI_BREAK_POINT */ - val =GSI_CNTXT_GSI_IRQ_ALL & ~EN_BREAK_POINT_FMASK ; + val =GSI_CNTXT_GSI_IRQ_ALL & ~BREAK_POINT_FMASK ;iowrite32 (val, gsi->virt +GSI_CNTXT_GSI_IRQ_EN_OFFSET ); }
drivers/net/ipa/gsi_reg.h +6 -15
@@ -340,29 +340,20 @@ GSI_EE_N_CNTXT_GSI_IRQ_STTS_OFFSET(GSI_EE_AP)#define GSI_EE_N_CNTXT_GSI_IRQ_STTS_OFFSET (ee) \ (0x0001f118 + 0x4000 * (ee)) -#define BREAK_POINT_FMASK GENMASK(0, 0) -#define BUS_ERROR_FMASK GENMASK(1, 1) -#define CMD_FIFO_OVRFLOW_FMASK GENMASK(2, 2) -#define MCS_STACK_OVRFLOW_FMASK GENMASK(3, 3) -#define GSI_CNTXT_GSI_IRQ_EN_OFFSET \ GSI_EE_N_CNTXT_GSI_IRQ_EN_OFFSET(GSI_EE_AP)#define GSI_EE_N_CNTXT_GSI_IRQ_EN_OFFSET (ee) \ (0x0001f120 + 0x4000 * (ee)) -#define EN_BREAK_POINT_FMASK GENMASK(0, 0) -#define EN_BUS_ERROR_FMASK GENMASK(1, 1) -#define EN_CMD_FIFO_OVRFLOW_FMASK GENMASK(2, 2) -#define EN_MCS_STACK_OVRFLOW_FMASK GENMASK(3, 3) -#define GSI_CNTXT_GSI_IRQ_ALL GENMASK(3, 0) -#define GSI_CNTXT_GSI_IRQ_CLR_OFFSET \ GSI_EE_N_CNTXT_GSI_IRQ_CLR_OFFSET(GSI_EE_AP)#define GSI_EE_N_CNTXT_GSI_IRQ_CLR_OFFSET (ee) \ (0x0001f128 + 0x4000 * (ee)) -#define CLR_BREAK_POINT_FMASK GENMASK(0, 0) -#define CLR_BUS_ERROR_FMASK GENMASK(1, 1) -#define CLR_CMD_FIFO_OVRFLOW_FMASK GENMASK(2, 2) -#define CLR_MCS_STACK_OVRFLOW_FMASK GENMASK(3, 3) +/* The masks below are used for the general IRQ STTS, EN, and CLR registers */ +#define BREAK_POINT_FMASK GENMASK(0, 0) +#define BUS_ERROR_FMASK GENMASK(1, 1) +#define CMD_FIFO_OVRFLOW_FMASK GENMASK(2, 2) +#define MCS_STACK_OVRFLOW_FMASK GENMASK(3, 3) +#define GSI_CNTXT_GSI_IRQ_ALL GENMASK(3, 0)#define GSI_CNTXT_INTSET_OFFSET \ GSI_EE_N_CNTXT_INTSET_OFFSET(GSI_EE_AP)
Signature · 1 line
2.20.1
PATCH 8/10 net: ipa: fix two mild warnings
In reply to Alex ElderFix two spots where a variable "channel_id" is unnecessarily redefined inside loops in "gsi.c". This is warned about if "W=2" is added to the build command.
Note that this problem is harmless, so there's no need to backport it as a bugfix.
Remove a comment in gsi_init() about waking the system; the GSI interrupt does not wake the system any more.
--- drivers/net/ipa/gsi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/net/ipa/gsi.c +2 -3
@@ -1600,7 +1600,7 @@ static int gsi_channel_setup(struct gsi *gsi, bool legacy)/* Compute which modem channels need to be deallocated */ mask ^= gsi->modem_channel_bitmap;while (mask) { -u32 channel_id =__fls (mask); + channel_id =__fls (mask); mask ^=BIT (channel_id);
@@ -1628,7 +1628,7 @@ static void gsi_channel_teardown(struct gsi *gsi)mutex_lock (&gsi->mutex);while (mask) { -u32 channel_id =__fls (mask); + channel_id =__fls (mask); mask ^=BIT (channel_id);
@@ -1972,7 +1972,6 @@ int gsi_init(struct gsi *gsi, struct platform_device *pdev, bool prefetch,*/ init_dummy_netdev (&gsi->dummy_dev); -/* Get the GSI IRQ and request for it to wake the system */ ret =platform_get_irq_byname (pdev,"gsi" );if (ret <=0 ) {dev_err (dev,"DT error %d getting \"gsi\" IRQ property\n" , ret);
Signature · 1 line
2.20.1
PATCH 9/10 net: ipa: rename a phandle variable
In reply to Alex ElderWhen "W=2" is supplied to the build command, we get a warning about shadowing a global declaration (of a typedef) for a variable defined in ipa_probe(). Rename the variable to get rid of the warning.
--- drivers/net/ipa/ipa_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/net/ipa/ipa_main.c +4 -4
@@ -723,8 +723,8 @@ static int ipa_probe(struct platform_device *pdev)bool modem_alloc;bool modem_init;struct ipa *ipa; -phandle phandle;bool prefetch; +phandle ph;int ret;ipa_validate_build ();
@@ -736,13 +736,13 @@ static int ipa_probe(struct platform_device *pdev)return -EPROBE_DEFER ;/* We rely on remoteproc to tell us about modem state changes */ - phandle =of_property_read_phandle (dev->of_node,"modem-remoteproc" ); -if (!phandle) { + ph =of_property_read_phandle (dev->of_node,"modem-remoteproc" ); +if (!ph) {dev_err (dev,"DT missing \"modem-remoteproc\" property\n" );return -EINVAL ; } - rproc =rproc_get_by_phandle (phandle); + rproc =rproc_get_by_phandle (ph);if (!rproc)return -EPROBE_DEFER ;
Signature · 1 line
2.20.1
PATCH 10/10 net: ipa: fix two comments
In reply to Alex ElderIn ipa_uc_response_hdlr() a comment uses the wrong function name when it describes where a clock reference is taken. Fix this.
Also fix the comment in ipa_uc_response_hdlr() to correctly refer to ipa_uc_setup(), which is where the clock reference described here is taken.
--- drivers/net/ipa/ipa_reg.h | 2 +- drivers/net/ipa/ipa_uc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/ipa/ipa_reg.h +1 -1
@@ -426,7 +426,7 @@ enum ipa_cs_offload_en {IPA_CS_RSVD }; -/** enum ipa_aggr_en - aggregation type field in ENDP_INIT_AGGR_N */ +/** enum ipa_aggr_en - aggregation enable field in ENDP_INIT_AGGR_N */ enum ipa_aggr_en {IPA_BYPASS_AGGR =0 ,IPA_ENABLE_AGGR =1 ,
drivers/net/ipa/ipa_uc.c +1 -1
@@ -144,7 +144,7 @@ static void ipa_uc_response_hdlr(struct ipa *ipa, enum ipa_irq_id irq_id)* should only receive responses from the microcontroller when it has * sent it a request message. * -* We can drop the clock reference taken in ipa_uc_init() once we +* We can drop the clock reference taken in ipa_uc_setup() once we * know the microcontroller has finished its initialization. */ switch (shared->response) {
Signature · 1 line
2.20.1
David Miller
maintainerFrom: Alex Elder <[email protected]>
Date: Mon, 28 Sep 2020 18:04:36 -0500
Quoted 5 lines
This series contains some minor cleanups I've been meaning to get around to for a while. The first few remove the definitions of some currently-unused symbols. Several fix some warnings that are reported when the build is done with "W=2". All are simple and have no effect on the operation of the code.
Series applied, thanks Alex.