On 2021/10/15 13:33, Yanling Song wrote:
diff --git a/drivers/scsi/spfc/Kconfig b/drivers/scsi/spfc/Kconfig new file mode 100644 index 000000000000..1021089f355c --- /dev/null +++ b/drivers/scsi/spfc/Kconfig @@ -0,0 +1,17 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Ramaxel SPFC driver configuration +#
+config SPFC
- tristate "Ramaxel Fabric Channel Host Adapter Support"
- default m
- depends on PCI && SCSI
- depends on SCSI_FC_ATTRS
- depends on ARM64 || X86_64
- help
- This driver supports Ramaxel Fabric Channel PCIe host adapter.
- To compile this driver as part of the kernel, choose Y here.
If unsure, choose N.
- The default is N.
默认是m
On 2021/10/15 13:33, Yanling Song wrote:>
+void unf_wake_up_scsi_task_cmnd(struct unf_lport *lport) +{
- struct list_head *node = NULL;
- struct list_head *next_node = NULL;
- struct unf_xchg *xchg = NULL;
- ulong hot_pool_lock_flags = 0;
- ulong xchg_flag = 0;
- struct unf_xchg_mgr *xchg_mgrs = NULL;
- u32 i = 0;
- FC_CHECK_RETURN_VOID(lport);
- for (i = 0; i < UNF_EXCHG_MGR_NUM; i++) {
建议:有些明显不需要的局部变量初始化可以去掉,比如这里的i。
On 2021/10/15 13:33, Yanling Song wrote:> diff --git a/drivers/scsi/spfc/common/unf_exchg.h b/drivers/scsi/spfc/common/unf_exchg.h
new file mode 100644 index 000000000000..5390f932fe44 --- /dev/null +++ b/drivers/scsi/spfc/common/unf_exchg.h @@ -0,0 +1,436 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* Copyright(c) 2021 Ramaxel Memory Technology, Ltd */
+#ifndef UNF_FCEXCH_H +#define UNF_FCEXCH_H
宏名与头文件名不一致。unf_exchg_abort.h也是。
需要消除文件末尾的空行 Applying: scsi: spfc: initial commit the spfc module error: patch failed: arch/arm64/configs/openeuler_defconfig:7135 error: arch/arm64/configs/openeuler_defconfig: patch does not apply error: patch failed: arch/x86/configs/openeuler_defconfig:8514 error: arch/x86/configs/openeuler_defconfig: patch does not apply .git/rebase-apply/patch:200: new blank line at EOF. + .git/rebase-apply/patch:3966: new blank line at EOF. + .git/rebase-apply/patch:19964: new blank line at EOF. + .git/rebase-apply/patch:28091: new blank line at EOF. + .git/rebase-apply/patch:36424: new blank line at EOF. +