Skip to content

Commit

Permalink
Merge patch series "Several compilation warnings fixes for UFS Advanc…
Browse files Browse the repository at this point in the history
…ed RPMB"

Bean Huo <beanhuo@iokpp.de> says:

These patches are to fix several compilation warnings introduced by my
commit: 6ff265f ("scsi: ufs: core: bsg: Add advanced RPMB support
in ufs_bsg"), please consider this patch series for the next your
merge window.  Apologies for this!!

Link: https://lore.kernel.org/r/20230108224057.354438-1-beanhuo@iokpp.de
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
  • Loading branch information
Martin K. Petersen committed Jan 12, 2023
2 parents 679062c + e2cb6e8 commit 58edf8b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions drivers/ufs/core/ufs_bsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ static int ufs_bsg_exec_advanced_rpmb_req(struct ufs_hba *hba, struct bsg_job *j
struct ufs_rpmb_reply *rpmb_reply = job->reply;
struct bsg_buffer *payload = NULL;
enum dma_data_direction dir;
struct scatterlist *sg_list;
struct scatterlist *sg_list = NULL;
int rpmb_req_type;
int sg_cnt;
int sg_cnt = 0;
int ret;
int data_len;

Expand Down
12 changes: 6 additions & 6 deletions include/uapi/scsi/scsi_bsg_ufs.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,18 @@ struct utp_upiu_req {
};

struct ufs_arpmb_meta {
__u16 req_resp_type;
__be16 req_resp_type;
__u8 nonce[16];
__u32 write_counter;
__u16 addr_lun;
__u16 block_count;
__u16 result;
__be32 write_counter;
__be16 addr_lun;
__be16 block_count;
__be16 result;
} __attribute__((__packed__));

struct ufs_ehs {
__u8 length;
__u8 ehs_type;
__u16 ehssub_type;
__be16 ehssub_type;
struct ufs_arpmb_meta meta;
__u8 mac_key[32];
} __attribute__((__packed__));
Expand Down
1 change: 1 addition & 0 deletions include/ufs/ufshcd.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <linux/blk-mq.h>
#include <linux/devfreq.h>
#include <linux/pm_runtime.h>
#include <linux/dma-direction.h>
#include <scsi/scsi_device.h>
#include <ufs/unipro.h>
#include <ufs/ufs.h>
Expand Down

0 comments on commit 58edf8b

Please sign in to comment.