diff --git a/clear_kernel_compile_fix.html b/clear_kernel_compile_fix.html new file mode 100644 index 0000000..484c08c --- /dev/null +++ b/clear_kernel_compile_fix.html @@ -0,0 +1,252 @@ + + + + + + + +Clear Kernel Build Error? Fix It + + + + + + + +
+ UP + | + HOME +
+

Clear Kernel Build Error? Fix It

+

+when I compile clear kernel with LLVM enabled, I got this error:
+

+
+
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.
+
+
+ +

+it's obvious that the sched_set_itmt_power_ratio function is undeclared
+so I added the following and it is able to compile :)
+

+
+
--- /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.
+

+
+
+

Date: 2022-11-04 五 00:00

+

Author: dongdigua

+

Created: 2022-11-04 五 16:51

+
+ + diff --git a/internet_collections.html b/internet_collections.html index 2d8eae8..e34277e 100644 --- a/internet_collections.html +++ b/internet_collections.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Internet Collections @@ -533,27 +533,12 @@ from ruanyifeng

1.36.2. Nim and Tup

-

1.36.3. TODO You should prepare for the OpenSSL 3.x secvuln

+

1.36.3. You should prepare for the OpenSSL 3.x secvuln

-

-seems now have a CRITICAL vuln, butt no CVE,
-patch will come out on 11.1
-

-
-

-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 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.
  • -
-
-

-so let's wait ^_^
-

+
    +
  1. OpenSSL Security Advisory
  2. +
@@ -1209,50 +1194,50 @@ a webos using oxygen visual design
-

4.10. Hacker News: A better formulation of DRY(Don't Repeat Yourself) is SPOT (Single Point Of Truth)

+

4.10. PHP function hashing mechanism was strlen()

-

4.11. PHP function hashing mechanism was strlen()

-
-
-

4.12. Phrack Magazine

-
+

4.11. Phrack Magazine

+

worth reading

-

4.13. gccemacs

-
+

4.12. gccemacs

+
-

4.13.1. slides_els2020

+

4.12.1. slides_els2020

Date: 2022-06-05 日 00:00

Author: dongdigua

-

Created: 2022-10-31 一 10:21

+

Created: 2022-11-04 五 17:54

diff --git a/js/random-quote.js b/js/random-quote.js index 8d1c551..85d9d81 100644 --- a/js/random-quote.js +++ b/js/random-quote.js @@ -2,9 +2,10 @@ var data = [ "富强民主文明和谐, 自由平等公正法治, 爱国敬业诚信友善", "解放思想, 实事求是, 与时俱进", "绿水青山就是金山银山", + "为中华之崛起而读书!", "谁甘人生黯淡无光 谁愿做叶不争艳芳", - "fly high my friend, until we meet again", + "Fly high my friend, until we meet again", "The internet is FULL, go away!", "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", "Automagically", - "NOT VANILLA!" + "NOT VANILLA!", + "Big Brother is Watching You", + "Deep Dark Fantacies", ]; var index = Math.floor((Math.random() * data.length)); diff --git a/org/clear_kernel_compile_fix.org b/org/clear_kernel_compile_fix.org new file mode 100644 index 0000000..e338b93 --- /dev/null +++ b/org/clear_kernel_compile_fix.org @@ -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. diff --git a/org/internet_collections.org b/org/internet_collections.org index 659ab27..9b3b993 100644 --- a/org/internet_collections.org +++ b/org/internet_collections.org @@ -104,17 +104,8 @@ from ruanyifeng **** [[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]] -*** TODO [[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, -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://xeiaso.net/blog/openssl-3.x-secvuln-incoming][You should prepare for the OpenSSL 3.x secvuln]] +**** [[https://mta.openssl.org/pipermail/openssl-announce/2022-November/000243.html][OpenSSL Security Advisory]] ** [[https://lantian.pub/][蓝天]] 大佬! *** [[https://lantian.pub/article/chat/how-i-nuked-my-btrfs-partition.lantian/][我把硬盘换到了新电脑上,这是 Btrfs 上的数据发生的变化]] @@ -339,7 +330,6 @@ foreign or domestic, requires you to follow Snowden's example. ** [[https://ghinda.net/oxygenos/][oxygenos]] his final year project in high school, 2008 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()]] ** [[http://phrack.org][Phrack Magazine]] worth reading @@ -350,3 +340,4 @@ worth reading ** [[https://tildeverse.org]] ** [[http://decss.zoy.org][42 ways to distribute DeCSS]] *** [[http://www.cs.cmu.edu/~dst/DeCSS/Kesden/index.html][Lecture 33: Content Scrambling System]] +** [[https://custodians.online/chinese.html][声援 Library Genesis 和 Sci-Hub]] diff --git a/posts.md b/posts.md index 6b64d33..c5613d5 100644 --- a/posts.md +++ b/posts.md @@ -1,5 +1,6 @@ ## Table of Contents ### Posts (sorted by time) +[Clear Kernel Compile Error? Fix It](clear_kernel_compile_fix)
[Gentoo LLVM\_TARGETS not Working?](gentoo_llvm_targets)
[CentOS/Fedora 不同的配置默认都安装了什么软件](anaconda_kickstarts)
[build a nixos live image](nixos)
@@ -15,6 +16,7 @@ --- ### Long Term Update +[大概是语文知识整理](digua-YW)
[Gopher/Gemini reactions](re.gmi.txt)
[Gopher/Gemini collections, a quiet web](gopher_collections.gmi.txt)
[折腾 sway 的一些记录(problem&solution)](wayland)