public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* skge missing ifdefs.
@ 2005-08-01 20:34 Dave Jones
  2005-08-01 20:38 ` Jeff Garzik
  0 siblings, 1 reply; 12+ messages in thread
From: Dave Jones @ 2005-08-01 20:34 UTC (permalink / raw)
  To: linux-kernel; +Cc: jgarzik, Mirko Lindner

with CONFIG_PM undefined, the build breaks due to 
undefined symbols.

Signed-off-by: Dave Jones <davej@redhat.com>

-- linux-2.6.12/drivers/net/sk98lin/skge.c~	2005-08-01 16:32:42.000000000 -0400
+++ linux-2.6.12/drivers/net/sk98lin/skge.c	2005-08-01 16:33:10.000000000 -0400
@@ -5233,8 +5233,10 @@ static struct pci_driver skge_driver = {
 	.id_table	= skge_pci_tbl,
 	.probe		= skge_probe_one,
 	.remove		= __devexit_p(skge_remove_one),
+#ifdef CONFIG_PM
 	.suspend	= skge_suspend,
 	.resume		= skge_resume,
+#endif
 };
 
 static int __init skge_init(void)

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: skge missing ifdefs.
  2005-08-01 20:34 skge missing ifdefs Dave Jones
@ 2005-08-01 20:38 ` Jeff Garzik
  2005-08-22 19:59   ` Dave Jones
  0 siblings, 1 reply; 12+ messages in thread
From: Jeff Garzik @ 2005-08-01 20:38 UTC (permalink / raw)
  To: Dave Jones, linux-kernel, Mirko Lindner; +Cc: akpm

On Mon, Aug 01, 2005 at 04:34:42PM -0400, Dave Jones wrote:
> with CONFIG_PM undefined, the build breaks due to 
> undefined symbols.

akpm already sent a fix to Linus.

	Jeff




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: skge missing ifdefs.
  2005-08-01 20:38 ` Jeff Garzik
@ 2005-08-22 19:59   ` Dave Jones
  2005-08-22 20:22     ` David S. Miller
  2005-08-22 20:23     ` Andrew Morton
  0 siblings, 2 replies; 12+ messages in thread
From: Dave Jones @ 2005-08-22 19:59 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: linux-kernel, Mirko Lindner, akpm

On Mon, Aug 01, 2005 at 04:38:18PM -0400, Jeff Garzik wrote:
 > On Mon, Aug 01, 2005 at 04:34:42PM -0400, Dave Jones wrote:
 > > with CONFIG_PM undefined, the build breaks due to 
 > > undefined symbols.
 > 
 > akpm already sent a fix to Linus.

This is still broken afaics in todays -git.

		Dave


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: skge missing ifdefs.
  2005-08-22 19:59   ` Dave Jones
@ 2005-08-22 20:22     ` David S. Miller
  2005-08-22 20:23     ` Andrew Morton
  1 sibling, 0 replies; 12+ messages in thread
From: David S. Miller @ 2005-08-22 20:22 UTC (permalink / raw)
  To: davej; +Cc: jgarzik, linux-kernel, mlindner, akpm

From: Dave Jones <davej@redhat.com>
Date: Mon, 22 Aug 2005 15:59:13 -0400

> This is still broken afaics in todays -git.

They are certainly there in Linus's current GIT tree.

 ...
#ifdef CONFIG_PM
static int skge_suspend(struct pci_dev *pdev, pm_message_t state)
 ...
static int skge_resume(struct pci_dev *pdev)
 ...
#endif
static struct pci_driver skge_driver = {
 ...
#ifdef CONFIG_PM
	.suspend = 	skge_suspend,
	.resume = 	skge_resume,
#endif
};

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: skge missing ifdefs.
  2005-08-22 19:59   ` Dave Jones
  2005-08-22 20:22     ` David S. Miller
@ 2005-08-22 20:23     ` Andrew Morton
  2005-08-22 20:33       ` Dave Jones
  2005-08-22 20:35       ` Al Viro
  1 sibling, 2 replies; 12+ messages in thread
From: Andrew Morton @ 2005-08-22 20:23 UTC (permalink / raw)
  To: Dave Jones; +Cc: jgarzik, linux-kernel, mlindner

Dave Jones <davej@redhat.com> wrote:
>
> On Mon, Aug 01, 2005 at 04:38:18PM -0400, Jeff Garzik wrote:
>  > On Mon, Aug 01, 2005 at 04:34:42PM -0400, Dave Jones wrote:
>  > > with CONFIG_PM undefined, the build breaks due to 
>  > > undefined symbols.
>  > 
>  > akpm already sent a fix to Linus.
> 
> This is still broken afaics in todays -git.
> 

Works for me.  CONFIG_PM=n, CONFIG_SKGE=y or m, CONFIG_SK98LIN=y or m.

btw, is one of the recent `%td' fans going to, like, implement it in
printk()?

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: skge missing ifdefs.
  2005-08-22 20:23     ` Andrew Morton
@ 2005-08-22 20:33       ` Dave Jones
  2005-08-22 20:35       ` Al Viro
  1 sibling, 0 replies; 12+ messages in thread
From: Dave Jones @ 2005-08-22 20:33 UTC (permalink / raw)
  To: Andrew Morton; +Cc: jgarzik, linux-kernel, mlindner

On Mon, Aug 22, 2005 at 01:23:33PM -0700, Andrew Morton wrote:
 > Dave Jones <davej@redhat.com> wrote:
 > >
 > > On Mon, Aug 01, 2005 at 04:38:18PM -0400, Jeff Garzik wrote:
 > >  > On Mon, Aug 01, 2005 at 04:34:42PM -0400, Dave Jones wrote:
 > >  > > with CONFIG_PM undefined, the build breaks due to 
 > >  > > undefined symbols.
 > >  > 
 > >  > akpm already sent a fix to Linus.
 > > 
 > > This is still broken afaics in todays -git.
 > > 
 > 
 > Works for me.  CONFIG_PM=n, CONFIG_SKGE=y or m, CONFIG_SK98LIN=y or m.

I missed the ..

#define skge_suspend NULL
#define skge_resume NULL

in drivers/net/sk98lin/skge.c, and wondered why my drivers/net/skge.c style fix
still applied.

Never mind, both drivers seem fine.

		Dave


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: skge missing ifdefs.
  2005-08-22 20:23     ` Andrew Morton
  2005-08-22 20:33       ` Dave Jones
@ 2005-08-22 20:35       ` Al Viro
  2005-08-22 20:42         ` Andrew Morton
  1 sibling, 1 reply; 12+ messages in thread
From: Al Viro @ 2005-08-22 20:35 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Dave Jones, jgarzik, linux-kernel, mlindner

On Mon, Aug 22, 2005 at 01:23:33PM -0700, Andrew Morton wrote:
> Works for me.  CONFIG_PM=n, CONFIG_SKGE=y or m, CONFIG_SK98LIN=y or m.
> 
> btw, is one of the recent `%td' fans going to, like, implement it in
> printk()?

Sent to Linus, sits in his queue...  Last iteration had been

mail -s '[PATCH] (45/46) %t... in vsnprintf' torvalds@osdl.org <<'EOF'
handling of %t... (ptrdiff_t) in vsnprintf

Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
----
diff -urN RC13-rc6-git10-m68k-adb.patch/lib/vsprintf.c RC13-rc6-git10-printf-t/lib/vsprintf.c
--- RC13-rc6-git10-m68k-adb.patch/lib/vsprintf.c	2005-06-17 15:48:29.000000000 -0400
+++ RC13-rc6-git10-printf-t/lib/vsprintf.c	2005-08-18 14:24:08.000000000 -0400
@@ -269,6 +269,7 @@
 	int qualifier;		/* 'h', 'l', or 'L' for integer fields */
 				/* 'z' support added 23/7/1999 S.H.    */
 				/* 'z' changed to 'Z' --davidm 1/25/99 */
+				/* 't' added for ptrdiff_t */
 
 	/* Reject out-of-range values early */
 	if (unlikely((int) size < 0)) {
@@ -339,7 +340,7 @@
 		/* get the conversion qualifier */
 		qualifier = -1;
 		if (*fmt == 'h' || *fmt == 'l' || *fmt == 'L' ||
-		    *fmt =='Z' || *fmt == 'z') {
+		    *fmt =='Z' || *fmt == 'z' || *fmt == 't') {
 			qualifier = *fmt;
 			++fmt;
 			if (qualifier == 'l' && *fmt == 'l') {
@@ -467,6 +468,8 @@
 				num = (signed long) num;
 		} else if (qualifier == 'Z' || qualifier == 'z') {
 			num = va_arg(args, size_t);
+		} else if (qualifier == 't') {
+			num = va_arg(args, ptrdiff_t);
 		} else if (qualifier == 'h') {
 			num = (unsigned short) va_arg(args, int);
 			if (flags & SIGN)
EOF

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: skge missing ifdefs.
  2005-08-22 20:35       ` Al Viro
@ 2005-08-22 20:42         ` Andrew Morton
  2005-08-22 22:24           ` Roman Zippel
  2005-08-23 21:44           ` Al Viro
  0 siblings, 2 replies; 12+ messages in thread
From: Andrew Morton @ 2005-08-22 20:42 UTC (permalink / raw)
  To: Al Viro; +Cc: davej, jgarzik, linux-kernel, mlindner

Al Viro <viro@parcelfarce.linux.theplanet.co.uk> wrote:
>
> mail -s '[PATCH] (45/46) %t... in vsnprintf' torvalds@osdl.org <<'EOF'

<wonders what the other 45 patches did>

Could you copy a mailing list on patches, please?


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: skge missing ifdefs.
  2005-08-22 20:42         ` Andrew Morton
@ 2005-08-22 22:24           ` Roman Zippel
  2005-08-23  6:02             ` Al Viro
  2005-08-23 21:44           ` Al Viro
  1 sibling, 1 reply; 12+ messages in thread
From: Roman Zippel @ 2005-08-22 22:24 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Al Viro, davej, jgarzik, linux-kernel, mlindner

Hi,

On Mon, 22 Aug 2005, Andrew Morton wrote:

> Al Viro <viro@parcelfarce.linux.theplanet.co.uk> wrote:
> >
> > mail -s '[PATCH] (45/46) %t... in vsnprintf' torvalds@osdl.org <<'EOF'
> 
> <wonders what the other 45 patches did>
> 
> Could you copy a mailing list on patches, please?

Seconded.
Al, I'd like to know which of the m68k related patches you want to merge.

bye, Roman

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: skge missing ifdefs.
  2005-08-22 22:24           ` Roman Zippel
@ 2005-08-23  6:02             ` Al Viro
  2005-08-23 11:16               ` Roman Zippel
  0 siblings, 1 reply; 12+ messages in thread
From: Al Viro @ 2005-08-23  6:02 UTC (permalink / raw)
  To: Roman Zippel; +Cc: Andrew Morton, davej, jgarzik, linux-kernel, mlindner

On Tue, Aug 23, 2005 at 12:24:19AM +0200, Roman Zippel wrote:
> Hi,
> 
> On Mon, 22 Aug 2005, Andrew Morton wrote:
> 
> > Al Viro <viro@parcelfarce.linux.theplanet.co.uk> wrote:
> > >
> > > mail -s '[PATCH] (45/46) %t... in vsnprintf' torvalds@osdl.org <<'EOF'
> > 
> > <wonders what the other 45 patches did>
> > 
> > Could you copy a mailing list on patches, please?
> 
> Seconded.
> Al, I'd like to know which of the m68k related patches you want to merge.

See ftp.linux.org.uk/pub/people/viro/patchset/T* + adb.h delta from CVS.
That's a minimum getting mainline m68k to sane state and not breaking
other platforms.  These are against -rc6-git2, but their counterparts
in more recent patchset have not changed.  BTW, m68k patches were not
in the series sent to Linus and I would definitely Cc m68k folks on them
if they would go there.

As for your s/thread_info/stack/ - I don't believe it's doable in mainline
right now.  It's definitely separate from m68k merge and should not be
mixed into it.  Moreover, mandatory changes to every platform arch-specific
code over basically cosmetic issue (renaming a field of task_struct) at
this point are going to be gratitious PITA for every architecture with
out-of-tree development.  And m68k folks, of all people, should know what
fun it is.

When folks start using task_thread_info() in arch/* (i.e. by 2.6.1[45]) the
size of that delta will go down big way and it will be less painful.  Until
then...  Not a good idea.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: skge missing ifdefs.
  2005-08-23  6:02             ` Al Viro
@ 2005-08-23 11:16               ` Roman Zippel
  0 siblings, 0 replies; 12+ messages in thread
From: Roman Zippel @ 2005-08-23 11:16 UTC (permalink / raw)
  To: Al Viro; +Cc: Andrew Morton, davej, jgarzik, linux-kernel, mlindner

Hi,

On Tue, 23 Aug 2005, Al Viro wrote:

> As for your s/thread_info/stack/ - I don't believe it's doable in mainline
> right now.  It's definitely separate from m68k merge and should not be
> mixed into it.  Moreover, mandatory changes to every platform arch-specific
> code over basically cosmetic issue (renaming a field of task_struct) at
> this point are going to be gratitious PITA for every architecture with
> out-of-tree development.  And m68k folks, of all people, should know what
> fun it is.

No, I don't know it. Sometimes merging can be tricky, but then I check the 
original diff and apply it manually. What I'm planning involves no logical 
changes, so it would be an absolute no-brainer to merge. It's the logical 
changes that may even compile normally, that can be the a real PITA.

> When folks start using task_thread_info() in arch/* (i.e. by 2.6.1[45]) the
> size of that delta will go down big way and it will be less painful.  Until
> then...  Not a good idea.

I already did the complete conversion (and I did it forward and backward 
to be sure the result is the same), so I dont see the problem to merge it 
in 2.6.13. The final removal of the thread_info field can happen in 2.6.14 
and any missed changes in external trees are trivially fixable.

bye, Roman

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: skge missing ifdefs.
  2005-08-22 20:42         ` Andrew Morton
  2005-08-22 22:24           ` Roman Zippel
@ 2005-08-23 21:44           ` Al Viro
  1 sibling, 0 replies; 12+ messages in thread
From: Al Viro @ 2005-08-23 21:44 UTC (permalink / raw)
  To: Andrew Morton; +Cc: davej, jgarzik, linux-kernel, mlindner

On Mon, Aug 22, 2005 at 01:42:18PM -0700, Andrew Morton wrote:
> Al Viro <viro@parcelfarce.linux.theplanet.co.uk> wrote:
> >
> > mail -s '[PATCH] (45/46) %t... in vsnprintf' torvalds@osdl.org <<'EOF'
> 
> <wonders what the other 45 patches did>
> 
> Could you copy a mailing list on patches, please?

Ask and you shall regret it - next iteration of patchbomb (without adding
more pending chunks to it) Cc'd to l-k.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-08-23 21:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-01 20:34 skge missing ifdefs Dave Jones
2005-08-01 20:38 ` Jeff Garzik
2005-08-22 19:59   ` Dave Jones
2005-08-22 20:22     ` David S. Miller
2005-08-22 20:23     ` Andrew Morton
2005-08-22 20:33       ` Dave Jones
2005-08-22 20:35       ` Al Viro
2005-08-22 20:42         ` Andrew Morton
2005-08-22 22:24           ` Roman Zippel
2005-08-23  6:02             ` Al Viro
2005-08-23 11:16               ` Roman Zippel
2005-08-23 21:44           ` Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox