-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed missing data type cast which was generating a warning/error. #24
fixed missing data type cast which was generating a warning/error. #24
Conversation
This appears to be needed due to changes made in 28ef6f8. I'm not exactly sure why that change was made, and it doesn't appear upstream, so we may run into similar issues with any other driver that uses |
@madisongh hi, and thanks for the feedback. At first I was trying to revert that hash and recompile and then ran into quite a few other issues. Most likely I'm missing something in the build process. Nevertheless, going back to my original code base, I checked the scatterlist.h header and actually, the changes detailed in the hash's changes exist already.
My original code base comes from https://developer.nvidia.com/embedded/L4T/r32_Release_v4.4/r32_Release_v4.4-GMC3/Sources/T210/public_sources.tbz2 The drivers/scsi/libiscsi_tcp.c requires my changes, or at least the casting of size_t to unsigned int to make the min() comparison compile without a warning. |
@dwoolworth If it's actually possible to have sg transfers with offsets or sizes > 4GiB, as implied by the NVIDIA changes to scatterlist.h, then wouldn't it be better to modify |
fix formatting
formatting fix
@madisongh you are very obviously correct. I've updated the source accordingly. I would estimate there are quite a few scsi drivers left that need to be updated. I only fixed the iscsi_tcp related. I hope the updates are correct/useful. I have tested these as follows:
|
format fix
While I'm not sure if this matters to anyone, I was attempting to get the iSCSI driver to compile and ran into this issue. Not sure if this is the appropriate place to submit, but at least if someone searches for anything like "iscsid: can not create NETLINK_ISCSI socket" and cannot figure out why iscsid is hanging, and modprobe iscsi_tcp says the module doesn't exist... Or while trying to compile a new kernel for the Jetson Nano to include the iscsi_tcp kernel driver, etc. and runs across this error, hopefully they'll find this post. Or maybe it'll just be me the next time I forget what I did to get this working.