summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmerdabbelt@google.com>2020-05-29 01:39:20 +0300
committerPalmer Dabbelt <palmerdabbelt@google.com>2020-05-29 01:57:49 +0300
commit09c0533d129ce460e6214c14f744ddbac3733889 (patch)
tree47d998958399172a355f074c2530b8efbff277a2 /drivers
parentb4a4f036e84662bb5fca53ed09d65ac4f736be67 (diff)
downloadlinux-09c0533d129ce460e6214c14f744ddbac3733889.tar.xz
soc: sifive: l2 cache: Mark l2_get_priv_group as static
The kbuild test robot is firing a warning over a missing prototype. The function can just be static. Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/soc/sifive/sifive_l2_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/sifive/sifive_l2_cache.c b/drivers/soc/sifive/sifive_l2_cache.c
index 51e198880a8d..44d7e1951da3 100644
--- a/drivers/soc/sifive/sifive_l2_cache.c
+++ b/drivers/soc/sifive/sifive_l2_cache.c
@@ -133,7 +133,7 @@ static const struct attribute_group priv_attr_group = {
.attrs = priv_attrs,
};
-const struct attribute_group *l2_get_priv_group(struct cacheinfo *this_leaf)
+static const struct attribute_group *l2_get_priv_group(struct cacheinfo *this_leaf)
{
/* We want to use private group for L2 cache only */
if (this_leaf->level == 2)