Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expected declaration specifiers or ‘...’ before string constant #56

Open
Lishuoyy opened this issue Apr 4, 2022 · 2 comments
Open

Comments

@Lishuoyy
Copy link

Lishuoyy commented Apr 4, 2022

error: expected declaration specifiers or ‘...’ before string constant
33 | #define TPM_DEVICE_ID "tpm"
| ^~~~~
I hope someone can answer for me, thanks!

@fanrong1992
Copy link

Comment line 54 in tpmd_dev.c works for me.
tpmd_dev/linux/tpmd_dev.c:

// MODULE_SUPPORTED_DEVICE(TPM_DEVICE_ID);

@langcaijinjiangyan
Copy link

error: expected declaration specifiers or ‘...’ before string constant 33 | #define TPM_DEVICE_ID "tpm" | ^~~~~ I hope someone can answer for me, thanks!

How did you solve it? I meet the same problem at ubuntu22.04. I tryied the method in this issue but it doesn't work.

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

No branches or pull requests

3 participants