Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

video: fbdev: starfive: Use round_up() instead of _ALIGN_UP() #26

Closed
wants to merge 1 commit into from

Commits on Jun 22, 2021

  1. video: fbdev: starfive: Use round_up() instead of _ALIGN_UP()

    _ALIGN_UP() is being removed by commit efcec32 ("riscv: Cleanup
    unused functions") in riscv/for-next:
    
        drivers/video/fbdev/starfive/starfive_displayer.c: In function ‘of_parse_wr_cmd’:
        drivers/video/fbdev/starfive/starfive_displayer.c:616:27: error: implicit declaration of function ‘_ALIGN_UP’ [-Werror=implic
        it-function-declaration]
          616 |  dev_cmds->cmds = kzalloc(_ALIGN_UP(alloc_bytes, 4), GFP_KERNEL);
    	  |                           ^~~~~~~~~
    
    Just use roundup() instead.
    
    Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
    ---
    Compile-tested only.
    geertu committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    a7abe55 View commit details
    Browse the repository at this point in the history