1. 29 5月, 2018 1 次提交
  2. 12 2月, 2018 1 次提交
    • L
      vfs: do bulk POLL* -> EPOLL* replacement · a9a08845
      Linus Torvalds 提交于
      This is the mindless scripted replacement of kernel use of POLL*
      variables as described by Al, done by this script:
      
          for V in IN OUT PRI ERR RDNORM RDBAND WRNORM WRBAND HUP RDHUP NVAL MSG; do
              L=`git grep -l -w POLL$V | grep -v '^t' | grep -v /um/ | grep -v '^sa' | grep -v '/poll.h$'|grep -v '^D'`
              for f in $L; do sed -i "-es/^\([^\"]*\)\(\<POLL$V\>\)/\\1E\\2/" $f; done
          done
      
      with de-mangling cleanups yet to come.
      
      NOTE! On almost all architectures, the EPOLL* constants have the same
      values as the POLL* constants do.  But they keyword here is "almost".
      For various bad reasons they aren't the same, and epoll() doesn't
      actually work quite correctly in some cases due to this on Sparc et al.
      
      The next patch from Al will sort out the final differences, and we
      should be all done.
      Scripted-by: NAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a9a08845
  3. 08 12月, 2017 2 次提交
  4. 28 11月, 2017 2 次提交
  5. 31 10月, 2017 1 次提交
  6. 21 7月, 2017 1 次提交
  7. 27 1月, 2017 1 次提交
    • S
      [media] media: Drop FSF's postal address from the source code files · bcb63314
      Sakari Ailus 提交于
      Drop the FSF's postal address from the source code files that typically
      contain mostly the license text. Of the 628 removed instances, 578 are
      outdated.
      
      The patch has been created with the following command without manual edits:
      
      git grep -l "675 Mass Ave\|59 Temple Place\|51 Franklin St" -- \
      	drivers/media/ include/media|while read i; do i=$i perl -e '
      open(F,"< $ENV{i}");
      $a=join("", <F>);
      $a =~ s/[ \t]*\*\n.*You should.*\n.*along with.*\n.*(\n.*USA.*$)?\n//m
      	&& $a =~ s/(^.*)Or, (point your browser to) /$1To obtain the license, $2\n$1/m;
      close(F);
      open(F, "> $ENV{i}");
      print F $a;
      close(F);'; done
      Signed-off-by: NSakari Ailus <sakari.ailus@linux.intel.com>
      bcb63314
  8. 21 10月, 2016 1 次提交
    • M
      [media] gspca: don't break long lines · 1ddc9f75
      Mauro Carvalho Chehab 提交于
      Due to the 80-cols restrictions, and latter due to checkpatch
      warnings, several strings were broken into multiple lines. This
      is not considered a good practice anymore, as it makes harder
      to grep for strings at the source code.
      
      As we're right now fixing other drivers due to KERN_CONT, we need
      to be able to identify what printk strings don't end with a "\n".
      It is a way easier to detect those if we don't break long lines.
      
      So, join those continuation lines.
      
      The patch was generated via the script below, and manually
      adjusted if needed.
      
      </script>
      use Text::Tabs;
      while (<>) {
      	if ($next ne "") {
      		$c=$_;
      		if ($c =~ /^\s+\"(.*)/) {
      			$c2=$1;
      			$next =~ s/\"\n$//;
      			$n = expand($next);
      			$funpos = index($n, '(');
      			$pos = index($c2, '",');
      			if ($funpos && $pos > 0) {
      				$s1 = substr $c2, 0, $pos + 2;
      				$s2 = ' ' x ($funpos + 1) . substr $c2, $pos + 2;
      				$s2 =~ s/^\s+//;
      
      				$s2 = ' ' x ($funpos + 1) . $s2 if ($s2 ne "");
      
      				print unexpand("$next$s1\n");
      				print unexpand("$s2\n") if ($s2 ne "");
      			} else {
      				print "$next$c2\n";
      			}
      			$next="";
      			next;
      		} else {
      			print $next;
      		}
      		$next="";
      	} else {
      		if (m/\"$/) {
      			if (!m/\\n\"$/) {
      				$next=$_;
      				next;
      			}
      		}
      	}
      	print $_;
      }
      </script>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      1ddc9f75
  9. 31 8月, 2016 1 次提交
  10. 24 8月, 2016 1 次提交
  11. 09 7月, 2016 5 次提交
  12. 01 10月, 2015 1 次提交
  13. 30 1月, 2015 1 次提交
  14. 08 9月, 2014 1 次提交
  15. 17 7月, 2014 1 次提交
    • L
      [media] v4l: Support extending the v4l2_pix_format structure · d52e2381
      Laurent Pinchart 提交于
      The v4l2_pix_format structure has no reserved field. It is embedded in
      the v4l2_framebuffer structure which has no reserved fields either, and
      in the v4l2_format structure which has reserved fields that were not
      previously required to be zeroed out by applications.
      
      To allow extending v4l2_pix_format, inline it in the v4l2_framebuffer
      structure, and use the priv field as a magic value to indicate that the
      application has set all v4l2_pix_format extended fields and zeroed all
      reserved fields following the v4l2_pix_format field in the v4l2_format
      structure.
      
      The availability of this API extension is reported to userspace through
      the new V4L2_CAP_EXT_PIX_FORMAT capability flag. Just checking that the
      priv field is still set to the magic value at [GS]_FMT return wouldn't
      be enough, as older kernels don't zero the priv field on return.
      
      To simplify the internal API towards drivers zero the extended fields
      and set the priv field to the magic value for applications not aware of
      the extensions.
      Signed-off-by: NLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      d52e2381
  16. 05 7月, 2014 2 次提交
  17. 26 9月, 2013 2 次提交
  18. 21 8月, 2013 1 次提交
  19. 17 6月, 2013 1 次提交
  20. 24 3月, 2013 1 次提交
  21. 23 3月, 2013 1 次提交
  22. 06 3月, 2013 2 次提交
  23. 06 2月, 2013 1 次提交
  24. 28 10月, 2012 1 次提交
  25. 26 9月, 2012 1 次提交
  26. 14 9月, 2012 2 次提交
    • H
      [media] gspca: Fix input urb creation / destruction surrounding suspend resume · 36adfca9
      Hans de Goede 提交于
      1) We always re-create the input-urb on resume, so we must also always
         destroy it on suspend to avoid leaking it
      2) If we're going to do an init_transfer, then that will destroy the urb
         before starting the stream (nop if there is none), and (re-)create it
         once the stream is started. So there is little use in creating it, if
         we're going to do an init_transfer immediately afterward
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      36adfca9
    • H
      [media] gspca: Don't set gspca_dev->dev to NULL before stop0 · 345321dc
      Hans de Goede 提交于
      In commit a3d6e8cc gspca_dev->dev is set
      to NULL on disconnect, before calling stop0. The plan was to get rid of
      gspca_dev->present and instead simply check for gspca_dev->dev everywhere
      where we were checking for present. This should be race free since all users
      of gspca_dev->dev hold the usb_lock, or so I thought.
      
      But I was wrong, drivers which use a work-queue + synchronous bulk transfers
      to get the video data don't hold the usb_lock while doing so, their stop0
      callbacks stop the workqueue, so they won't be using gspca_dev->dev anymore
      after the stop0 call, but they might be dereferincing it before, so we should
      not set gspca_dev->dev to NULL on disconnect before calling stop0.
      
      This also means that the workqueue functions in these drivers cannot
      use gspca_dev->dev to check if they need to stop because of disconnection,
      so we will need to keep gspca_dev->present around, and set that to 0 on
      disconnect, before calling stop0. Unfortunately as part of the plan to remove
      gspca_dev->present, these workqueues where already moved over to checking
      for gspca_dev->dev instead of gspca_dev->present as part of commit
      254902b0, so this patch also reverts those
      parts of that commit.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      345321dc
  27. 16 8月, 2012 1 次提交
  28. 31 7月, 2012 3 次提交