Skip to content

[Accton platform]Fix kernel 5.10 build failed in fan drv#9744

Merged
lguohan merged 3 commits intosonic-net:masterfrom
jostar-yang:fan_fail_kernel_5.10_20220112
Jan 22, 2022
Merged

[Accton platform]Fix kernel 5.10 build failed in fan drv#9744
lguohan merged 3 commits intosonic-net:masterfrom
jostar-yang:fan_fail_kernel_5.10_20220112

Conversation

@jostar-yang
Copy link
Copy Markdown
Contributor

Why I did it

Old fan drv will be build fail under kernel 5.10. It get below error message.
/sonic/platform/broadcom/sonic-platform-modules-accton/as7312-54xs/modules/accton_as7312_54x_fan.c:483:5: error: implicit declarat ion of function 'set_fs'; did you mean 'sget_fc'? [-Werror=implicit-function-declaration]
set_fs(KERNEL_DS);
^~~~~~
sget_fc

How I did it

These code is old design and they are not needed currently. So remove them.

How to verify it

Build pass and check sensor work in these platform.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

A picture of a cute animal (not mandatory but encouraged)

@jostar-yang jostar-yang requested a review from lguohan as a code owner January 12, 2022 08:45
@jostar-yang jostar-yang changed the title [Accton platform]Fix kernel 5.10 build fain in fan drv [Accton platform]Fix kernel 5.10 build failed in fan drv Jan 18, 2022
@lguohan lguohan merged commit f5cefb1 into sonic-net:master Jan 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants