mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
Merge remote-tracking branch 'remotes/armbru/tags/pull-include-2016-07-12' into staging
Clean up #include "..." vs <...> and header guards # gpg: Signature made Tue 12 Jul 2016 15:23:43 BST # gpg: using RSA key 0x3870B400EB918653 # gpg: Good signature from "Markus Armbruster <armbru@redhat.com>" # gpg: aka "Markus Armbruster <armbru@pond.sub.org>" # Primary key fingerprint: 354B C8B3 D7EB 2A6B 6867 4E5F 3870 B400 EB91 8653 * remotes/armbru/tags/pull-include-2016-07-12: cris: Fix broken header guard in hw/cris/boot.h Clean up decorations and whitespace around header guards Clean up ill-advised or unusual header guards libdecnumber: Don't error out on decNumberLocal.h re-inclusion libdecnumber: Don't fool around with guards to avoid #include Clean up header guards that don't match their file name Drop Emacs local variables lists redundant with .dir-locals.el spapr_pci: Include spapr.h instead of playing games with #error tcg: Clean up tcg-target.h header guards linux-user: Fix broken header guard in syscall_defs.h linux-user: Clean up hostdep.h header guards linux-user: Clean up target_structs.h header guards linux-user: Clean up target_signal.h header guards linux-user: Clean up target_cpu.h header guards linux-user: Clean up target_syscall.h header guards target-*: Clean up cpu.h header guards scripts: New clean-header-guards.pl Use #include "..." for our own headers, <...> for others Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
+2
-1
@@ -21,6 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef QEMU_AUDIO_H
|
||||
#define QEMU_AUDIO_H
|
||||
|
||||
@@ -162,4 +163,4 @@ static inline void *advance (void *p, int incr)
|
||||
int wav_start_capture (CaptureState *s, const char *path, int freq,
|
||||
int bits, int nchannels);
|
||||
|
||||
#endif /* audio.h */
|
||||
#endif /* QEMU_AUDIO_H */
|
||||
|
||||
+2
-1
@@ -21,6 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef QEMU_AUDIO_INT_H
|
||||
#define QEMU_AUDIO_INT_H
|
||||
|
||||
@@ -257,4 +258,4 @@ static inline int audio_ring_dist (int dst, int src, int len)
|
||||
#define AUDIO_FUNC __FILE__ ":" AUDIO_STRINGIFY (__LINE__)
|
||||
#endif
|
||||
|
||||
#endif /* audio_int.h */
|
||||
#endif /* QEMU_AUDIO_INT_H */
|
||||
|
||||
@@ -19,4 +19,4 @@ int audio_pt_wait (struct audio_pt *, const char *);
|
||||
int audio_pt_unlock_and_signal (struct audio_pt *, const char *);
|
||||
int audio_pt_join (struct audio_pt *, void **, const char *);
|
||||
|
||||
#endif /* audio_pt_int.h */
|
||||
#endif /* QEMU_AUDIO_PT_INT_H */
|
||||
|
||||
+2
-1
@@ -21,6 +21,7 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef QEMU_MIXENG_H
|
||||
#define QEMU_MIXENG_H
|
||||
|
||||
@@ -48,4 +49,4 @@ void st_rate_stop (void *opaque);
|
||||
void mixeng_clear (struct st_sample *buf, int len);
|
||||
void mixeng_volume (struct st_sample *buf, int len, struct mixeng_volume *vol);
|
||||
|
||||
#endif /* mixeng.h */
|
||||
#endif /* QEMU_MIXENG_H */
|
||||
|
||||
@@ -46,7 +46,6 @@
|
||||
|
||||
#ifdef __linux__
|
||||
#include <scsi/sg.h>
|
||||
#include <block/scsi.h>
|
||||
#endif
|
||||
|
||||
typedef struct IscsiLun {
|
||||
|
||||
@@ -162,4 +162,4 @@ struct target_vm86plus_struct {
|
||||
|
||||
#define UNAME_MACHINE "i386"
|
||||
|
||||
#endif /* TARGET_SYSCALL_H */
|
||||
#endif /* TARGET_SYSCALL_H */
|
||||
|
||||
@@ -11,4 +11,4 @@ struct target_pt_regs {
|
||||
|
||||
#define UNAME_MACHINE "sun4"
|
||||
|
||||
#endif /* TARGET_SYSCALL_H */
|
||||
#endif /* TARGET_SYSCALL_H */
|
||||
|
||||
@@ -12,4 +12,4 @@ struct target_pt_regs {
|
||||
|
||||
#define UNAME_MACHINE "sun4u"
|
||||
|
||||
#endif /* TARGET_SYSCALL_H */
|
||||
#endif /* TARGET_SYSCALL_H */
|
||||
|
||||
@@ -118,4 +118,4 @@ struct target_msqid64_ds {
|
||||
#define TARGET_ARCH_GET_FS 0x1003
|
||||
#define TARGET_ARCH_GET_GS 0x1004
|
||||
|
||||
#endif /* TARGET_SYSCALL_H */
|
||||
#endif /* TARGET_SYSCALL_H */
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
* top-level directory.
|
||||
*/
|
||||
|
||||
#ifndef _IVSHMEM_CLIENT_H_
|
||||
#define _IVSHMEM_CLIENT_H_
|
||||
#ifndef IVSHMEM_CLIENT_H
|
||||
#define IVSHMEM_CLIENT_H
|
||||
|
||||
/**
|
||||
* This file provides helper to implement an ivshmem client. It is used
|
||||
@@ -209,4 +209,4 @@ ivshmem_client_search_peer(IvshmemClient *client, int64_t peer_id);
|
||||
*/
|
||||
void ivshmem_client_dump(const IvshmemClient *client);
|
||||
|
||||
#endif /* _IVSHMEM_CLIENT_H_ */
|
||||
#endif /* IVSHMEM_CLIENT_H */
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
* top-level directory.
|
||||
*/
|
||||
|
||||
#ifndef _IVSHMEM_SERVER_H_
|
||||
#define _IVSHMEM_SERVER_H_
|
||||
#ifndef IVSHMEM_SERVER_H
|
||||
#define IVSHMEM_SERVER_H
|
||||
|
||||
/**
|
||||
* The ivshmem server is a daemon that creates a unix socket in listen
|
||||
@@ -163,4 +163,4 @@ ivshmem_server_search_peer(IvshmemServer *server, int64_t peer_id);
|
||||
*/
|
||||
void ivshmem_server_dump(const IvshmemServer *server);
|
||||
|
||||
#endif /* _IVSHMEM_SERVER_H_ */
|
||||
#endif /* IVSHMEM_SERVER_H */
|
||||
|
||||
+3
-3
@@ -18,11 +18,11 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef QCRYPTO_BLOCK_LUKS_H__
|
||||
#define QCRYPTO_BLOCK_LUKS_H__
|
||||
#ifndef QCRYPTO_BLOCK_LUKS_H
|
||||
#define QCRYPTO_BLOCK_LUKS_H
|
||||
|
||||
#include "crypto/blockpriv.h"
|
||||
|
||||
extern const QCryptoBlockDriver qcrypto_block_driver_luks;
|
||||
|
||||
#endif /* QCRYPTO_BLOCK_LUKS_H__ */
|
||||
#endif /* QCRYPTO_BLOCK_LUKS_H */
|
||||
|
||||
+3
-3
@@ -18,11 +18,11 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef QCRYPTO_BLOCK_QCOW_H__
|
||||
#define QCRYPTO_BLOCK_QCOW_H__
|
||||
#ifndef QCRYPTO_BLOCK_QCOW_H
|
||||
#define QCRYPTO_BLOCK_QCOW_H
|
||||
|
||||
#include "crypto/blockpriv.h"
|
||||
|
||||
extern const QCryptoBlockDriver qcrypto_block_driver_qcow;
|
||||
|
||||
#endif /* QCRYPTO_BLOCK_QCOW_H__ */
|
||||
#endif /* QCRYPTO_BLOCK_QCOW_H */
|
||||
|
||||
+3
-3
@@ -18,8 +18,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef QCRYPTO_BLOCK_PRIV_H__
|
||||
#define QCRYPTO_BLOCK_PRIV_H__
|
||||
#ifndef QCRYPTO_BLOCKPRIV_H
|
||||
#define QCRYPTO_BLOCKPRIV_H
|
||||
|
||||
#include "crypto/block.h"
|
||||
|
||||
@@ -89,4 +89,4 @@ int qcrypto_block_encrypt_helper(QCryptoCipher *cipher,
|
||||
size_t len,
|
||||
Error **errp);
|
||||
|
||||
#endif /* QCRYPTO_BLOCK_PRIV_H__ */
|
||||
#endif /* QCRYPTO_BLOCKPRIV_H */
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include <gcrypt.h>
|
||||
#include "qapi/error.h"
|
||||
#include "crypto/hash.h"
|
||||
#include "gcrypt.h"
|
||||
|
||||
|
||||
static int qcrypto_hash_alg_map[QCRYPTO_HASH_ALG__MAX] = {
|
||||
|
||||
+3
-3
@@ -18,8 +18,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef QCRYPTO_IVGEN_PRIV_H__
|
||||
#define QCRYPTO_IVGEN_PRIV_H__
|
||||
#ifndef QCRYPTO_IVGENPRIV_H
|
||||
#define QCRYPTO_IVGENPRIV_H
|
||||
|
||||
#include "crypto/ivgen.h"
|
||||
|
||||
@@ -46,4 +46,4 @@ struct QCryptoIVGen {
|
||||
};
|
||||
|
||||
|
||||
#endif /* QCRYPTO_IVGEN_PRIV_H__ */
|
||||
#endif /* QCRYPTO_IVGENPRIV_H */
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include <gcrypt.h>
|
||||
#include "qapi/error.h"
|
||||
#include "crypto/pbkdf.h"
|
||||
#include "gcrypt.h"
|
||||
|
||||
bool qcrypto_pbkdf2_supports(QCryptoHashAlgorithm hash)
|
||||
{
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include <nettle/pbkdf2.h>
|
||||
#include "qapi/error.h"
|
||||
#include "crypto/pbkdf.h"
|
||||
#include "nettle/pbkdf2.h"
|
||||
|
||||
|
||||
bool qcrypto_pbkdf2_supports(QCryptoHashAlgorithm hash)
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef QCRYPTO_TLSCRED_PRIV_H__
|
||||
#define QCRYPTO_TLSCRED_PRIV_H__
|
||||
#ifndef QCRYPTO_TLSCREDSPRIV_H
|
||||
#define QCRYPTO_TLSCREDSPRIV_H
|
||||
|
||||
#include "crypto/tlscreds.h"
|
||||
|
||||
@@ -38,5 +38,4 @@ int qcrypto_tls_creds_get_dh_params_file(QCryptoTLSCreds *creds,
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* QCRYPTO_TLSCRED_PRIV_H__ */
|
||||
|
||||
#endif /* QCRYPTO_TLSCREDSPRIV_H */
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#include "qemu/config-file.h"
|
||||
#include "qemu/error-report.h"
|
||||
#if defined(CONFIG_USER_ONLY)
|
||||
#include <qemu.h>
|
||||
#include "qemu.h"
|
||||
#else /* !CONFIG_USER_ONLY */
|
||||
#include "hw/hw.h"
|
||||
#include "exec/memory.h"
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user