mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-26 21:13:48 +00:00
3337b29144
Cleaning up the following: ERROR: do not use assignment in if condition #281: FILE: drivers/xen/pvblock.c:260: + if ((err = xenbus_switch_state(XBT_NIL, nodename, CHECK:COMPARISON_TO_NULL: Comparison to NULL could be written "err" #52: FILE: drivers/xen/pvblock.c:298: + if (err != NULL) { ERROR: do not use assignment in if condition #176: FILE: drivers/xen/gnttab.c:103: + if ((flags = nflags) & (GTF_reading | GTF_writing)) { WARNING: Missing or malformed SPDX-License-Identifier tag in line 1 #329: FILE: include/xen/gnttab.h:1: +/* WARNING: Misplaced SPDX-License-Identifier tag - use line 1 instead #330: FILE: include/xen/gnttab.h:2: + * SPDX-License-Identifier: GPL-2.0 ERROR: do not use assignment in if condition #630: FILE: lib/sscanf.c:558: + if ((n = inr) < width) { Signed-off-by: Anastasiia Lukianenko <anastasiia_lukianenko@epam.com> Reviewed-by: Simon Glass <sjg@chromium.org>
23 lines
616 B
C
23 lines
616 B
C
/* SPDX-License-Identifier: GPL-2.0
|
|
*
|
|
* (C) 2006, Steven Smith <sos22@cam.ac.uk>
|
|
* (C) 2006, Grzegorz Milos <gm281@cam.ac.uk>
|
|
* (C) 2020, EPAM Systems Inc.
|
|
*/
|
|
#ifndef __GNTTAB_H__
|
|
#define __GNTTAB_H__
|
|
|
|
#include <xen/interface/grant_table.h>
|
|
|
|
void init_gnttab(void);
|
|
void fini_gnttab(void);
|
|
|
|
grant_ref_t gnttab_alloc_and_grant(void **map);
|
|
grant_ref_t gnttab_grant_access(domid_t domid, unsigned long frame,
|
|
int readonly);
|
|
int gnttab_end_access(grant_ref_t ref);
|
|
const char *gnttabop_error(int16_t status);
|
|
|
|
void get_gnttab_base(phys_addr_t *gnttab_base, phys_size_t *gnttab_sz);
|
|
|
|
#endif /* !__GNTTAB_H__ */
|