mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andy Pfiffer <andyp@osdl.org>
To: pavel@ucw.cz
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: [TRIVIAL PATCH] remove warnings/errors from arch/i386/kernel/suspend_asm.S
Date: 11 Dec 2002 09:57:55 -0800	[thread overview]
Message-ID: <1039629475.30576.109.camel@andyp> (raw)

Some earlier versions of gas (2.10.91 specifically) will error out on
the "movw %eax,%ds" in arch/i386/kernel/suspend_asm.S.  gas 2.11.92
complains but continues.

Here is a trivial patch that eliminates two warnings.

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.865   -> 1.866  
#	arch/i386/kernel/suspend_asm.S	1.2     -> 1.3    
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/12/11	andyp@joe.pdx.osdl.net	1.866
# Correct syntax to remove assembler warnings and errors.
# --------------------------------------------
#
diff -Nru a/arch/i386/kernel/suspend_asm.S b/arch/i386/kernel/suspend_asm.S
--- a/arch/i386/kernel/suspend_asm.S	Wed Dec 11 09:51:22 2002
+++ b/arch/i386/kernel/suspend_asm.S	Wed Dec 11 09:51:22 2002
@@ -6,7 +6,7 @@
 #include <asm/segment.h>
 #include <asm/page.h>
 
-ENTRY(do_magic):
+ENTRY(do_magic)
 	pushl %ebx
 	cmpl $0,8(%esp)
 	jne .L1450
@@ -66,7 +66,7 @@
 .L1453:
 	movl $104,%eax
 
-	movw %eax, %ds
+	movw %ax, %ds
 	movl saved_context_esp, %esp
 	movl saved_context_ebp, %ebp
 	movl saved_context_eax, %eax
@@ -88,4 +88,4 @@
 loop2:
        .quad 0
        .previous
-	
\ No newline at end of file
+




             reply	other threads:[~2002-12-11 17:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-11 17:57 Andy Pfiffer [this message]
2002-12-11 22:10 ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1039629475.30576.109.camel@andyp \
    --to=andyp@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®