refactor code with linux convention

This commit is contained in:
rick 2023-01-23 18:53:31 +01:00
parent 28056630a4
commit cb44d77656
Signed by: Rick
GPG Key ID: 4A6223D66294EB20
3 changed files with 5 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
reponse
reponses
# Created by https://www.toptal.com/developers/gitignore/api/vim,c
# Edit at https://www.toptal.com/developers/gitignore?templates=vim,c

View File

@ -8,6 +8,8 @@ Vous pouvez trouver des réponses (ainsi que des questions)
À noter que j'utilise la commande `indent -linux` pour pouvoir indenter et
formater les fichiers sources selon la convention du kernel Linux.
J'utilise aussi le script `checkpatch.pl -f` pour pouvoir vérifier plus en
profondeur si mes fichiers sources suivent bien la convention (cf. tache 4).
## Compilation

View File

@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-2.0
#include <linux/kernel.h>
#include <linux/module.h>