forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request torvalds#596 from ojeda/no-ifdef-in-c-file
`vsprintf`: avoid `#ifdef` in `.c` file
- Loading branch information
Showing
3 changed files
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
#ifndef __LINUX_RUST_H | ||
#define __LINUX_RUST_H | ||
|
||
#ifdef CONFIG_RUST | ||
char *rust_fmt_argument(char* buf, char* end, void *ptr); | ||
#else | ||
static inline char *rust_fmt_argument(char* buf, char* end, void *ptr) | ||
{ | ||
return NULL; | ||
} | ||
#endif | ||
|
||
#endif /* __LINUX_RUST_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters