--- zzzz-none-000/linux-4.1.38/include/asm-generic/pgtable-nopud.h 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/include/asm-generic/pgtable-nopud.h 2020-11-25 10:06:48.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; }