gh_panic_notifier.h 547 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. */
  5. #ifndef __GH_PANIC_NOTIFIER_H
  6. #define __GH_PANIC_NOTIFIER_H
  7. #if IS_ENABLED(CONFIG_GH_PANIC_NOTIFIER)
  8. int gh_panic_notifier_register(struct notifier_block *nb);
  9. int gh_panic_notifier_unregister(struct notifier_block *nb);
  10. #else
  11. static inline int gh_panic_notifier_register(struct notifier_block *nb)
  12. {
  13. return 0;
  14. }
  15. static inline int gh_panic_notifier_unregister(struct notifier_block *nb)
  16. {
  17. return 0;
  18. }
  19. #endif
  20. #endif