<commit_before>/*
 * Copyright (C) 2006 Intel Corp.
 *     <NAME> (<EMAIL>)
 *     <NAME> (<EMAIL>)
 */

#ifndef _AER_H_
#define _AER_H_

#if defined(CONFIG_PCIEAER)
/* pci-e port driver needs this function to enable aer */
extern int pci_enable_pcie_error_reporting(struct pci_dev *dev);
extern int pci_find_aer_capability(struct pci_dev *dev);
extern int pci_disable_pcie_error_reporting(struct pci_dev *dev);
extern int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev);
extern int pci_cleanup_aer_correct_error_status(struct pci_dev *dev);
#else
#define pci_enable_pcie_error_reporting(dev)		(-EINVAL)
#define pci_find_aer_capability(dev)			(0)
#define pci_disable_pcie_error_reporting(dev)		(-EINVAL)
#define pci_cleanup_aer_uncorrect_error_status(dev)	(-EINVAL)
#define pci_cleanup_aer_correct_error_status(dev)	(-EINVAL)
#endif

#endif //_AER_H_
<commit_msg>PCI AER: fix warnings when PCIEAER=n<commit_after>/*
 * Copyright (C) 2006 Intel Corp.
 *     <NAME> (<EMAIL>)
 *     <NAME> (<EMAIL>)
 */

#ifndef _AER_H_
#define _AER_H_

#if defined(CONFIG_PCIEAER)
/* pci-e port driver needs this function to enable aer */
extern int pci_enable_pcie_error_reporting(struct pci_dev *dev);
extern int pci_find_aer_capability(struct pci_dev *dev);
extern int pci_disable_pcie_error_reporting(struct pci_dev *dev);
extern int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev);
extern int pci_cleanup_aer_correct_error_status(struct pci_dev *dev);
#else
static inline int pci_enable_pcie_error_reporting(struct pci_dev *dev)
{
	return -EINVAL;
}
static inline int pci_find_aer_capability(struct pci_dev *dev)
{
	return 0;
}
static inline int pci_disable_pcie_error_reporting(struct pci_dev *dev)
{
	return -EINVAL;
}
static inline int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev)
{
	return -EINVAL;
}
static inline int pci_cleanup_aer_correct_error_status(struct pci_dev *dev)
{
	return -EINVAL;
}
#endif

#endif //_AER_H_

{'fraction_non_alphanumeric': 0.09467758444216991, 'fraction_numerical': 0.00511770726714432, 'mean_word_length': 6.696850393700787, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1832439', 'n_tokens_mistral': 744, 'n_tokens_neox': 747, 'n_words': 168}