diff options
author | Whi copybara merger <whitechapel-automerger@google.com> | 2023-04-11 14:08:01 -0700 |
---|---|---|
committer | Todd Poynor <toddpoynor@google.com> | 2023-04-24 01:36:04 +0000 |
commit | 37e026c4fc49af51d06a083369505aef779e3519 (patch) | |
tree | 6efa3c5b5e47747f6c21862f16920189c0b755aa | |
parent | b6fd94b0f15caef90cf5efb822122e24916bd1bd (diff) | |
download | janeiro-37e026c4fc49af51d06a083369505aef779e3519.tar.gz |
[Copybara Auto Merge] Merge branch pro into android13-gs-pixel-5.10-udc
edgetpu: Handle missing scmversion
Bug: 277787303
GitOrigin-RevId: ab6f26a2075336422853611d227a6acd73564900
Change-Id: I82a225a6f206692f5e6cf59617ac4aecc2784a48
-rw-r--r-- | drivers/edgetpu/edgetpu-mobile-platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edgetpu/edgetpu-mobile-platform.c b/drivers/edgetpu/edgetpu-mobile-platform.c index 194c741..3272d4c 100644 --- a/drivers/edgetpu/edgetpu-mobile-platform.c +++ b/drivers/edgetpu/edgetpu-mobile-platform.c @@ -330,7 +330,7 @@ edgetpu_mobile_platform_set_fw_ctx_memory(struct edgetpu_mobile_platform_dev *et static inline const char *get_driver_commit(void) { #if IS_ENABLED(CONFIG_MODULE_SCMVERSION) - return THIS_MODULE->scmversion; + return THIS_MODULE->scmversion ?: "scmversion missing"; #elif defined(GIT_REPO_TAG) return GIT_REPO_TAG; #else |