mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-11-15 00:04:23 +08:00
libbtrfsutil: update include lists
The tool IWYU (include what you use) suggests to remove and add some includes. Update the includes of implementation files only. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
4f23f0e711
commit
70a2f5520c
@ -22,6 +22,8 @@
|
||||
|
||||
#include <asm/byteorder.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "btrfsutil.h"
|
||||
#include "btrfs.h"
|
||||
|
@ -17,9 +17,9 @@
|
||||
* along with libbtrfsutil. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
#include "btrfsutil_internal.h"
|
||||
|
@ -18,9 +18,8 @@
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "btrfsutil_internal.h"
|
||||
|
||||
|
@ -17,6 +17,8 @@
|
||||
|
||||
#ifndef _LIBBTRFSUTIL_STUBS_H_
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
void *reallocarray(void *ptr, size_t nmemb, size_t size);
|
||||
|
||||
#endif
|
||||
|
@ -17,16 +17,17 @@
|
||||
* along with libbtrfsutil. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <sys/statfs.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <linux/magic.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/vfs.h>
|
||||
#include <linux/magic.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include "stubs.h"
|
||||
|
||||
#include "btrfsutil_internal.h"
|
||||
|
Loading…
Reference in New Issue
Block a user