Skip to content

crypto定义finup_mb/mb_max_msgs等缺失 #12

Description

@mgxhhg

错误:

../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:5586.11-5592.6: Warning (avoid_default_addr_size): /soc/modem0-qmi/in-ports/port@1: Relying on default #size-cells value ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun.dtsi:1910.25-1943.4: Warning (clocks_property): /soc/qcom,cc-debug: Missing property '#clock-cells' in node /soc/clock-controller@3d68024 or bad phandle (referred from clocks[14]) ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:522.41-525.7: Warning (graph_endpoint): /soc/tpda@10c08000/in-ports/port@2/endpoint: graph connection to node '/soc/funnel@10c09000/out-ports/port@0/endpoint' is not bidirectional ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:4362.33-4365.7: Warning (graph_endpoint): /soc/tpdm@109d0000/out-ports/port/endpoint: graph connection to node '/soc/tn@109ab000/in-ports/port@13/endpoint' is not bidirectional ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:821.11-827.6: Warning (graph_port): /soc/turing-etm0/out-ports/port@0: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:821.11-827.6: Warning (graph_port): /soc/turing-etm0/out-ports/port@0: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:829.11-835.6: Warning (graph_port): /soc/turing-etm0/out-ports/port@1: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:829.11-835.6: Warning (graph_port): /soc/turing-etm0/out-ports/port@1: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:981.11-987.6: Warning (graph_port): /soc/modem-etm0/out-ports/port@0: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:981.11-987.6: Warning (graph_port): /soc/modem-etm0/out-ports/port@0: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:989.11-995.6: Warning (graph_port): /soc/modem-etm0/out-ports/port@1: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:989.11-995.6: Warning (graph_port): /soc/modem-etm0/out-ports/port@1: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:1008.11-1014.6: Warning (graph_port): /soc/modem2-etm0/out-ports/port@0: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:1008.11-1014.6: Warning (graph_port): /soc/modem2-etm0/out-ports/port@0: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:1016.11-1022.6: Warning (graph_port): /soc/modem2-etm0/out-ports/port@1: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:1016.11-1022.6: Warning (graph_port): /soc/modem2-etm0/out-ports/port@1: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:3588.11-3594.6: Warning (graph_port): /soc/tpdm@10b34000/out-ports/port@0: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:3588.11-3594.6: Warning (graph_port): /soc/tpdm@10b34000/out-ports/port@0: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:3596.11-3602.6: Warning (graph_port): /soc/tpdm@10b34000/out-ports/port@1: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:3596.11-3602.6: Warning (graph_port): /soc/tpdm@10b34000/out-ports/port@1: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:3929.11-3935.6: Warning (graph_port): /soc/audio_etm0/out-ports/port@0: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:3929.11-3935.6: Warning (graph_port): /soc/audio_etm0/out-ports/port@0: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:3937.11-3943.6: Warning (graph_port): /soc/audio_etm0/out-ports/port@1: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:3937.11-3943.6: Warning (graph_port): /soc/audio_etm0/out-ports/port@1: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:3954.11-3960.6: Warning (graph_port): /soc/tpdm@10b46000/out-ports/port@0: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:3954.11-3960.6: Warning (graph_port): /soc/tpdm@10b46000/out-ports/port@0: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:3962.11-3968.6: Warning (graph_port): /soc/tpdm@10b46000/out-ports/port@1: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:3962.11-3968.6: Warning (graph_port): /soc/tpdm@10b46000/out-ports/port@1: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:3979.11-3985.6: Warning (graph_port): /soc/tpdm@10b52000/out-ports/port@0: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:3979.11-3985.6: Warning (graph_port): /soc/tpdm@10b52000/out-ports/port@0: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:3987.11-3993.6: Warning (graph_port): /soc/tpdm@10b52000/out-ports/port@1: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:3987.11-3993.6: Warning (graph_port): /soc/tpdm@10b52000/out-ports/port@1: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:4005.11-4011.6: Warning (graph_port): /soc/tpdm@10b54000/out-ports/port@0: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:4005.11-4011.6: Warning (graph_port): /soc/tpdm@10b54000/out-ports/port@0: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:4013.11-4019.6: Warning (graph_port): /soc/tpdm@10b54000/out-ports/port@1: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:4013.11-4019.6: Warning (graph_port): /soc/tpdm@10b54000/out-ports/port@1: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:4087.11-4093.6: Warning (graph_port): /soc/lpass-stm/out-ports/port@0: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:4087.11-4093.6: Warning (graph_port): /soc/lpass-stm/out-ports/port@0: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:4095.11-4101.6: Warning (graph_port): /soc/lpass-stm/out-ports/port@1: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:4095.11-4101.6: Warning (graph_port): /soc/lpass-stm/out-ports/port@1: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:5521.11-5527.6: Warning (graph_port): /soc/audio-qmi/in-ports/port@0: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:5521.11-5527.6: Warning (graph_port): /soc/audio-qmi/in-ports/port@0: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:5529.11-5535.6: Warning (graph_port): /soc/audio-qmi/in-ports/port@1: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:5529.11-5535.6: Warning (graph_port): /soc/audio-qmi/in-ports/port@1: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:5537.11-5543.6: Warning (graph_port): /soc/audio-qmi/in-ports/port@2: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:5537.11-5543.6: Warning (graph_port): /soc/audio-qmi/in-ports/port@2: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:5545.11-5551.6: Warning (graph_port): /soc/audio-qmi/in-ports/port@3: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:5545.11-5551.6: Warning (graph_port): /soc/audio-qmi/in-ports/port@3: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:5553.11-5559.6: Warning (graph_port): /soc/audio-qmi/in-ports/port@4: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:5553.11-5559.6: Warning (graph_port): /soc/audio-qmi/in-ports/port@4: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:5561.11-5567.6: Warning (graph_port): /soc/audio-qmi/in-ports/port@5: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:5561.11-5567.6: Warning (graph_port): /soc/audio-qmi/in-ports/port@5: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:5578.11-5584.6: Warning (graph_port): /soc/modem0-qmi/in-ports/port@0: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:5578.11-5584.6: Warning (graph_port): /soc/modem0-qmi/in-ports/port@0: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:5586.11-5592.6: Warning (graph_port): /soc/modem0-qmi/in-ports/port@1: graph node '#address-cells' is -1, must be 1 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:5586.11-5592.6: Warning (graph_port): /soc/modem0-qmi/in-ports/port@1: graph node '#size-cells' is -1, must be 0 ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:4689.32-4692.7: Warning (graph_endpoint): /soc/tn@109ab000/in-ports/port@13/endpoint: graph connection to node '/soc/tpdm@10841000/out-ports/port/endpoint' is not bidirectional ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:400.41-403.7: Warning (graph_endpoint): /soc/tpdm@10c60000/out-ports/port/endpoint: graph connection to node '/soc/funnel@10c09000/in-ports/port@0/endpoint' is not bidirectional ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:522.41-525.7: Warning (graph_endpoint): /soc/tpda@10c08000/in-ports/port@2/endpoint: graph connection to node '/soc/funnel@10c09000/out-ports/port@0/endpoint' is not bidirectional ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:4362.33-4365.7: Warning (graph_endpoint): /soc/tpdm@109d0000/out-ports/port/endpoint: graph connection to node '/soc/tn@109ab000/in-ports/port@13/endpoint' is not bidirectional ../arch/arm64/boot/dts/vendor/oplus/../qcom/sun-coresight.dtsi:4689.32-4692.7: Warning (graph_endpoint): /soc/tn@109ab000/in-ports/port@13/endpoint: graph connection to node '/soc/tpdm@10841000/out-ports/port/endpoint' is not bidirectional In file included from ../arch/arm64/include/asm/bug.h:26, from ../include/linux/bug.h:5, from ../include/linux/thread_info.h:13, from ../arch/arm64/include/asm/preempt.h:6, from ../include/linux/preempt.h:79, from ../include/linux/spinlock.h:56, from ../include/linux/swait.h:7, from ../include/linux/completion.h:12, from ../include/linux/crypto.h:15, from ../include/crypto/algapi.h:13, from ../include/crypto/scatterwalk.h:14, from ../crypto/shash.c:8: ../crypto/shash.c: In function ‘crypto_shash_finup_mb’: ../crypto/shash.c:253:40: error: ‘struct shash_alg’ has no member named ‘mb_max_msgs’ 253 | if (WARN_ON_ONCE(num_msgs > alg->mb_max_msgs)) | ^~ ../include/asm-generic/bug.h:111:32: note: in definition of macro ‘WARN_ON_ONCE’ 111 | int __ret_warn_on = !!(condition); \ | ^~~~~~~~~ ../crypto/shash.c:256:20: error: ‘struct shash_alg’ has no member named ‘finup_mb’; did you mean ‘finup’? 256 | err = alg->finup_mb(desc, data, len, outs, num_msgs); | ^~~~~~~~ | finup ../crypto/shash.c: In function ‘shash_prepare_alg’: ../crypto/shash.c:698:16: error: ‘struct shash_alg’ has no member named ‘mb_max_msgs’ 698 | if (alg->mb_max_msgs > 1) { | ^~ ../crypto/shash.c:699:24: error: ‘struct shash_alg’ has no member named ‘mb_max_msgs’ 699 | if (alg->mb_max_msgs > HASH_MAX_MB_MSGS) | ^~ ../crypto/shash.c:699:40: error: ‘HASH_MAX_MB_MSGS’ undeclared (first use in this function) 699 | if (alg->mb_max_msgs > HASH_MAX_MB_MSGS) | ^~~~~~~~~~~~~~~~ ../crypto/shash.c:699:40: note: each undeclared identifier is reported only once for each function it appears in ../crypto/shash.c:701:27: error: ‘struct shash_alg’ has no member named ‘finup_mb’; did you mean ‘finup’? 701 | if (!alg->finup_mb) | ^~~~~~~~ | finup ../crypto/shash.c:704:26: error: ‘struct shash_alg’ has no member named ‘finup_mb’; did you mean ‘finup’? 704 | if (alg->finup_mb) | ^~~~~~~~ | finup ../crypto/shash.c:706:20: error: ‘struct shash_alg’ has no member named ‘mb_max_msgs’ 706 | alg->mb_max_msgs = 1; | ^~

我知道,你们可能是拿了 QCOM 的 Android 内核(6.6) 作为基线,合入android的功能,但未更新 include/crypto/hash.h,所以缺失定义,所以发之前至少先编译一下吧

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions