Since iasl cannot detect if an argument passed to a method is being
used as a reference, it is incorrect for the compiler to assume that
the argument is never used. Do not display this remark when ArgX is
being assigned a value.
Link: https://bugs.acpica.org/show_bug.cgi?id=1332
Suggested-by: Jeffrey Hugo <jhugo@codeaurora.org>
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
It's time to synchronize with Linux around trivial OS specific updates.
This patch collects all such changes. Lv Zheng.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
The previous fix only helps to restore release automation, but the
generated Linux upstream patch contains wrong formatted commit links. This
patch enhances the previous fix by splitting commit name from full commit
ID. Lv Zheng.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
iasl compiles Switch/Case statements into a single iteration While
loop with If/Else statements. This patch adds support to recognize
this generated compiler output and disassemble it back to the original
Switch statement.
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
This change fixes a problem with the recent support that enables
control method invocations as Target operands to many ASL
operators. Eliminates errors similar to:
Needed type [Reference], found [Processor]
This patch implements ACPI_DO_ONCE macros to avoid log floodings.
There could be OSPM gaps causing some ACPICA functionalities continously
reporting errors, filling up users' filesystem. Reported by Aaron Franke,
Fixed by Lv Zheng.
Link: https://bugzilla.kernel.org/show_bug.cgi?id=188331
Reported-by: Aaron Franke <arnfranke@yahoo.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
This adds the missing ACPI_PRINTF_LIKE attribute which allows compile time
format string checking (and will be used by the coming initify gcc plugin).
Additionally, this fixes the warnings exposed by the attribute.
Original by Emese Revfy and Kees Cook, Ported by Lv Zheng.
Signed-off-by: Emese Revfy <re.emese@gmail.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
This patch adds a demo EFI application for stdin/stdout testing. This
utility can be used to narrow down root causes of porting issues. Lv Zheng.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
This patch implements putchar()/getchar() invoked in AcpiOsGetLine() to
improve the portability.
No functional changes for Unix/Windows environments. Lv Zheng.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
This patch implements the native string APIs of strpbrk()/strtok().
Unit tests have been done to these two functions in unix environment and no
bugs have been found. Lv Zheng.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
This patch added two new Clibrary functions: fgetc()/fputc() for EFI
environment, they are implemented using fread()/fwrite().
Note in this patch, stdin is simply defined as NULL for EFI
environment. Its EFI support should be implemented by further patches.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Following error can be seen in linuxize process:
error: short SHA1 07630ad9 is ambiguous.
error: short SHA1 07630ad9 is ambiguous.
fatal: ambiguous argument '07630ad9': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
Fixing this by stop cutting commit IDs into 8-digits.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Build environment has changed because of new improvements:
1. New files are split
2. New inclusion order
This patch updates MSVC project files accordingly.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>