Skip to contentSkip to conversation

s390/cio: use cssid for pgid generation

bug report Dan Carpenter 1 participant 1 message Jan 16, 2017 1 message not in the archive s390

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): alpine.LFD.2.20.1701161356550.1815@schleppi

#1 lore raw
Quoted 6 lines · Sebastian Ott

Hello Dan,

Quoted 3 lines · Dan Carpenter

The patch c8500e120b81: "s390/cio: use cssid for pgid generation" from Jun 17, 2016, leads to the following static checker warning:

Quoted 9 lines
Quoted 3 lines
	drivers/s390/cio/css.c:707 css_generate_pgid()
	warn: impossible condition '(css->cssid < 0) => (0-255 < 0)'

Thanks for your report. This issue was already known and should be fixed by now. What's puzzling me, is that c8500e120b81 actually is the fixed version where cssid is a signed int. So with commit c8500e120b81 you should no longer see this warning.

Huh. You're right. I didn't read the code carefully... :/ Sorry for the noise.

I'm not sure how this error was generated either because I can't reproduce it today.

regards,
dan carpenter