Re: [PATCH] Makefile: Globally enable fall-through warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/17/2022 11:46 AM, Andrew Morton wrote:
On Tue, 17 May 2022 23:05:34 +0530 ALOK JHA <alok08jha@xxxxxxxxx> wrote:

From: "Gustavo A. R. Silva" <gustavo@xxxxxxxxxxxxxx>

Now that all the fall-through warnings have been addressed in the
kernel, enable the fall-through warning globally.

Also, update the deprecated.rst file to include implicit fall-through
as 'deprecated' so people can be pointed to a single location for
justification.

...

--- a/Documentation/process/deprecated.rst
+++ b/Documentation/process/deprecated.rst
@@ -119,3 +119,17 @@ array may exceed the remaining memory in the stack segment. This could
  lead to a crash, possible overwriting sensitive contents at the end of the
  stack (when built without `CONFIG_THREAD_INFO_IN_TASK=y`), or overwriting
  memory adjacent to the stack (when built without `CONFIG_VMAP_STACK=y`)
+
+Implicit switch case fall-through
+---------------------------------

...


Documentation/process/deprecated.rst already has a section "Implicit
switch case fall-through".  Maybe you're working against an old kernel.
Please update when resending.


shouldn't we now just be referencing the fallthrough() macro?



[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux