Skip to content

Commit 07c0eb1

Browse files
simontrimmerLucas Tanure
authored andcommitted
mfd: clsic: tidy some trivial static analysis warnings
- missing a default case (when all possible variables were included) - function only used in that file could be static - include file to check definitions of functions being exported Change-Id: Id7a36421cdbe598b8f023c3b5f402f96acee634e Signed-off-by: Simon Trimmer <[email protected]>
1 parent f2f877c commit 07c0eb1

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

drivers/mfd/clsic/clsic-rassrv-irq.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ void clsic_ras_irq_handler(struct clsic *clsic,
240240
case CLSIC_RAS_IRQ_STATE_IDLE:
241241
case CLSIC_RAS_IRQ_STATE_DISABLING:
242242
case CLSIC_RAS_IRQ_STATE_DISABLED:
243+
default:
243244
/* Do nothing / not interested */
244245
break;
245246
}

drivers/mfd/clsic/clsic-rassrv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ static int clsic_ras_simple_readregister(struct clsic_ras_struct *ras,
187187
* Not checking the return code of the message sending as the test fails safe
188188
* (response structure is cleared and the test depends on the bit being set)
189189
*/
190-
void clsic_ras_write_fastpath_init(struct clsic_ras_struct *ras)
190+
static void clsic_ras_write_fastpath_init(struct clsic_ras_struct *ras)
191191
{
192192
struct clsic *clsic;
193193
union clsic_ras_msg msg_cmd;

drivers/mfd/clsic/clsic-tacna.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <linux/mfd/core.h>
1515
#include <linux/mfd/tacna/core.h>
1616
#include <linux/module.h>
17+
#include <linux/mfd/clsic/clsic-tacna.h>
1718

1819
#define CLSIC_32K_MCLK2 1
1920

0 commit comments

Comments
 (0)