Skip to content

Conversation

@MaxKrummenacher
Copy link
Contributor

When building for x86-64 the compiler complains that drm_of_component_probe_with_match is defined but not used and the build fails as all warnings are treated as errors in that case.

Fix it by adding inline the same way as all other 'empty' functions are defined.

Reproduce:

  • Setup the environment on a x86-64 host to build natively
  • make defconfig
  • make -j$(nproc)

Mark empty implementations of drm_of_component_probe_with_match as
static inline.

Prevents, if :
| In file included from drivers/gpu/drm/drm_bridge.c:35:
| ./include/drm/drm_of.h:88:12: error: 'drm_of_component_probe_with_match' defined but not used [-Werror=unused-function]
|    88 | static int drm_of_component_probe_with_match(struct device *dev,

Signed-off-by: Max Krummenacher <[email protected]>
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.

1 participant