dax: fix missing-prototype warnings
authorArnd Bergmann <arnd@arndb.de>
Wed, 17 May 2023 12:55:09 +0000 (14:55 +0200)
committerDan Williams <dan.j.williams@intel.com>
Fri, 19 May 2023 00:28:07 +0000 (17:28 -0700)
commit2d5153526f929838b0912ded26862840f72745f4
treee13169b17caa92b0d6afc1ed6e63f99f675243ef
parente764f12208b99ac7892c4e3f6bf88d71ca71036f
dax: fix missing-prototype warnings

dev_dax_probe declaration for this function was removed with the only
caller outside of device.c. Mark it static to avoid a W=1
warning:
drivers/dax/device.c:399:5: error: no previous prototype for 'dev_dax_probe'

Similarly, run_dax() causes a warning, but this one is because the
declaration needs to be included:

drivers/dax/super.c:337:6: error: no previous prototype for 'run_dax'

Fixes: 83762cb5c7c4 ("dax: Kill DEV_DAX_PMEM_COMPAT")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20230517125532.931157-1-arnd@kernel.org
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dax/bus.h
drivers/dax/dax-private.h
drivers/dax/device.c