Skip to content
Commit 4c9c83b8 authored by Hauke Mehrtens's avatar Hauke Mehrtens
Browse files

header: make __MODULE_INFO use __UNIQUE_ID

Since commit 34182eea

 "moduleparam: use __UNIQUE_ID()" the
__MODULE_INFO macro uses __UNIQUE_ID and not the line number to
generate the constants.

This is needed to prevent a build error in brcmfmac which now uses the
BRCMF_FW_NVRAM_DEF macro which calls MODULE_FIRMWARE two times. The
__LINE__ macro will return the same line for both calls and the
compiler would generate the same global variable name two times with
the same name in older kernel versions, which will make the build fail.
Using __UNIQUE_ID() fixes this problem.

Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
parent 74ec2bcb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment