Skip to content

Instantly share code, notes, and snippets.

@dileks
dileks / lll-project (llvm-linux with clang)
Created April 12, 2011 10:08
[PATCH] kernel: Fix typo introduced by commit 7121014768c6bb5ffca77e9666182e7a546a1c82
diff --git a/arch/x86/kernel/acpi/realmode/Makefile b/arch/x86/kernel/acpi/realmode/Makefile
index 6aa8289..2acac64 100644
--- a/arch/x86/kernel/acpi/realmode/Makefile
+++ b/arch/x86/kernel/acpi/realmode/Makefile
@@ -29,7 +29,7 @@ bootsrc := $(src)/../../../boot
# that way we can complain to the user if the CPU is insufficient.
# Compile with _SETUP since this is similar to the boot-time setup code.
KBUILD_CFLAGS := $(LINUXINCLUDE) -g -Os -D_SETUP -D_WAKEUP -D__KERNEL__ \
- -i$(srctree)/$(bootsrc) \
+ -I$(srctree)/$(bootsrc) \
@dileks
dileks / lll-project (llvm-linux with clang)
Created April 12, 2011 10:12
[PATCH] Drop -freg-struct-return argument (unsupported by Clang)
diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index 637f61a..613c0a3 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -25,7 +25,8 @@ ifeq ($(CONFIG_X86_32),y)
LDFLAGS_vmlinux := --emit-relocs
endif
- KBUILD_CFLAGS += -msoft-float -mregparm=3 -freg-struct-return
+ # Drop -freg-struct-return argument (unsupported by Clang)
@dileks
dileks / lll-project (llvm-linux with clang)
Created April 13, 2011 12:43
ptrace-fix (was in kernel GIT repo, but removed)
From f1bafcca7344c48373b8a2c4efe88ae9cc893eea Mon Sep 17 00:00:00 2001
From: Sedat Dilek <sedat.dilek@gmail.com>
Date: Mon, 11 Apr 2011 23:56:10 +0200
Subject: [PATCH 1/2] x86, clang: Remove asmregparm from
syscall_trace_{enter,leave}()
@dileks
dileks / lll-project (llvm-linux with clang)
Created April 13, 2011 13:10
Make -freg-struct-return argument a call cc-option
diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index 637f61a..df7d9f5 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -25,7 +25,8 @@ ifeq ($(CONFIG_X86_32),y)
LDFLAGS_vmlinux := --emit-relocs
endif
- KBUILD_CFLAGS += -msoft-float -mregparm=3 -freg-struct-return
+ KBUILD_CFLAGS += -msoft-float -mregparm=3 \
@dileks
dileks / lll-project (llvm-linux with clang)
Created April 13, 2011 14:38
SAMPLE: $HOME/.gitconfig
[user]
name = myName
email = myEmail
[format]
subjectprefix = PATCH
signoff = true
[sendemail]
smtpserver = smtp.gmail.com
@dileks
dileks / lll-project (llvm-linux with clang)
Created April 13, 2011 15:24
Proposal patch by pipacs
BROKEN here:
...
LD .tmp_vmlinux1
fs/built-in.o: In function `xfs_qm_dqtobp':
fs/xfs/quota/xfs_dquot.c:(.text+0xb37a4): undefined reference to `__udivdi3'
diff --git a/fs/xfs/quota/xfs_dquot.c b/fs/xfs/quota/xfs_dquot.c
index d22aa31..fccd3d7 100644
--- a/fs/xfs/quota/xfs_dquot.c
+++ b/fs/xfs/quota/xfs_dquot.c
...
LD [M] sound/pci/hda/snd-hda-codec-via.ko
LD [M] sound/pci/hda/snd-hda-codec.ko
LD [M] sound/pci/hda/snd-hda-intel.ko
LD [M] sound/soundcore.ko
IHEX firmware/radeon/R100_cp.bin
IHEX firmware/radeon/R200_cp.bin
IHEX firmware/radeon/R300_cp.bin
IHEX firmware/radeon/R420_cp.bin
IHEX firmware/radeon/RS690_cp.bin
@dileks
dileks / lll-project (llvm-linux with clang)
Created April 13, 2011 19:08
diff edwin 64/32 kernel-config
$ cat kernel-config.diff
--- kernel-config_edwin_amd64 2011-04-13 16:11:48.942794051 +0200
+++ kernel-config_edwin_i386 2011-04-13 16:18:03.442085956 +0200
@@ -1,15 +1,15 @@
#
# Automatically generated make config: don't edit
-# Linux/
@dileks
dileks / lll-project (llvm-linux with clang)
Created April 14, 2011 15:08
kernel: Updating 7121014..7e67ab1
Updating 7121014..7e67ab1
Fast-forward
arch/x86/Makefile | 3 +-
arch/x86/include/asm/bitops.h | 4 +-
arch/x86/kernel/acpi/realmode/Makefile | 2 +-
arch/x86/kernel/ptrace.c | 4 +-
drivers/gpu/drm/i915/i915_drv.h | 2 +-
@dileks
dileks / lll-project (llvm-linux with clang)
Created April 14, 2011 15:16
GIT branches and commits
sd@tbox:~/src/lll-project/kernel$ git branch -r
origin/2.6.38.2
origin/2.6.38.2-pax
origin/HEAD -> origin/2.6.38.2
sd@tbox:~/src/lll-project/kernel$ git branch
2.6.38.2
* 2.6.38.2-pax
sd@tbox:~/src/lll-project/kernel$ git format-patch origin/HEAD..HEAD
0001-Applies-pax_kernel-pipacs-2.6.38.2-0.patch.patch
0002-Fixes-the-crypto-stdrng-test.patch