--- zzzz-none-000/linux-4.1.52/include/asm-generic/pgtable-nopud.h 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/include/asm-generic/pgtable-nopud.h 2022-03-02 11:37:13.000000000 +0000 @@ -22,10 +22,10 @@ * setup: the pud is never bad, and a pud always exists (as it's folded * into the pgd entry) */ -static inline int pgd_none(pgd_t pgd) { return 0; } -static inline int pgd_bad(pgd_t pgd) { return 0; } -static inline int pgd_present(pgd_t pgd) { return 1; } -static inline void pgd_clear(pgd_t *pgd) { } +static inline int pgd_none(pgd_t pgd __maybe_unused) { return 0; } +static inline int pgd_bad(pgd_t pgd __maybe_unused) { return 0; } +static inline int pgd_present(pgd_t pgd __maybe_unused) { return 1; } +static inline void pgd_clear(pgd_t *pgd __maybe_unused) { } #define pud_ERROR(pud) (pgd_ERROR((pud).pgd)) #define pgd_populate(mm, pgd, pud) do { } while (0) @@ -35,7 +35,8 @@ */ #define set_pgd(pgdptr, pgdval) set_pud((pud_t *)(pgdptr), (pud_t) { pgdval }) -static inline pud_t * pud_offset(pgd_t * pgd, unsigned long address) +static inline pud_t *pud_offset(pgd_t *pgd, + unsigned long address __maybe_unused) { return (pud_t *)pgd; }