linux/fs/isofs
Arnd Bergmann cb91775711 isofs: use unsigned char types consistently
Based on the discussion about the signed character field for the year,
I went through all fields in the iso9660 and rockridge standards to see
whether they should used signed or unsigned characters. Only a single
8-bit value is defined as signed per 'section 7.1.2': the timezone
offset in a timestamp, this has always been handled correctly through
explicit sign-extension.

All others are either '7.1.1 8-bit unsigned numerical values' or
composite fields. I also read the linux source code and came to the
same conclusion, also I could not find any other part of the
implementation that actually behaves differently for signed or
unsigned values.

Since it is still ambigous to use plain 'char' in interface definitions,
I'm changing all fields representing numbers and reserved bytes to
the unambiguous '__u8'. Fields that hold actual strings are left as
'char' arrays. I built the code with '-Wpointer-sign -Wsign-compare'
to see if anything got left out, but couldn't find anything wrong
with the remaining warnings.

This patch should not change runtime behavior and does not need to
be backported.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jan Kara <jack@suse.cz>
2017-10-31 18:11:33 +01:00
..
compress.c block,fs: untangle fs.h and blk_types.h 2016-11-01 09:43:26 -06:00
dir.c isofs: switch to ->iterate_shared() 2016-05-09 12:53:03 -04:00
export.c VFS: normal filesystems (and lustre): d_inode() annotations 2015-04-15 15:06:57 -04:00
inode.c isofs: fix build regression 2017-09-18 12:24:26 +02:00
isofs.h isofs: use unsigned char types consistently 2017-10-31 18:11:33 +01:00
joliet.c NLS: update handling of Unicode 2009-06-15 21:44:43 -07:00
Kconfig fs/Kconfig: move iso9660, udf out 2009-01-22 13:15:55 +03:00
Makefile
namei.c get rid of 'parent' argument of ->d_compare() 2016-07-31 16:37:25 -04:00
rock.c isofs: add KERN_CONT to printing of ER records 2016-11-30 10:41:26 -08:00
rock.h isofs: use unsigned char types consistently 2017-10-31 18:11:33 +01:00
util.c isofs: fix timestamps beyond 2027 2017-10-31 17:56:53 +01:00
zisofs.h