1. 05 Oct, 2021 1 commit
    • Arnd Bergmann's avatar
      Input: analog - fix invalid snprintf() call · 1f59342b
      Arnd Bergmann authored
      Overlapping input and output arguments to snprintf() are
      undefined behavior in C99:
      
      drivers/input/joystick/analog.c: In function 'analog_name':
      drivers/input/joystick/analog.c:428:3: error: 'snprintf' argument 4 overlaps destination object 'analog' [-Werror=restrict]
        428 |   snprintf(analog->name, sizeof(analog->name), "%s %d-hat",
            |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        429 |     analog->name, hweight16(analog->mask & ANALOG_HATS_ALL));
            |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      drivers/input/joystick/analog.c:420:40: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
        420 | static void analog_name(struct analog *analog)
            |                         ~~~~~~~~~~~~~~~^~~~~~
      
      Change this function to use the simpler seq_buf interface instead.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Link: https://lore.kernel.org/r/20210927101416.1569609-1-arnd@kernel.orgSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      1f59342b
  2. 02 Oct, 2021 1 commit
  3. 23 Sep, 2021 3 commits
  4. 21 Sep, 2021 8 commits
  5. 10 Sep, 2021 5 commits
  6. 06 Sep, 2021 3 commits
  7. 04 Sep, 2021 3 commits
  8. 30 Aug, 2021 5 commits
  9. 24 Jul, 2021 5 commits
  10. 23 Jul, 2021 3 commits
  11. 21 Jul, 2021 1 commit
  12. 19 Jul, 2021 2 commits