new post: fix clear kernel compile

This commit is contained in:
dongdigua 2022-11-04 16:52:02 +08:00
parent 6f416ded9f
commit 91dc9ed39f
4 changed files with 45 additions and 14 deletions

View File

@ -2,9 +2,10 @@ var data = [
"富强民主文明和谐, 自由平等公正法治, 爱国敬业诚信友善", "富强民主文明和谐, 自由平等公正法治, 爱国敬业诚信友善",
"解放思想, 实事求是, 与时俱进", "解放思想, 实事求是, 与时俱进",
"绿水青山就是金山银山", "绿水青山就是金山银山",
"为中华之崛起而读书!",
"<a id=quote href=https://www.bilibili.com/video/BV1vW411g7tN>谁甘人生黯淡无光 谁愿做叶不争艳芳</a>", "<a id=quote href=https://www.bilibili.com/video/BV1vW411g7tN>谁甘人生黯淡无光 谁愿做叶不争艳芳</a>",
"fly high my friend, until we meet again", "Fly high my friend, until we meet again",
"The internet is FULL, go away!", "The internet is FULL, go away!",
"May the --force be with you", "May the --force be with you",
@ -16,7 +17,9 @@ var data = [
"大炮做好了不放珍珠是什么意思?", "大炮做好了不放珍珠是什么意思?",
"write terrible nonsensical code to\\n\nensure the Copilot doesn't take over as captain", "write terrible nonsensical code to\\n\nensure the Copilot doesn't take over as captain",
"Automagically", "Automagically",
"<a id=quote href=https://www.curseforge.com/minecraft/mc-mods/carpet>NOT VANILLA!</a>" "<a id=quote href=https://www.curseforge.com/minecraft/mc-mods/carpet>NOT VANILLA!</a>",
"Big Brother is Watching You",
"Deep Dark Fantacies",
]; ];
var index = Math.floor((Math.random() * data.length)); var index = Math.floor((Math.random() * data.length));

View File

@ -0,0 +1,35 @@
#+TITLE: Clear Kernel Build Error? Fix It
#+DATE: <2022-11-04 五>
#+DESCRIPTION: arch/x86/kernel/cpu/intel_epb.c:171:2: error: call to undeclared function 'sched _set_itmt_power_ratio'
when I compile clear kernel with LLVM enabled, I got this error:
#+BEGIN_SRC text
arch/x86/kernel/cpu/intel_epb.c:172:2: error: call to undeclared function 'sched_set_itmt_power_ratio';
ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
sched_set_itmt_power_ratio(256 - val * 2, cpu);
^
arch/x86/kernel/cpu/intel_epb.c:172:2: note: did you mean 'sched_set_itmt_core_prio'?
./arch/x86/include/asm/topology.h:189:20: note: 'sched_set_itmt_core_prio' declared here
static inline void sched_set_itmt_core_prio(int prio, int core_cpu)
^
1 error generated.
#+END_SRC
it's obvious that the =sched_set_itmt_power_ratio= function is undeclared
so I added the following and it is able to compile :)
#+BEGIN_SRC diff
--- /home/gentoo/linux/topology.h 2022-11-04 16:40:18.500113117 +0800
+++ arch/x86/include/asm/topology.h 2022-11-04 16:41:03.676782505 +0800
@@ -189,6 +189,9 @@
static inline void sched_set_itmt_core_prio(int prio, int core_cpu)
{
}
+static inline void sched_set_itmt_power_ratio(int prio, int core_cpu)
+{
+}
static inline int sched_set_itmt_support(void)
{
return 0;
#+END_SRC
End.

View File

@ -104,17 +104,8 @@ from ruanyifeng
**** [[https://xeiaso.net/blog/v-vaporware-2019-06-23][V for Vaporware]] **** [[https://xeiaso.net/blog/v-vaporware-2019-06-23][V for Vaporware]]
经典永流传~ 经典永流传~
*** [[https://xeiaso.net/blog/nim-and-tup-2015-06-10][Nim and Tup]] *** [[https://xeiaso.net/blog/nim-and-tup-2015-06-10][Nim and Tup]]
*** TODO [[https://xeiaso.net/blog/openssl-3.x-secvuln-incoming][You should prepare for the OpenSSL 3.x secvuln]] *** [[https://xeiaso.net/blog/openssl-3.x-secvuln-incoming][You should prepare for the OpenSSL 3.x secvuln]]
seems now have a [[https://mta.openssl.org/pipermail/openssl-announce/2022-October/000238.html][CRITICAL]] vuln, butt no CVE, **** [[https://mta.openssl.org/pipermail/openssl-announce/2022-November/000243.html][OpenSSL Security Advisory]]
patch will come out on 11.1
#+BEGIN_QUOTE
The details on this issue seem to be super embargoed at the moment, but here is what I can tell based on what has been done publicly:
- The Tor project has urged relay owners to upgrade as soon as possible.
- The [[https://lwn.net/Articles/912776/][release for Fedora 37 has been pushed back from October 25th to November 15th]].
- Popular tweeter @SwiftOnSecurity tweeted about hearsay about the severity of the issue and was deleted. No reason for the deletion
- Go programming language also has "PRIVATE security fixes to the standard library". which contains crypto/tls.
#+END_QUOTE
so let's wait ^_^
** [[https://lantian.pub/][蓝天]] ** [[https://lantian.pub/][蓝天]]
大佬! 大佬!
*** [[https://lantian.pub/article/chat/how-i-nuked-my-btrfs-partition.lantian/][我把硬盘换到了新电脑上,这是 Btrfs 上的数据发生的变化]] *** [[https://lantian.pub/article/chat/how-i-nuked-my-btrfs-partition.lantian/][我把硬盘换到了新电脑上,这是 Btrfs 上的数据发生的变化]]
@ -336,7 +327,6 @@ foreign or domestic, requires you to follow Snowden's example.
** [[https://ghinda.net/oxygenos/][oxygenos]] ** [[https://ghinda.net/oxygenos/][oxygenos]]
his final year project in high school, 2008 his final year project in high school, 2008
a webos using oxygen visual design a webos using oxygen visual design
** [[https://news.ycombinator.com/item?id=32012566][Hacker News: A better formulation of DRY(Don't Repeat Yourself) is SPOT (Single Point Of Truth)]]
** [[https://news-web.php.net/php.internals/70691][PHP function hashing mechanism was strlen()]] ** [[https://news-web.php.net/php.internals/70691][PHP function hashing mechanism was strlen()]]
** [[http://phrack.org][Phrack Magazine]] ** [[http://phrack.org][Phrack Magazine]]
worth reading worth reading
@ -347,3 +337,4 @@ worth reading
** [[https://tildeverse.org]] ** [[https://tildeverse.org]]
** [[http://decss.zoy.org][42 ways to distribute DeCSS]] ** [[http://decss.zoy.org][42 ways to distribute DeCSS]]
*** [[http://www.cs.cmu.edu/~dst/DeCSS/Kesden/index.html][Lecture 33: Content Scrambling System]] *** [[http://www.cs.cmu.edu/~dst/DeCSS/Kesden/index.html][Lecture 33: Content Scrambling System]]
** [[https://custodians.online/chinese.html][声援 Library Genesis 和 Sci-Hub]]

View File

@ -1,5 +1,6 @@
## Table of Contents ## Table of Contents
### Posts (sorted by time) ### Posts (sorted by time)
[Clear Kernel Compile Error? Fix It](clear_kernel_compile_fix)<br>
[Gentoo LLVM\_TARGETS not Working?](gentoo_llvm_targets)<br> [Gentoo LLVM\_TARGETS not Working?](gentoo_llvm_targets)<br>
[CentOS/Fedora 不同的配置默认都安装了什么软件](anaconda_kickstarts)<br> [CentOS/Fedora 不同的配置默认都安装了什么软件](anaconda_kickstarts)<br>
[build a nixos live image](nixos)<br> [build a nixos live image](nixos)<br>
@ -15,6 +16,7 @@
--- ---
### Long Term Update ### Long Term Update
[大概是语文知识整理](digua-YW)<br>
[Gopher/Gemini reactions](re.gmi.txt)<br> [Gopher/Gemini reactions](re.gmi.txt)<br>
[Gopher/Gemini collections, a quiet web](gopher_collections.gmi.txt)<br> [Gopher/Gemini collections, a quiet web](gopher_collections.gmi.txt)<br>
[折腾 sway 的一些记录(problem&solution)](wayland)<br> [折腾 sway 的一些记录(problem&solution)](wayland)<br>