190-no_nonstatic_inline.patch 970 B

123456789101112131415161718192021222324252627282930313233343536
  1. --- a/squashfs-tools/mksquashfs.c
  2. +++ b/squashfs-tools/mksquashfs.c
  3. @@ -735,13 +735,13 @@ void cache_block_put(struct file_buffer
  4. + (((char *)A) - data_cache)))
  5. -inline void inc_progress_bar()
  6. +static inline void inc_progress_bar()
  7. {
  8. cur_uncompressed ++;
  9. }
  10. -inline void update_progress_bar()
  11. +static inline void update_progress_bar()
  12. {
  13. pthread_mutex_lock(&progress_mutex);
  14. pthread_cond_signal(&progress_wait);
  15. @@ -749,7 +749,7 @@ inline void update_progress_bar()
  16. }
  17. -inline void waitforthread(int i)
  18. +static inline void waitforthread(int i)
  19. {
  20. TRACE("Waiting for thread %d\n", i);
  21. while(thread[i] != 0)
  22. @@ -3358,7 +3358,7 @@ struct inode_info *lookup_inode(struct s
  23. }
  24. -inline void add_dir_entry(char *name, char *pathname, struct dir_info *sub_dir,
  25. +static inline void add_dir_entry(char *name, char *pathname, struct dir_info *sub_dir,
  26. struct inode_info *inode_info, struct dir_info *dir)
  27. {
  28. if((dir->count % DIR_ENTRIES) == 0) {