clang: add inline to functions

Clang complains about -Wmissing-prototypes in this file. This commit
makes functions inline, which is consistent with the existing functions.

Tested: codes build in clang++13.

Signed-off-by: Nan Zhou <nanzhoumails@gmail.com>
Change-Id: I7597843713a214bfcdd4d4d24a8c10e96b1d323e
diff --git a/redfish-core/lib/storage.hpp b/redfish-core/lib/storage.hpp
index 53763b8..9cb172b 100644
--- a/redfish-core/lib/storage.hpp
+++ b/redfish-core/lib/storage.hpp
@@ -471,9 +471,10 @@
         });
 }
 
-void addAllDriveInfo(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
-                     const std::string& connectionName, const std::string& path,
-                     const std::vector<std::string>& interfaces)
+static void addAllDriveInfo(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
+                            const std::string& connectionName,
+                            const std::string& path,
+                            const std::vector<std::string>& interfaces)
 {
     for (const std::string& interface : interfaces)
     {
@@ -584,7 +585,7 @@
  * Chassis drives, this URL will show all the DriveCollection
  * information
  */
-void chassisDriveCollectionGet(
+inline void chassisDriveCollectionGet(
     crow::App& app, const crow::Request& req,
     const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
     const std::string& chassisId)
@@ -696,10 +697,11 @@
             std::bind_front(chassisDriveCollectionGet, std::ref(app)));
 }
 
-void buildDrive(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
-                const std::string& chassisId, const std::string& driveName,
-                const boost::system::error_code ec,
-                const dbus::utility::MapperGetSubTreeResponse& subtree)
+inline void buildDrive(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
+                       const std::string& chassisId,
+                       const std::string& driveName,
+                       const boost::system::error_code ec,
+                       const dbus::utility::MapperGetSubTreeResponse& subtree)
 {
 
     if (ec)
@@ -750,10 +752,11 @@
     }
 }
 
-void matchAndFillDrive(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
-                       const std::string& chassisId,
-                       const std::string& driveName,
-                       const std::vector<std::string>& resp)
+inline void
+    matchAndFillDrive(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
+                      const std::string& chassisId,
+                      const std::string& driveName,
+                      const std::vector<std::string>& resp)
 {
 
     for (const std::string& drivePath : resp)
@@ -781,10 +784,11 @@
     }
 }
 
-void handleChassisDriveGet(crow::App& app, const crow::Request& req,
-                           const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
-                           const std::string& chassisId,
-                           const std::string& driveName)
+inline void
+    handleChassisDriveGet(crow::App& app, const crow::Request& req,
+                          const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
+                          const std::string& chassisId,
+                          const std::string& driveName)
 {
     if (!redfish::setUpRedfishRoute(app, req, asyncResp))
     {