Go to file
Jagadeesh Krishnanjanappa 37c8e1f990 iscsitarget: resolve build error with linux kernel 4.3 and above
1. test_bit was used to return true boolean value, if
   BIO_UPTODATE bit of bio->bi_flags is set. But the same
   job can be done by checking bio->bi_error, implemented in
   linux kernel 4.3 and above. If bio->bi_error is set, then
   it denotes error.

Ref: 4246a0b63b

It solves below build error:
-- snip --
iscsitarget-1.4.20.3+svn502/kernel/block-io.c:40:19: error: 'BIO_UPTODATE' undeclared (first use in this function)
   error = test_bit(BIO_UPTODATE, &bio->bi_flags) ? error : -EIO;
-- CUT --

2. bio can always be filled to a maximum value of BIO_MAX_PAGES,
   so no need to check for min value for linux kernel 4.3 and above.

Ref: b54ffb73ca

It solves below build error:
-- snip --
iscsitarget-1.4.20.3+svn502/kernel/block-io.c:80:15: error: implicit declaration of function 'bio_get_nr_vecs' [-Werror=implicit-function-declaration]
    max_pages = bio_get_nr_vecs(bio_data->bdev);
-- CUT --

3. Remove unwanted explicit setting of CFLAGS and CC flags. Setting them in
   oe_runmake command, will override CFLAGS mentioned in iscsitarget Makefile
   and resulting in a below error:

-- snip --
 In file included from iscsid.c:38:0:
 iscsid.h:38:19: fatal error: iet_u.h: No such file or directory
 compilation terminated.
 In file included from conn.c:15:0:
 iscsid.h:38:19: fatal error: iet_u.h: No such file or directory
 compilation terminated.
-- CUT --

Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
2016-04-29 11:57:47 -04:00
contrib contrib: print oldline within single quotes 2016-01-04 14:56:24 +01:00
meta-efl README: update maintainers list for krogoth 2016-04-12 11:50:37 +02:00
meta-filesystems README: update maintainers list for krogoth 2016-04-12 11:50:37 +02:00
meta-gnome README: update maintainers list for krogoth 2016-04-12 11:50:37 +02:00
meta-gpe README: update maintainers list for krogoth 2016-04-12 11:50:37 +02:00
meta-initramfs README: update maintainers list for krogoth 2016-04-12 11:50:37 +02:00
meta-multimedia README: update maintainers list for krogoth 2016-04-12 11:50:37 +02:00
meta-networking iscsitarget: resolve build error with linux kernel 4.3 and above 2016-04-29 11:57:47 -04:00
meta-oe README: update maintainers list for krogoth 2016-04-12 11:50:37 +02:00
meta-perl README: update maintainers list for krogoth 2016-04-12 11:50:37 +02:00
meta-python README: update maintainers list for krogoth 2016-04-12 11:50:37 +02:00
meta-ruby README: update maintainers list for krogoth 2016-04-12 11:50:37 +02:00
meta-systemd README: update maintainers list for krogoth 2016-04-12 11:50:37 +02:00
meta-webserver README: update maintainers list for krogoth 2016-04-12 11:50:37 +02:00
meta-xfce README: update maintainers list for krogoth 2016-04-12 11:50:37 +02:00
.gitignore gitignore: Ignore Edit backup files, patches, .rej, .orig, .swp 2013-11-24 15:19:27 +01:00
COPYING.MIT add README and license for this layer 2011-02-13 16:47:32 +01:00
README README: add top level readme, update meta-oe one 2011-10-17 09:27:01 +02:00

Collection of layers for the OE-core universe

Please see the respective READMEs in the layer subdirectories