linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: build warnings after merge of the kspp-gustavo tree
@ 2023-11-22  3:48 Stephen Rothwell
  2023-11-22  4:04 ` Gustavo A. R. Silva
  2023-11-22  4:51 ` Aithal, Srikanth
  0 siblings, 2 replies; 11+ messages in thread
From: Stephen Rothwell @ 2023-11-22  3:48 UTC (permalink / raw)
  To: Gustavo A. R. Silva; +Cc: Linux Kernel Mailing List, Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 3811 bytes --]

Hi all,

After merging the kspp-gustavo tree, today's linux-next build (sparc64
defconfig) produced these warnings:

mm/mempolicy.c: In function 'mpol_parse_str':
mm/mempolicy.c:3007:26: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
 3007 |                 *--flags = '=';
      |                 ~~~~~~~~~^~~~~
mm/mempolicy.c:2890:26: note: destination object 'str' of size [0, 9223372036854775807]
 2890 | int mpol_parse_str(char *str, struct mempolicy **mpol)
      |                    ~~~~~~^~~
mm/mempolicy.c:3007:26: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
 3007 |                 *--flags = '=';
      |                 ~~~~~~~~~^~~~~
mm/mempolicy.c:2890:26: note: destination object 'str' of size [0, 9223372036854775807]
 2890 | int mpol_parse_str(char *str, struct mempolicy **mpol)
      |                    ~~~~~~^~~
mm/mempolicy.c:3007:26: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
 3007 |                 *--flags = '=';
      |                 ~~~~~~~~~^~~~~
mm/mempolicy.c:2890:26: note: destination object 'str' of size [0, 9223372036854775807]
 2890 | int mpol_parse_str(char *str, struct mempolicy **mpol)
      |                    ~~~~~~^~~
mm/mempolicy.c:3007:26: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
 3007 |                 *--flags = '=';
      |                 ~~~~~~~~~^~~~~
mm/mempolicy.c:2890:26: note: destination object 'str' of size [0, 9223372036854775807]
 2890 | int mpol_parse_str(char *str, struct mempolicy **mpol)
      |                    ~~~~~~^~~
mm/mempolicy.c:3005:29: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
 3005 |                 *--nodelist = ':';
      |                 ~~~~~~~~~~~~^~~~~
mm/mempolicy.c:2890:26: note: destination object 'str' of size [0, 9223372036854775807]
 2890 | int mpol_parse_str(char *str, struct mempolicy **mpol)
      |                    ~~~~~~^~~
mm/mempolicy.c:2890:26: note: destination object 'str' of size [0, 9223372036854775807]
mm/mempolicy.c:2890:26: note: destination object 'str' of size [0, 9223372036854775807]
mm/mempolicy.c:2890:26: note: destination object 'str' of size [0, 9223372036854775807]
mm/mempolicy.c:2890:26: note: destination object 'str' of size [0, 9223372036854775807]
mm/mempolicy.c:2890:26: note: destination object 'str' of size [0, 9223372036854775807]
mm/mempolicy.c:3007:26: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
 3007 |                 *--flags = '=';
      |                 ~~~~~~~~~^~~~~
mm/mempolicy.c:2890:26: note: destination object 'str' of size [0, 9223372036854775807]
 2890 | int mpol_parse_str(char *str, struct mempolicy **mpol)
      |                    ~~~~~~^~~
mm/mempolicy.c:3005:29: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
 3005 |                 *--nodelist = ':';
      |                 ~~~~~~~~~~~~^~~~~
mm/mempolicy.c:2890:26: note: destination object 'str' of size [0, 9223372036854775807]
 2890 | int mpol_parse_str(char *str, struct mempolicy **mpol)
      |                    ~~~~~~^~~
mm/mempolicy.c:2890:26: note: destination object 'str' of size [0, 9223372036854775807]
mm/mempolicy.c:2890:26: note: destination object 'str' of size [0, 9223372036854775807]
mm/mempolicy.c:3007:26: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
 3007 |                 *--flags = '=';
      |                 ~~~~~~~~~^~~~~
mm/mempolicy.c:2890:26: note: destination object 'str' of size [0, 9223372036854775807]
 2890 | int mpol_parse_str(char *str, struct mempolicy **mpol)
      |                    ~~~~~~^~~

This is using gcc v11.1.0

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

end of thread, other threads:[~2023-12-01  8:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-22  3:48 linux-next: build warnings after merge of the kspp-gustavo tree Stephen Rothwell
2023-11-22  4:04 ` Gustavo A. R. Silva
2023-11-22  5:15   ` Stephen Rothwell
     [not found]     ` <bbde1882-9124-408c-9f59-de3de66bfc56@embeddedor.com>
2023-11-24 19:07       ` Gustavo A. R. Silva
2023-11-22  4:51 ` Aithal, Srikanth
2023-11-24  1:23   ` Gustavo A. R. Silva
2023-11-27 22:13   ` Stephen Rothwell
2023-11-28 21:11     ` Gustavo A. R. Silva
2023-11-30 21:54       ` Gustavo A. R. Silva
2023-11-30 22:10         ` Stephen Rothwell
2023-12-01  8:40         ` Aithal, Srikanth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).