From: Alex Elder Date: Mon, 4 Mar 2013 17:08:29 +0000 (-0600) Subject: libceph: fix wrong opcode use in osd_req_encode_op() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~26^2~238 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f63ca2d23c7922b24d7b95e54740ec29c859379;p=pandora-kernel.git libceph: fix wrong opcode use in osd_req_encode_op() The new cases added to osd_req_encode_op() caused a new sparse error, which highlighted an existing problem that had been overlooked since it was originally checked in. When an unsupported opcode is found the destination rather than the source opcode was being used in the error message. The two differ in their byte order, and we want to be using the one in the source. Fix the problem in both spots. Reported-by: Fengguang Wu Signed-off-by: Alex Elder Reviewed-by: Josh Durgin --- Reading git-diff-tree failed