Re: [uml-devel] State of gdkfb ?

2005-01-28 Thread Geert Uytterhoeven
t file systems for our embedded Linux distributions like > OpenZaurus and familiar Linux. I didn't continue to work on it since quite a while. However, I did try Gerd Knorr's x11fb and it worked much better than mine! Gr{oetje,eeting}s, Geer

Re: Sky, comma, falling. (Was Re: [uml-devel] Xen going to be in Kernel 2.6 soon?)

2005-02-07 Thread Geert Uytterhoeven
:-( That's true for _all_ architectures these days[*], not even for UML. Gr{oetje,eeting}s, Geert [*] i386 lost its privilege of never being broken since Linus got a G5 ;-) -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 --

Re: [uml-devel] Why is UML built static all the time?

2005-02-08 Thread Geert Uytterhoeven
ting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [EMAIL PROTECTED] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer&qu

Re: [uml-devel] host cpu frequency scaling and guest bogomips

2005-07-12 Thread Geert Uytterhoeven
uot; when host is at 600, > if UML was started at 1800, might last 30 seconds more or less... I don't think user space sleep uses the kernel's udelay() or mdelay()... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Li

Re: [uml-devel] a question about sigsetjmp() in copy_from/to_user()

2005-09-30 Thread Geert Uytterhoeven
is not a system call? (getpid() itself takes more than 1000 > cycles) Indeed, setjmp() is not a system call. It just saves the registers to the passed env structure. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond

Re: [uml-devel] Making UML Single Threader

2005-11-14 Thread Geert Uytterhoeven
ounts as sort > of documented. ) Yep, as long as interrupts are alife, networking keeps on working. That's also the reason why sometimes you can still ping crashed boxes: as long as interrupts are working, ping will work. IIRC I read about the above scenario as an actually recommendation f

Re: [uml-devel] [RFC][PATCH] include /usr/lib/uml in PATH

2006-04-02 Thread Geert Uytterhoeven
n your path, which is probably not what you want (Never bitten by people leaving evil `ls' variants in /tmp?). Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [EMAIL PROTECTED] In personal conversa

Re: [uml-devel] virtual framebuffer device visible on host

2006-09-06 Thread Geert Uytterhoeven
is using VFB? > Surely an X window is rich enough to provide all the primitives that a > framebuffer device provides? It's been done before (but not yet in mainline), cfr. http://www.gatago.com/linux/kernel/6105868.html. Gr{oetje,eeting}s,

Re: [uml-devel] [PATCH 4/4] irq: Remove irq_chip->release()

2012-04-18 Thread Geert Uytterhoeven
je,eeting}s,                         Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programm

Re: [uml-devel] um: switch cow_user.h to htobe{32,64}/betoh{32,64}

2012-04-18 Thread Geert Uytterhoeven
ion of function 'be32toh' arch/um/drivers/cow_user.c:330: error: implicit declaration of function 'be64toh' make[2]: *** [arch/um/drivers/cow_user.o] Error 1 Gr{oetje,eeting}s,                         Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...

Re: [uml-devel] ubd option parsing problem when using cow filesystems in kernel 3.4

2012-06-21 Thread Geert Uytterhoeven
after your message >> ...:-) > > E.g: > $ git show 026cee00 > sucker.diff > $ patch -p1 -R < sucker.diff git revert 026cee00 or git revert -n 026cee00 if you don't want to commit the revert. Gr{oetje,eeting}s,                         Geert -- Geert

[uml-devel] Regression: Spurious "^A" in UML output

2012-08-16 Thread Geert Uytterhoeven
uot; /* action must be taken immediately */ +#define KERN_CRIT "\0012" /* critical conditions */ +#define KERN_ERR "\0013" /* error conditions */ +#define KERN_WARNING "\0014" /* warning conditions */ +#define KERN_NOTICE&

Re: [uml-devel] Regression: Spurious "^A" in UML output

2012-08-16 Thread Geert Uytterhoeven
Hi Joe, On Thu, Aug 16, 2012 at 3:50 PM, Joe Perches wrote: > On Thu, 2012-08-16 at 15:17 +0200, Geert Uytterhoeven wrote: >> In v3.6-rc1 UML, I see spurious "^A" (ASCII 1, SOH) characters in some kernel >> messages: >> >> Calibrating delay loop... 4640.

Re: [uml-devel] Regression: Spurious "^A" in UML output

2012-08-16 Thread Geert Uytterhoeven
On Thu, Aug 16, 2012 at 5:03 PM, Geert Uytterhoeven wrote: > However, now include/linux/kern_levels.h is fairly self-container, perhaps > we should just include that file directly instead of, and get rid of all > DEFINE_STR() users. I sent out a patch to do that. Gr{oetje

[uml-devel] [PATCH/RFC] um: Preinclude include/linux/kern_levels.h

2012-08-16 Thread Geert Uytterhoeven
userspace separation, as include/linux/kern_levels.h is self-contained and doesn't expose any other kernel internals. - Remove the now unused STR() and DEFINE_STR() macros. Signed-off-by: Geert Uytterhoeven --- We may convert all UM_KERN_* users to KERN_* and drop the extra defines? --- arch/um

Re: [uml-devel] Emulate I2C subsystem/slaves

2012-09-09 Thread Geert Uytterhoeven
y to push this mainline via the i2c subsystem? As long as there are no "real" i2c drivers for UML, but only dummy/development ones, that is up to the i2c maintainer (in CC). Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux

Re: [uml-devel] [PATCH/RFC] um: Preinclude include/linux/kern_levels.h

2012-09-09 Thread Geert Uytterhoeven
Ping? On Thu, Aug 16, 2012 at 8:15 PM, Geert Uytterhoeven wrote: > The userspace part of UML uses the asm-offsets.h generator mechanism to > create definitions for UM_KERN_ that match the in-kernel > KERN_ constant definitions. > > As of commit 04d2c8c83d0e3ac5f78aeede51babb3236

Re: [uml-devel] Emulate I2C subsystem/slaves

2012-09-09 Thread Geert Uytterhoeven
M" doesn't make much sense for e.g. "depends on PPC", as we know PPC always has HAS_IOMEM. Only s390, PCI-less tile, and UML don't have HAS_IOMEM. Doing it in the submenu is indeed better. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There

Re: [uml-devel] Emulate I2C subsystem/slaves

2012-09-09 Thread Geert Uytterhoeven
d on s390. s390 has neither of HAS_IOMEM and GENERIC_IO, so it won't break their build. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hack

[uml-devel] [PATCH -next] [media] altera-stapl should depend on HAS_IOPORT

2012-09-16 Thread Geert Uytterhoeven
e1b2a72184cba5415bf326c2 ("i2c: Make I2C available on UML"), this was hidden because I2C depended on HAS_IOMEM, which is a superset of HAS_IOPORT. Signed-off-by: Geert Uytterhoeven -- http://kisskb.ellerman.id.au/kisskb/buildresult/7194502/ http://kisskb.ellerman.id.au/kisskb/buildresu

Re: [uml-devel] [PATCH -next] [media] altera-stapl should depend on HAS_IOPORT

2012-09-16 Thread Geert Uytterhoeven
On Sun, Sep 16, 2012 at 11:21 AM, Geert Uytterhoeven wrote: > On s390: > > drivers/misc/altera-stapl/altera-lpt.c: In function 'byteblaster_write': > drivers/misc/altera-stapl/altera-lpt.c:34:2: error: implicit declaration of > function 'outb' [-Werror=impli

[uml-devel] [PATCH/resend/bypass] um: Preinclude include/linux/kern_levels.h

2012-09-25 Thread Geert Uytterhoeven
userspace separation, as include/linux/kern_levels.h is self-contained and doesn't expose any other kernel internals. - Remove the now unused STR() and DEFINE_STR() macros. Signed-off-by: Geert Uytterhoeven --- This fixes a regression from the KERN_ conversion arch/um/include/shared/common-

Re: [uml-devel] [PATCH/resend/bypass] um: Preinclude include/linux/kern_levels.h

2012-09-25 Thread Geert Uytterhoeven
. What we can do is copy > the damn header into include/generated and #include > from user.h. And kill UM_KERN_... stuff. Objections? My first submission had "We may convert all UM_KERN_* users to KERN_* and drop the extra defines?" as a suggestion, but so far I haven

[uml-devel] [PATCH 4/4] um: Remove obsolete UM_ prefixed printk() level specifiers

2012-09-29 Thread Geert Uytterhoeven
All user parts of UML are using the non-prefixed printk() level specifiers Signed-off-by: Geert Uytterhoeven --- arch/um/include/shared/user.h | 11 --- 1 files changed, 0 insertions(+), 11 deletions(-) diff --git a/arch/um/include/shared/user.h b/arch/um/include/shared/user.h index

[uml-devel] [PATCH 3/4] arch/x86/um: Drop UM_ prefix from printk() level specifiers

2012-09-29 Thread Geert Uytterhoeven
Since commit 9429ec96c2718c0d1e3317cf60a87a0405223814 ("um: Preinclude include/linux/kern_levels.h") the non-prefixed printk() level specifiers are usable for the user parts of UML. Signed-off-by: Geert Uytterhoeven --- arch/x86/um/bugs_32.c| 14 +++--- arch

[uml-devel] [PATCH 1/4] arch/um/drivers: Drop UM_ prefix from printk() level specifiers

2012-09-29 Thread Geert Uytterhoeven
Since commit 9429ec96c2718c0d1e3317cf60a87a0405223814 ("um: Preinclude include/linux/kern_levels.h") the non-prefixed printk() level specifiers are usable for the user parts of UML. Signed-off-by: Geert Uytterhoeven --- arch/um/drivers/chan_user.c | 28 ++--

[uml-devel] [PATCH 2/4] arch/um/os-Linux: Drop UM_ prefix from printk() level specifiers

2012-09-29 Thread Geert Uytterhoeven
Since commit 9429ec96c2718c0d1e3317cf60a87a0405223814 ("um: Preinclude include/linux/kern_levels.h") the non-prefixed printk() level specifiers are usable for the user parts of UML. Signed-off-by: Geert Uytterhoeven --- arch/um/os-Linux/aio.c | 26 +-

[uml-devel] [PATCH] um: Remove obsolete UM_* definitions

2012-09-29 Thread Geert Uytterhoeven
in commit e6a2d1f7024f93e4622cd7ba633666a63ccce49e *"uml: clean up sig_handler_common_skas"), Signed-off-by: Geert Uytterhoeven --- arch/um/include/shared/common-offsets.h |6 -- 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/arch/um/include/shared/common-offsets.h b/ar

Re: [uml-devel] [PATCH 2/4] arch/um/os-Linux: Drop UM_ prefix from printk() level specifiers

2012-09-29 Thread Geert Uytterhoeven
on, extracting the pr_ definitions from include/linux/printk.h to a new header file, and preincluding that one for the user part of UML, too. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conve

Re: [uml-devel] [PATCH 2/4] arch/um/os-Linux: Drop UM_ prefix from printk() level specifiers

2012-09-29 Thread Geert Uytterhoeven
On Sat, Sep 29, 2012 at 10:43 PM, Al Viro wrote: > On Sat, Sep 29, 2012 at 10:27:44PM +0200, Geert Uytterhoeven wrote: >> On Sat, Sep 29, 2012 at 10:10 PM, Joe Perches wrote: >> >> @@ -88,7 +88,7 @@ static int do_aio(aio_context_t ctx, enum aio_type >>

Re: [uml-devel] linux-3.6.x ARCH=um will not build

2012-10-13 Thread Geert Uytterhoeven
be a fault with my environment; but then I don't >> understand why it obviously works for others. >> >> arch/um/os-Linux/signal.c:18:8 >> arch/um/include/shared/as-layout.h:64:15 > > Already known and fixed. :) > http://www.spinics.net/lists/mm-commits/msg917

Re: [uml-devel] Build regressions/improvements in v3.10-rc1 (um)

2013-05-12 Thread Geert Uytterhoeven
On Sun, 12 May 2013, Geert Uytterhoeven wrote: > However, the full list of errors isn't that unmanageable, so I'm following > up with a digested list... arch/um/drivers/cow_user.c:216: error: implicit declaration of function 'htobe32': 1 errors in 1 logs arch/um/dri

Re: [uml-devel] Build regressions/improvements in v3.10-rc1 (um)

2013-05-13 Thread Geert Uytterhoeven
On Sun, May 12, 2013 at 11:17 PM, richard -rw- weinberger wrote: > On Sun, May 12, 2013 at 10:47 PM, Geert Uytterhoeven > wrote: >> On Sun, 12 May 2013, Geert Uytterhoeven wrote: >>> However, the full list of errors isn't that unmanageable, so I'm follow

Re: [uml-devel] Build regressions/improvements in v3.10-rc1 (um)

2013-05-13 Thread Geert Uytterhoeven
Ubuntu 10.04, both /usr/include/endian.h and /usr/include/sys/ptrace.h are provided by libc6-dev. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a

Re: [uml-devel] Build regressions/improvements in v3.10-rc1 (um)

2013-05-13 Thread Geert Uytterhoeven
man on planet earth who tries do build > UML/x86 on powerpc. :D Well, it used to work: http://kisskb.ellerman.id.au/kisskb/target/2974/ Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conver

Re: [uml-devel] Build regressions/improvements in v3.10-rc1 (um)

2013-05-14 Thread Geert Uytterhoeven
Signed-off-by: Richard Weinberger Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalis

Re: [uml-devel] [PATCH] arch: configuration, deleting 'CONFIG_BUG' since always need it.

2013-05-23 Thread Geert Uytterhoeven
#x27;s about reducing memory size on devices where you can't show bug or warning messages. > So need get rid of 'CONFIG_BUG', and let it always enabled everywhere. So please keep it. Thanks! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There'

Re: [uml-devel] [PATCH] arch: configuration, deleting 'CONFIG_BUG' since always need it.

2013-05-23 Thread Geert Uytterhoeven
On Thu, May 23, 2013 at 11:05 AM, Russell King - ARM Linux wrote: > On Thu, May 23, 2013 at 10:40:29AM +0200, Geert Uytterhoeven wrote: >> On Thu, May 23, 2013 at 9:57 AM, Chen Gang wrote: >> > -config BUG >> > - bool "BUG() support" if EXPERT >

Re: [uml-devel] [PATCH] arch: configuration, deleting 'CONFIG_BUG' since always need it.

2013-05-23 Thread Geert Uytterhoeven
at isn't is that > the data returned is likely to be random trash. > > That's _quite_ different from the CPU starting to execute the contents > of a literal data pool. I agree it's best to e.g. trap and reboot. Gr{oetje,eeting}s, Geert -- Geert Uytt

Re: [uml-devel] [PATCH] clean up scary strncpy(dst, src, strlen(src)) uses

2013-06-06 Thread Geert Uytterhoeven
iki/C_Programming/C_Reference/nonstandard/strlcpy#Criticism Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talki

Re: [uml-devel] [PATCH] include/asm-generic/io.h: add 'UML' case just like 'no-MMU'

2013-06-26 Thread Geert Uytterhoeven
etter fix > drivers/ptp/ptp_pch.c dependencies. > _If_ ptp_pch.c really works without real io memory, you can look what I did > in my GENERIC_IO series[1] > to make nandsim work on UML. Maybe this helps. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- T

Re: [uml-devel] [PATCH] include/asm-generic/io.h: add 'UML' case just like 'no-MMU'

2013-06-26 Thread Geert Uytterhoeven
dummy ioremap() which return NULL ... (also need consider more details). > > Because we don't even want to build these drivers and not make them fail while > executing io memory related functions. Indeed, it doesn't make sense to build drivers that cannot work. And they may fail

Re: [uml-devel] [PATCH] include/asm-generic/io.h: add dummy fuctions to support 'COMPILE_TEST' in 'asm-generic'.

2013-07-02 Thread Geert Uytterhoeven
On Tue, Jul 2, 2013 at 10:00 AM, Chen Gang wrote: > On 07/02/2013 03:19 PM, Geert Uytterhoeven wrote: >> On Tue, Jul 2, 2013 at 4:13 AM, Chen Gang wrote: >>> > 'asm-generic' need provide necessary configuration checking, if can't >>> > pas

Re: [uml-devel] [PATCH] include/asm-generic/io.h: add dummy fuctions to support 'COMPILE_TEST' in 'asm-generic'.

2013-07-02 Thread Geert Uytterhoeven
m-generic' need > let it pass configuration checking, and provide related dummy contents > for it. > > Part of 'COMPLE_TEST' help contents in "init/Kconfig": > > "...Despite they cannot be loaded there (or even when they load they cannot > be used

Re: [uml-devel] [PATCH] include/asm-generic/io.h: add dummy fuctions to support 'COMPILE_TEST' in 'asm-generic'.

2013-07-04 Thread Geert Uytterhoeven
issue. At least now, it >> seems only 'asm-generic' can be qualified to play this unlucky role. > > You seem to not understand what asm-generic is, or does, or I still do > not understand what you are proposing. > > Please send a patch showing what you are trying to do

Re: [uml-devel] Using UML in libguestfs

2013-08-11 Thread Geert Uytterhoeven
that you need sufficient privileges. With UML, all you need is to be able to compile and run your own executables. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical pe

Re: [uml-devel] Using UML in libguestfs

2013-08-13 Thread Geert Uytterhoeven
On Sun, Aug 11, 2013 at 9:27 PM, Richard W.M. Jones wrote: > On Sun, Aug 11, 2013 at 09:05:08PM +0200, Geert Uytterhoeven wrote: >> On Fri, Aug 9, 2013 at 10:43 PM, Richard W.M. Jones >> wrote: >> > * UML is pretty fast! It's certainly faster (by a factor of

Re: [uml-devel] [PATCH] um: ubd: Add REQ_FLUSH suppport

2013-08-19 Thread Geert Uytterhoeven
me the block layer sends a REQ_FLUSH we fsync() now >> our backing file to guarantee data consistency. > > This fixes the sync problem I saw before. So: What's the impact on your performance figures? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven

Re: [uml-devel] [RFC] Get rid of SUBARCH

2013-08-21 Thread Geert Uytterhoeven
nux and bfin-uclinux. > [PATCH 1/8] um: Create defconfigs for i386 and x86_64 > [PATCH 3/8] um: Remove old defconfig Why not merge these two, so git copy/rename detection will show only the real changes? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There&#x

Re: [uml-devel] [RFC] Get rid of SUBARCH

2013-08-22 Thread Geert Uytterhoeven
> Today you can specify CROSS_COMPILE in Kconfig. > With this we should be able to remove these hacks. The correct CROSS_COMPILE value depends on the host environment, not on the target configuration. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of

Re: [uml-devel] [PATCH 2/8] um: Do not use SUBARCH

2013-09-26 Thread Geert Uytterhoeven
; > the user should expect a 64-bit build, and not an i386 build as you > say. Both my patches are correct, and the "regression" that you > pointed out is a red herring. Sorry for chiming in, but... what about cross compiling? SUBARCH=x86 should give you a 32-bit ia32 kernel, ri

Re: [uml-devel] BUG: soft lockup for a user mode linux image

2013-10-06 Thread Geert Uytterhoeven
> #9 0x08411c64 in balance_dirty_pages (pages_dirtied=9, mapping= out>) at mm/page-writeback.c:1471 But here pages_dirtied is only 9?? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal con

Re: [uml-devel] BUG: soft lockup for a user mode linux image

2013-10-06 Thread Geert Uytterhoeven
On Sun, Oct 6, 2013 at 10:08 PM, Toralf Förster wrote: > On 10/06/2013 08:38 PM, Geert Uytterhoeven wrote: >> On Sun, Oct 6, 2013 at 4:17 PM, Toralf Förster >> wrote: >>> The UML stopped here : >>> ... >>> if (unlikely(task_ratelimit =

Re: [uml-devel] BUG: soft lockup for a user mode linux image

2013-10-08 Thread Geert Uytterhoeven
pages_dirtied > 1); BUG_ON(pages_dirtied > 1000); BUG_ON(pages_dirtied > 100); Probably 1 million is already too much for normal operation? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge.

Re: [uml-devel] BUG: soft lockup for a user mode linux image

2013-10-10 Thread Geert Uytterhoeven
On Thu, Oct 10, 2013 at 4:46 AM, Fengguang Wu wrote: > On Wed, Oct 09, 2013 at 11:47:33PM +0200, Jan Kara wrote: >> On Wed 09-10-13 20:43:50, Richard Weinberger wrote: >> > Am 09.10.2013 19:26, schrieb Toralf Förster: >> > > On 10/08/2013 10:07 PM, Geert Uytterhoeve

Re: [uml-devel] RFC: Shouldn't "./linux --version" always print the the git commit id

2013-10-25 Thread Geert Uytterhoeven
Hi Toralf, On Fri, Oct 25, 2013 at 10:11 PM, Toralf Förster wrote: > Just realized today the fact, that v3.11 reports just the tag and not > "tag-g" You don't have CONFIG_LOCALVERSION_AUTO=y in your .config? Gr{oetje,eeting}s, Geert -- Geert Uy

Re: [uml-devel] RFC: Shouldn't "./linux --version" always print the the git commit id

2013-10-26 Thread Geert Uytterhoeven
On Fri, Oct 25, 2013 at 11:19 PM, Toralf Förster wrote: > On 10/25/2013 10:18 PM, Geert Uytterhoeven wrote: >> On Fri, Oct 25, 2013 at 10:11 PM, Toralf Förster >> wrote: >>> Just realized today the fact, that v3.11 reports just the tag and not >>> "tag-g&

Re: [uml-devel] [PATCH 17/17] um: Remove unused declarations from

2013-11-12 Thread Geert Uytterhoeven
Hi Richard, On Tue, Nov 12, 2013 at 8:51 PM, Richard Weinberger wrote: > Am 12.11.2013 20:42, schrieb Geert Uytterhoeven: >> _end is used, but it's already provided by , so use that. >> >> Signed-off-by: Geert Uytterhoeven >> Cc: Richard Weinberg

[uml-devel] [PATCH 17/17] um: Remove unused declarations from

2013-11-12 Thread Geert Uytterhoeven
_end is used, but it's already provided by , so use that. Signed-off-by: Geert Uytterhoeven Cc: Richard Weinberger Cc: user-mode-linux-devel@lists.sourceforge.net --- arch/um/include/shared/as-layout.h |3 --- arch/um/kernel/um_arch.c |1 + 2 files changed, 1 insertion(

Re: [uml-devel] [PATCH] um, x86: Fix vDSO build

2014-01-12 Thread Geert Uytterhoeven
86_64? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say

Re: [uml-devel] [PATCH] um: Include generic barrier.h

2014-01-15 Thread Geert Uytterhoeven
eting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something l

Re: [uml-devel] [PATCH 2/2] clocksource: Make clocksource register functions void

2014-01-23 Thread Geert Uytterhoeven
ng on void in functions returning void doesn't cause compiler warnings. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call myself a hacke

Re: [uml-devel] Build regressions/improvements in v3.15-rc3

2014-05-02 Thread Geert Uytterhoeven
On Fri, May 2, 2014 at 5:41 PM, Geert Uytterhoeven wrote: > JFYI, when comparing v3.15-rc3[1] to v3.15-rc2[3], the summaries are: > - build errors: +5/-9 + /scratch/kisskb/src/arch/um/os-Linux/mem.c: error: 'TMPFS_MAGIC' undeclared (first use in this function): => 31

Re: [uml-devel] [PATCH 2/2] um: Ensure that nobody remaps the stub vma

2014-05-06 Thread Geert Uytterhoeven
) && (virt < STUB_END)) > + return -EINVAL; > + As you have this exact same check in three different places, I think it's worth splitting it off in a helper function. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots

Re: [uml-devel] [PATCH 1/4] UserModeLinux: Convert UM_KERN_ to KERN_

2014-05-12 Thread Geert Uytterhoeven
On Sat, May 10, 2014 at 1:43 AM, Joe Perches wrote: > The defines are the same since commit 9429ec96c2718 > ("um: Preinclude include/linux/kern_levels.h") > so just convert them to the normal KERN_ uses. > > Signed-off-by: Joe Perches Acked-by: Geert Uytterhoeven C

[uml-devel] [PATCH] um: Generate "generic-y" header files for $(HEADER_ARCH)

2014-06-01 Thread Geert Uytterhoeven
UM needs to perform header file generation for $(HEADER_ARCH), in addition to the standard $(ARCH). Signed-off-by: Geert Uytterhoeven --- Prerequisite for "x86/uapi: Use Kbuild logic to include " https://lkml.org/lkml/2013/11/25/229 Else it fails with: In file included from inc

Re: [uml-devel] [PATCH v2] delete unnecessary bootmem struct page array

2014-06-16 Thread Geert Uytterhoeven
On Mon, Jun 16, 2014 at 5:28 AM, Real Name wrote: > what is the pre-git linux tree? I searched it with google, but failed. E.g. git.kernel.org/cgit/linux/kernel/git/tglx/history.git/ -- Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linu

Re: [uml-devel] [PATCH v2] delete unnecessary bootmem struct page array

2014-06-16 Thread Geert Uytterhoeven
gically removes more code than it adds. It could be smaller, but I shamelessly added some comments. Boot-tested on ppc64, i386 (NUMAQ, plain SMP, laptop), UML (i386). Signed-off-by: Dave Hansen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Gr{oetje,eeting}s,

Re: [uml-devel] [PATCH] checkstack: use $UTS_MACHINE as target architecture

2014-07-08 Thread Geert Uytterhoeven
that you don't need root permissions to run it. Which is why I'm still interested in an ARM port. Need... More... Spare... Time... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal co

Re: [uml-devel] [PATCH] checkstack: use $UTS_MACHINE as target architecture

2014-07-08 Thread Geert Uytterhoeven
On Tue, Jul 8, 2014 at 11:14 AM, Richard Weinberger wrote: >> And that you don't need root permissions to run it. > > You can use KVM also without being root. > It depends on the rights of /dev/kvm. Which are controlled by... root. Gr{oetje,eeting}s,

Re: [uml-devel] Build regressions/improvements in v3.17-rc1

2014-08-17 Thread Geert Uytterhoeven
On Sun, Aug 17, 2014 at 10:45 PM, Geert Uytterhoeven wrote: > 16 regressions: > + /scratch/kisskb/src/arch/powerpc/include/asm/floppy.h: error: > 'isa_bridge_pcidev' undeclared (first use in this function): => 142:20 powerpc-randconfig > + /scratch/kisskb/sr

Re: [uml-devel] [PATCH] um,ethertap: use strncpy

2014-08-27 Thread Geert Uytterhoeven
+ strncpy(gate_buf, gate, 15); This will copy at most 15 bytes. If "gate" contains 15 or more characters, gate_buf[] won't be zero-terminated. I think you better use strlcpy(), unless the remaining of the buffer must be filled with zeroes. Gr{oetje,eeting}s,

Re: [uml-devel] [PATCH 04/44] m68k: Replace mach_power_off with pm_power_off

2014-10-07 Thread Geert Uytterhoeven
On Tue, Oct 7, 2014 at 7:28 AM, Guenter Roeck wrote: > Replace mach_power_off with pm_power_off to simplify the subsequent > move of pm_power_off to generic code. Thanks! > Cc: Geert Uytterhoeven > Cc: Greg Ungerer > Cc: Joshua Thompson > Signed-off-by: Guenter Roeck Look

Re: [uml-devel] [PATCH 08/44] kernel: Move pm_power_off to common code

2014-10-07 Thread Geert Uytterhoeven
hose, > call do_kernel_poweroff from machine_power_off instead. > arch/m68k/kernel/process.c | 6 +- Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conve

Re: [uml-devel] [PATCH 35/44] m68k: Register with kernel poweroff handler

2014-10-07 Thread Geert Uytterhoeven
On Tue, Oct 7, 2014 at 7:28 AM, Guenter Roeck wrote: > Register with kernel poweroff handler instead of setting pm_power_off > directly. > > Cc: Geert Uytterhoeven > Cc: Joshua Thompson > Signed-off-by: Guenter Roeck As someone already mentioned, having #defines instead of

Re: [uml-devel] [PATCH 01/44] kernel: Add support for poweroff handler call chain

2014-10-09 Thread Geert Uytterhoeven
ister %s\n", symname); Doesn't %ps work to look up symbols? pr_warn("Poweroff function already registered (%ps), cannot register %ps\n", poweroff_handler_data.handler, handler); > + return -EBUSY; > + } Gr{oetje,eeting}s,

Re: [uml-devel] [PATCH v3 3/3] um: enable trace irqflags support

2014-10-20 Thread Geert Uytterhoeven
p_init(); > +#endif The #ifdef is not needed. include/linux/lockdep.h provides a dummy definition if !CONFIG_LOCKDEP. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with t

Re: [uml-devel] Build regressions/improvements in v3.18-rc4

2014-11-12 Thread Geert Uytterhoeven
On Wed, Nov 12, 2014 at 10:46 AM, Geert Uytterhoeven wrote: > JFYI, when comparing v3.18-rc4[1] to v3.18-rc3[3], the summaries are: > - build errors: +5/-6 + /home/kisskb/slave/src/fs/hostfs/hostfs_user.c: error: 'AT_FDCWD' undeclared (first use in this function): => 3

Re: [uml-devel] Build regressions/improvements in v3.18-rc4

2014-11-12 Thread Geert Uytterhoeven
you using? > It looks like AT_FDCWD is missing on your host side. There's obviously more wrong with the host side: http://kisskb.ellerman.id.au/kisskb/buildresult/12305953/ Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -

Re: [uml-devel] starting an UML image sometimes failed, next (identical) attempt works

2014-11-21 Thread Geert Uytterhoeven
(KERN_INFO "ubd_file_size 3"); Not really on-topic, but it's faster to add lines like pr_info("%s:%u\n", __func__, __LINE__); They're identical (i.e. copy-'n-paste), but give unique output depending on context. Gr{oetje,eeting}s, Geert -

Re: [uml-devel] [BUG] uml panics with "Segfault with no mm" in v3.19-rc

2014-12-10 Thread Geert Uytterhoeven
r=, uval=) >> at include/asm-generic/futex.h:109 >> #17 cmpxchg_futex_value_locked (curval=0x61c49e28, uaddr=0x0, >> uval=, newval=) at kernel/futex.c:596 >> #18 0x60008b70 in futex_detect_cmpxchg () at kernel/futex.c:3020 >> #19 futex_init () at kernel/futex.

Re: [uml-devel] [PATCH RESEND] um,ethertap: use strncpy

2015-01-20 Thread Geert Uytterhoeven
you better use strlcpy(), unless the remaining of the buffer must be filled with zeroes." Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with techni

Re: [uml-devel] Warning in syscall_trace_enter

2015-03-03 Thread Geert Uytterhoeven
at flag. :-) For some classes of warnings yet. For this particular case, given the tree-wide void plan, it can easily be resolved by dropping the __must_check attribute from tracehook_report_syscall_entry() now. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There'

Re: [uml-devel] compile error after : make ARCH=um allmodconfig && make ARCH=um linux

2015-03-10 Thread Geert Uytterhoeven
ror: libvdeplug.h: No such file or > directory > #include > ^ "sudo apt-get install libvdeplug-dev" or the equivalent for your distro to install the vdeplug library and its development files. Gr{oetje,eeting}s, Geert -- Geert U

Re: [uml-devel] [PATCH 0/8] powerpc/8xx: Getting rid of CONFIG_8xx

2015-03-12 Thread Geert Uytterhoeven
o have CONFIG_40x,. CONFIG_44x, and CONFIG_4xx. There's no CONFIG_PPC_4* though. Do we want (some) consistency? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical

Re: [uml-devel] [PATCH 07/15] hostfs: Remove open coded strcpy()

2015-03-16 Thread Geert Uytterhoeven
while ((*s++ = *p++) != '\0') > - ; > - } > + > + if (p > name + len) > + strcpy(name + len, p); > + What is this code really supposed to do? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There&

Re: [uml-devel] [PATCH 07/15] hostfs: Remove open coded strcpy()

2015-03-16 Thread Geert Uytterhoeven
Hi Richard, On Mon, Mar 16, 2015 at 1:18 PM, Richard Weinberger wrote: > Am 16.03.2015 um 13:03 schrieb Geert Uytterhoeven: >> On Mon, Mar 16, 2015 at 12:41 PM, Richard Weinberger wrote: >>> --- a/fs/hostfs/hostfs_kern.c >>> +++ b/fs/hostfs/hostfs_kern.c >>&g

Re: [uml-devel] [PATCH] um: Print minimum physical memory requirement

2015-03-30 Thread Geert Uytterhoeven
map_size, 1, 1, 1); > if (err < 0) { > printf("setup_physmem - mapping %ld bytes of memory at 0x%p " > - "failed - errno = %d\n", len - offset, > + "failed - errno = %d\n", map_size, >

Re: [uml-devel] [PATCH v2] um: Print minimum physical memory requirement

2015-04-03 Thread Geert Uytterhoeven
unsigned long delta = (len - reserve) >> PAGE_SHIFT; > + unsigned long offset, bootmap_size; > + int err, map_size; map_size should be unsigned long. > + > + offset = uml_reserved - uml_physmem; > + map_size = len - offset; -- Gr{oetje,

Re: [uml-devel] [PATCH v2] um: Print minimum physical memory requirement

2015-04-03 Thread Geert Uytterhoeven
On Fri, Apr 3, 2015 at 3:22 PM, Thomas Meyer wrote: > Am Freitag, den 03.04.2015, 15:17 +0200 schrieb Geert Uytterhoeven: >> On Fri, Apr 3, 2015 at 1:59 PM, Thomas Meyer wrote: >> > --- a/arch/um/kernel/physmem.c >> > +++ b/arch/um/kernel/physmem.c >>

Re: [uml-devel] UML specific or just a generic 4.0.x glitch : kernel/time/Kconfig:157:warning: range is invalid ?

2015-04-19 Thread Geert Uytterhoeven
es, which includes UML since commit 28fa468f5316 ("um: Remove broken SMP support"). Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversations with technical people, I call mysel

Re: [uml-devel] [PATCH] hostfs: Use correct mask for file mode

2015-05-04 Thread Geert Uytterhoeven
goto out_put; > > - fd = file_create(name, mode & S_IFMT); > + fd = file_create(name, mode & 0777); "(S_IRWXU | S_IRWXG | S_IRWXO)"? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-

Re: [uml-devel] linux-4.2-rc2/arch/um/drivers/net_user.c:258: possible missing call to va_end ?

2015-07-13 Thread Geert Uytterhoeven
y > skill set. Sorry. In that case we feel obliged to guide you to a proper patch submission. Please give it a try. We won't bite ;-) Thanks! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.o

Re: [uml-devel] linux-4.2-rc2/arch/um/drivers/net_user.c:258: possible missing call to va_end ?

2015-07-13 Thread Geert Uytterhoeven
u use git? If yes, perhaps you can use git-send-email. Based on http://www.serversmtp.com/en/smtp-hotmail, I would try to add the following to .gitconfig: [sendemail] smtpencryption = ssl smtpserver = smtp.live.com smtpuser = your Hotmail account smtppass = your Hotmail password s

Re: [uml-devel] linux-4.2-rc2/arch/um/drivers/net_user.c:258: possible missing call to va_end ?

2015-07-13 Thread Geert Uytterhoeven
On Mon, Jul 13, 2015 at 5:40 PM, Toralf Förster wrote: > On 07/13/2015 05:26 PM, Geert Uytterhoeven wrote: >> smtpencryption = ssl > I do have : > smtpencryption = tls For hotmail, port 465? I use tls, too, for gmail port 587. Gr{oetje,eeting}s,

Re: [uml-devel] [PATCH 1/2] usb: support building without CONFIG_HAS_DMA

2016-02-15 Thread Geert Uytterhoeven
ver -- that driver's functions will hopefully > appear somewhere in the stack trace. > > v2: Reduce the number of #ifdefs by moving code out into helpers. > > Signed-off-by: Vegard Nossum I have an even smaller patch that I've been updating over the years to compile all

Re: [uml-devel] [PATCH 1/3] usb: core: Allow compilation on platforms where NO_DMA=y

2016-02-15 Thread Geert Uytterhoeven
Hi Vegard, On Mon, Feb 15, 2016 at 12:49 PM, Vegard Nossum wrote: > On 02/15/2016 12:21 PM, Geert Uytterhoeven wrote: >> If NO_DMA=y: >> >> ERROR: "dma_pool_destroy" [drivers/usb/core/usbcore.ko] undefined! >> ERROR: "bad_dma_ops" [driver

Re: [uml-devel] [PATCH v2 1/3] usb: core: Allow compilation on platforms where NO_DMA=y

2016-02-21 Thread Geert Uytterhoeven
Hi Greg, On Sun, Feb 21, 2016 at 5:23 AM, Greg Kroah-Hartman wrote: > On Tue, Feb 16, 2016 at 04:10:57PM +0100, Geert Uytterhoeven wrote: >> Some platforms don't have DMA, but we should still be able to build USB >> drivers for these platforms. They could still be u

Re: [uml-devel] [PATCH 1/2] asm-generic/io.h: provide default ioremap/iounmap for !HAS_IOMEM

2016-03-30 Thread Geert Uytterhoeven
ll abort their initialization, 2. They are a plain no-op, for functions with harmless side-effects. The !MMU versions are not dummies, but assume a transparent translation. This may lead to drivers continuing their initialization and crashing the system. > I actually started a patch to remove

Re: [uml-devel] [PATCH 1/2] asm-generic/io.h: provide default ioremap/iounmap for !HAS_IOMEM

2016-03-31 Thread Geert Uytterhoeven
Hi Rob, On Wed, Mar 30, 2016 at 11:20 PM, Rob Herring wrote: > On Wed, Mar 30, 2016 at 3:08 PM, Geert Uytterhoeven > wrote: >> On Tue, Mar 29, 2016 at 10:13 PM, Rob Herring wrote: >>> Ewww. Why do the opposite of what we do for every other Kconfig symbol >>> wh

  1   2   >