@@ -295,7 +295,7 @@ static void register_regex(struct hdl_regex **pregs, const char *regex)
295295 * Checks whether any of the regular expressions in the list matches the
296296 * string.
297297 */
298- static int match_any_regex (struct hdl_regex * pregs , const char * what )
298+ static inline int match_any_regex (struct hdl_regex * pregs , const char * what )
299299{
300300 for (; pregs != NULL ; pregs = pregs -> next ) {
301301 if (regexec (& pregs -> re , what , 0 , NULL , 0 ) == 0 )
@@ -649,7 +649,7 @@ static int file_xattrs_equal(const struct file *a, const struct file *b)
649649 * Check whether the two files are considered equal attributes and can be
650650 * linked. This function does not compare content od the files!
651651 */
652- static int file_may_link_to (const struct file * a , const struct file * b )
652+ static inline int file_may_link_to (const struct file * a , const struct file * b )
653653{
654654 return (a -> st .st_size == b -> st .st_size &&
655655 a -> links != NULL && b -> links != NULL &&
@@ -673,7 +673,7 @@ static int file_may_link_to(const struct file *a, const struct file *b)
673673 * as the master when linking (the master is the file that all equal files
674674 * will be replaced with).
675675 */
676- static int file_compare (const struct file * a , const struct file * b )
676+ static inline int file_compare (const struct file * a , const struct file * b )
677677{
678678 int res = 0 ;
679679 if (a -> st .st_dev == b -> st .st_dev && a -> st .st_ino == b -> st .st_ino )
@@ -815,7 +815,7 @@ static int file_link(struct file *a, struct file *b, int reflink)
815815 return TRUE;
816816}
817817
818- static int has_fpath (struct file * node , const char * path )
818+ static inline int has_fpath (struct file * node , const char * path )
819819{
820820 struct link * l ;
821821
0 commit comments