All of lore.kernel.org
 help / color / mirror / Atom feed
* fallthrough question
@ 2022-02-18 21:57 Randy Dunlap
  2022-02-18 23:15 ` Gustavo A. R. Silva
  2022-02-19 11:08 ` Joe Perches
  0 siblings, 2 replies; 4+ messages in thread
From: Randy Dunlap @ 2022-02-18 21:57 UTC (permalink / raw)
  To: Gustavo A. R. Silva; +Cc: linux-kernel@vger.kernel.org

Hi,

I expected this to produce a fallthrough warning, but it doesn't
(with gcc 11.1.0):

from sound/oss/dmasound/dmasound_core.c:#1481, when falling from case 1
into case 0: (in arch/m68k/ selected builds only)

	case 1:
		if ((size = ints[2]) < 256) /* check for small buffer specs */
			size <<= 10 ;
                if (size < MIN_BUFSIZE || size > MAX_BUFSIZE)
                        printk("dmasound_setup: invalid write buffer size, using default = %d\n", writeBufSize);
                else
                        writeBufSize = size;
	case 0:
		break;
	default:

Can you tell me what is going on here?

thanks.
-- 
~Randy

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

end of thread, other threads:[~2022-02-19 11:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-18 21:57 fallthrough question Randy Dunlap
2022-02-18 23:15 ` Gustavo A. R. Silva
2022-02-18 23:41   ` Randy Dunlap
2022-02-19 11:08 ` Joe Perches

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.