return version;
}
-static int probe_minix(blkid_probe pr, const struct blkid_idmag *mag)
+static int probe_minix(blkid_probe pr,
+ const struct blkid_idmag *mag __attribute__((__unused__)))
{
unsigned char *ext;
const unsigned char *data;
return blkid_probe_verify_csum(pr, crc, le32_to_cpu(sb->s_sum));
}
-static int probe_nilfs2(blkid_probe pr, const struct blkid_idmag *mag)
+static int probe_nilfs2(blkid_probe pr,
+ const struct blkid_idmag *mag __attribute__((__unused__)))
{
struct nilfs_super_block *sb, *sbp, *sbb;
int valid[2], swp = 0;
}
/* xlog record header will be in some sector in the first 256k */
-static int probe_xfs_log(blkid_probe pr, const struct blkid_idmag *mag)
+static int probe_xfs_log(blkid_probe pr,
+ const struct blkid_idmag *mag __attribute__((__unused__)))
{
int i;
struct xlog_rec_header *rhead;
/* ZFS has 128x1kB host-endian root blocks, stored in 2 areas at the start
* of the disk, and 2 areas at the end of the disk. Check only some of them...
* #4 (@ 132kB) is the first one written on a new filesystem. */
-static int probe_zfs(blkid_probe pr, const struct blkid_idmag *mag)
+static int probe_zfs(blkid_probe pr,
+ const struct blkid_idmag *mag __attribute__((__unused__)))
{
int swab_endian = 0;
struct zfs_uberblock *ub;
* last[] are fill_bounds() results */
static fdisk_sector_t get_unused_last(struct fdisk_context *cxt, size_t n,
fdisk_sector_t start,
- fdisk_sector_t first[], fdisk_sector_t last[])
+ fdisk_sector_t first[])
{
size_t i;
fdisk_sector_t limit = get_possible_last(cxt, n);
}
}
- limit = get_unused_last(cxt, n, start, first, last);
+ limit = get_unused_last(cxt, n, start, first);
if (start > limit) {
fdisk_warnx(cxt, _("No free sectors available."));
};
-static void fdisk_script_free_header(struct fdisk_script *dp, struct fdisk_scriptheader *fi)
+static void fdisk_script_free_header(struct fdisk_scriptheader *fi)
{
if (!fi)
return;
while (!list_empty(&dp->headers)) {
struct fdisk_scriptheader *fi = list_entry(dp->headers.next,
struct fdisk_scriptheader, headers);
- fdisk_script_free_header(dp, fi);
+ fdisk_script_free_header(fi);
}
INIT_LIST_HEAD(&dp->headers);
}
DBG(SCRIPT, ul_debugobj(dp, "freeing header %s", name));
/* no data, remove the header */
- fdisk_script_free_header(dp, fi);
+ fdisk_script_free_header(fi);
return 0;
}
fi->name = strdup(name);
fi->data = strdup(data);
if (!fi->data || !fi->name) {
- fdisk_script_free_header(dp, fi);
+ fdisk_script_free_header(fi);
return -ENOMEM;
}
list_add_tail(&fi->headers, &dp->headers);
static void print_newline_padding(struct libscols_table *tb,
struct libscols_column *cl,
struct libscols_line *ln, /* optional */
- size_t bufsz,
- size_t len)
+ size_t bufsz)
{
size_t i;
return 0;
if (len > width && !scols_column_is_trunc(cl))
- print_newline_padding(tb, cl, ln, buf->bufsz, len); /* next column starts on next line */
+ print_newline_padding(tb, cl, ln, buf->bufsz); /* next column starts on next line */
else
fputs(colsep(tb), tb->out); /* columns separator */