Re: PATCH] block: update add_partition() error handling

From: Tejun Heo
Date: Sat Jul 19 2008 - 06:22:39 EST


Rufus & Azrael wrote:
> Hello TJ,
>
>
> I try your patch but it fails on apply (see check.c.X in attachment) and
> when compiling the kernel this build error occurs :l
>
> fs/partitions/check.c:347: erreur: conflicting types for âadd_partitionâ
> include/linux/genhd.h:533: erreur: previous declaration of
> âadd_partitionâ was here
> fs/partitions/check.c: In function âadd_partitionâ:
> fs/partitions/check.c:406: attention : âreturnâ with a value, in
> function returning void
> fs/partitions/check.c:412: attention : âreturnâ with a value, in
> function returning void
> fs/partitions/check.c: In function ârescan_partitionsâ:
> fs/partitions/check.c:512: erreur: valeur void n'a pas Ãtà ignorÃe comme
> elle aurait dà l'Ãtre
> make[2]: *** [fs/partitions/check.o] Erreur 1
> make[1]: *** [fs/partitions] Erreur 2
> make: *** [fs] Erreur 2

Hmmm... are you sure?

> git checkout -f masterAlready on branch "master"
> cat .git/refs/heads/master
bce7f793daec3e65ec5c5705d2457b81fe7b5725
> patch -p1 < ../work/patches/update-add_partition-error
patching file block/ioctl.c
patching file fs/partitions/check.c
Hunk #1 succeeded at 344 (offset 2 lines).
Hunk #2 succeeded at 383 (offset 2 lines).
Hunk #3 succeeded at 505 (offset 2 lines).
patching file include/linux/genhd.h
> make block/genhd.o
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CALL scripts/checksyscalls.sh
CC block/genhd.o
block/genhd.c: In function âadd_diskâ:
block/genhd.c:195: warning: ignoring return value of
âsysfs_create_linkâ, declared with attribute warn_unused_result

The offset message is due to skipping earlier patches but it should just
work.

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/