mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
nvdimm: make __nvdimm_security_overwrite_query static
This symbol is not used outside of security.c, so marks it static. drivers/nvdimm/security.c:411:6: warning: no previous prototype for function '__nvdimm_security_overwrite_query'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2148 Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Link: https://lore.kernel.org/r/20220914061251.42052-1-jiapeng.chong@linux.alibaba.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
parent
a84b280f19
commit
7912d30fbb
@ -408,7 +408,7 @@ static int security_overwrite(struct nvdimm *nvdimm, unsigned int keyid)
|
||||
return rc;
|
||||
}
|
||||
|
||||
void __nvdimm_security_overwrite_query(struct nvdimm *nvdimm)
|
||||
static void __nvdimm_security_overwrite_query(struct nvdimm *nvdimm)
|
||||
{
|
||||
struct nvdimm_bus *nvdimm_bus = walk_to_nvdimm_bus(&nvdimm->dev);
|
||||
int rc;
|
||||
|
Loading…
Reference in New Issue
Block a user