1. 21 Oct, 2016 31 commits
    • Mauro Carvalho Chehab's avatar
      [media] cx18: don't break long lines · 6beb1388
      Mauro Carvalho Chehab authored
      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: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      6beb1388
    • Mauro Carvalho Chehab's avatar
      [media] bt8xx: don't break long lines · 652fd6ea
      Mauro Carvalho Chehab authored
      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: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      652fd6ea
    • Mauro Carvalho Chehab's avatar
      [media] b2c2: don't break long lines · d6376f0e
      Mauro Carvalho Chehab authored
      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: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      d6376f0e
    • Mauro Carvalho Chehab's avatar
      [media] soc_camera: don't break long lines · 8f44c392
      Mauro Carvalho Chehab authored
      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: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      8f44c392
    • Mauro Carvalho Chehab's avatar
      [media] smiapp: don't break long lines · 4b68f05e
      Mauro Carvalho Chehab authored
      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>
      Acked-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      4b68f05e
    • Mauro Carvalho Chehab's avatar
      [media] cx25840: don't break long lines · 72cc0671
      Mauro Carvalho Chehab authored
      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: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      72cc0671
    • Mauro Carvalho Chehab's avatar
      [media] b2c2: don't break long lines · d9942ad0
      Mauro Carvalho Chehab authored
      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: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      d9942ad0
    • Mauro Carvalho Chehab's avatar
      [media] nxt6000: use pr_foo() macros instead of printk() · cc5ad2b6
      Mauro Carvalho Chehab authored
      Replace printk() macros by their pr_foo() counterparts and
      use pr_cont() for the continuation lines.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      cc5ad2b6
    • Mauro Carvalho Chehab's avatar
      [media] dvb-pll: use pr_foo() macros instead of printk() · 5479a582
      Mauro Carvalho Chehab authored
      Replace printk() macros by their pr_foo() counterparts.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      5479a582
    • Mauro Carvalho Chehab's avatar
      [media] cx2341x: mark printk continuation lines as such · 6dd23d4c
      Mauro Carvalho Chehab authored
      This driver has printk continuation lines for debugging purposes.
      
      Since commit 56387331 ("Merge branch 'printk-cleanups'"),
      this won't work as expected anymore. So, let's add KERN_CONT to
      those lines.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      6dd23d4c
    • Mauro Carvalho Chehab's avatar
      [media] flexcop-i2c: mark printk continuation lines as such · 7887d371
      Mauro Carvalho Chehab authored
      This driver has printk continuation lines for debugging purposes.
      
      Since commit 56387331 ("Merge branch 'printk-cleanups'"),
      this won't work as expected anymore. So, let's add KERN_CONT to
      those lines.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      7887d371
    • Mauro Carvalho Chehab's avatar
      [media] tvaudio: mark printk continuation lines as such · 178991e0
      Mauro Carvalho Chehab authored
      This driver has printk continuation lines for
      debugging purposes. Since commit 56387331
      ("Merge branch 'printk-cleanups'"), this won't work as expected
      anymore. So, let's add KERN_CONT to those lines.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      178991e0
    • Mauro Carvalho Chehab's avatar
      [media] mt20xx: use %*ph to do small hexa dumps · c5bac2e7
      Mauro Carvalho Chehab authored
      Since commit 56387331 ("Merge branch 'printk-cleanups"),
      continuation lines require KERN_CONT. Instead, let's just
      use %*ph to print the buffer.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      c5bac2e7
    • Mauro Carvalho Chehab's avatar
      [media] imon: use %*ph to do small hexa dumps · 832d40c0
      Mauro Carvalho Chehab authored
      Since commit 56387331 ("Merge branch 'printk-cleanups"),
      continuation lines require KERN_CONT. Instead, let's just
      use %*ph to print the buffer.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      832d40c0
    • Mauro Carvalho Chehab's avatar
      [media] uvc_driver: use KERN_CONT where needed · 69396c4e
      Mauro Carvalho Chehab authored
      Some continuation messages are not using KERN_CONT.
      
      Since commit 56387331 ("Merge branch 'printk-cleanups"),
      this won't work as expected anymore. So, let's add KERN_CONT
      to those lines.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      69396c4e
    • Mauro Carvalho Chehab's avatar
      [media] dvb_filter: use KERN_CONT where needed · 9a9689cf
      Mauro Carvalho Chehab authored
      Some continuation messages are not using KERN_CONT.
      
      Since commit 56387331 ("Merge branch 'printk-cleanups"),
      this won't work as expected anymore. So, let's add KERN_CONT
      to those lines.
      
      While here, add missing log level annotations.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      9a9689cf
    • Mauro Carvalho Chehab's avatar
      [media] dvb_filter: get rid of dead code · 54e0443b
      Mauro Carvalho Chehab authored
      There are lots of stuff here commented out for a really
      long time. Get rid of them. If one wants it again, it
      could always use git log.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      54e0443b
    • Mauro Carvalho Chehab's avatar
      [media] dvb-core: move dvb_filter out of the DVB core · b676e731
      Mauro Carvalho Chehab authored
      The dvb_filter.c can hardly be considered as part of the DVB
      core. More than half of the code there is commented out by
      av7110 and ttusb_dec.
      
      On the latter, just two small helper functions and a struct
      definition is used.
      
      Being part of the core means that it would require an
      amount of work to fix issues in it, like bad printk's
      on it, and to document it on some future, like other kAPI
      headers. It simply not worth the effort for something that
      seems to be deprecated, as no new drivers use it.
      
      So, move it out of the core, by moving it to pci/ttpci
      directory, where av7110 driver is kept, and copy the two
      routines used by ttyusb_dec directly into its code.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      b676e731
    • Mauro Carvalho Chehab's avatar
      [media] dvb-core: get rid of demux optional circular buffer · dd79d27e
      Mauro Carvalho Chehab authored
      There is a provision at the dvb_demux.c to use a vmalloc'ed
      circular buffer, enabled via an extra #ifdef option that it
      is not at Kconfig. Enabling it will only make the Kernel to
      allocate/deallocate such buffer, but no code would actually
      use it. So, no practical effect, except for sparing some
      memory without any good reason.
      
      So, get rid of such dead code.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      dd79d27e
    • Mauro Carvalho Chehab's avatar
      [media] dvb_demux: uncomment a packet loss check code · 801edd6b
      Mauro Carvalho Chehab authored
      There is a commented code that also detects packet loss.
      Uncomment it and put into the DVB_DEMUX_SECTION_LOSS_LOG
      debug Kconfig option.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      801edd6b
    • Mauro Carvalho Chehab's avatar
      [media] dvb_demux: convert an internal ifdef into a Kconfig option · bbd02f6a
      Mauro Carvalho Chehab authored
      There are some ifdefs inside the dvb_demux that are meant to
      enable advanced debug capabilities, at the cost of being very
      verbose.
      
      Keeping those as internal ifdefs is a very bad idea, as it
      doesn't make easy to check if the code there was broken by
      some patch. So, let's add an explicit Kconfig option for it.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      bbd02f6a
    • Mauro Carvalho Chehab's avatar
      [media] dvb-core: use pr_foo() instead of printk() · b3ad24d2
      Mauro Carvalho Chehab authored
      The dvb-core directly calls printk() without using the modern
      printk macros, or using the proper printk levels. Change it
      to use pr_foo().
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      b3ad24d2
    • Mauro Carvalho Chehab's avatar
      [media] tuner-core: use %&ph for small buffer dumps · e428744a
      Mauro Carvalho Chehab authored
      This driver has a printk with a continuation lines for debugging purposes.
       Since commit 56387331 ("Merge branch 'printk-cleanups'"), this
      won't work anymore. We might be using KERNEL_CONT, but it is better
      to just use a single printk line using %*ph for buffer dump.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      e428744a
    • Mauro Carvalho Chehab's avatar
      [media] tuner-core: don't break long lines · 0919f3a0
      Mauro Carvalho Chehab authored
      Due to the 80-cols 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. So, join those continuation
      lines.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      0919f3a0
    • Mauro Carvalho Chehab's avatar
      [media] dvb-core: don't break long lines · 0a93dc1c
      Mauro Carvalho Chehab authored
      Due to the 80-cols 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. So, join those continuation
      lines.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      0a93dc1c
    • Mauro Carvalho Chehab's avatar
      [media] em28xx: convert the remaining printks to pr_foo · 2a96f60e
      Mauro Carvalho Chehab authored
      There are still several places with printk's called directly.
      
      Convert them to pr_foo() macros, except for the debug printk's,
      as those are enabled via modprobe vars.
      
      While here, realign the pr_foo() arguments to match the
      recommended CodingStyle.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      2a96f60e
    • Mauro Carvalho Chehab's avatar
      [media] em28xx: use pr_foo instead of em28xx-specific printk macros · 8314d402
      Mauro Carvalho Chehab authored
      There's no reason to keep using em28xx-specific printk macros
      here. Just use pr_foo().
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      8314d402
    • Mauro Carvalho Chehab's avatar
      [media] em28xx: mark printk continuation lines as such · 3e797416
      Mauro Carvalho Chehab authored
      This driver has a lot of printk continuation lines for
      debugging purposes. Since commit 56387331
      ("Merge branch 'printk-cleanups"), this won't work as expected
      anymore. So, let's add KERN_CONT to those lines.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      3e797416
    • Mauro Carvalho Chehab's avatar
      [media] em28xx: don't break long lines · 5ccb197d
      Mauro Carvalho Chehab authored
      Due to the 80-cols 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. So, join those continuation
      lines.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      5ccb197d
    • Mauro Carvalho Chehab's avatar
      [media] tuner-xc2028: don't break long lines · 2af3eb64
      Mauro Carvalho Chehab authored
      Due to the 80-cols 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. So, join those continuation
      lines.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      2af3eb64
    • Mauro Carvalho Chehab's avatar
      [media] tuner-xc2028: mark printk continuation lines as such · 15c8ffc4
      Mauro Carvalho Chehab authored
      This driver has a lot of printk continuation lines for
      debugging purposes. Since commit 56387331
      ("Merge branch 'printk-cleanups"), this won't work as expected
      anymore. So, let's add KERN_CONT to those lines.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      15c8ffc4
  2. 17 Oct, 2016 2 commits
    • Mauro Carvalho Chehab's avatar
      [media] radio-bcm2048: don't ignore errors · 43ea43b9
      Mauro Carvalho Chehab authored
      Remove this warning:
      
      drivers/staging/media/bcm2048/radio-bcm2048.c: In function 'bcm2048_set_rds_no_lock':
      drivers/staging/media/bcm2048/radio-bcm2048.c:467:6: warning: variable 'err' set but not used [-Wunused-but-set-variable]
        int err;
            ^~~
      
      By returning the error code.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      43ea43b9
    • Mauro Carvalho Chehab's avatar
      Merge tag 'v4.9-rc1' into patchwork · aea98380
      Mauro Carvalho Chehab authored
      Linux 4.9-rc1
      
      * tag 'v4.9-rc1': (13774 commits)
        Linux 4.9-rc1
        score: traps: Add missing include file to fix build error
        fs/super.c: don't fool lockdep in freeze_super() and thaw_super() paths
        fs/super.c: fix race between freeze_super() and thaw_super()
        overlayfs: Fix setting IOP_XATTR flag
        iov_iter: kernel-doc import_iovec() and rw_copy_check_uvector()
        CIFS: Retrieve uid and gid from special sid if enabled
        CIFS: Add new mount option to set owner uid and gid from special sids in acl
        qedr: Add events support and register IB device
        qedr: Add GSI support
        qedr: Add LL2 RoCE interface
        qedr: Add support for data path
        qedr: Add support for memory registeration verbs
        qedr: Add support for QP verbs
        qedr: Add support for PD,PKEY and CQ verbs
        qedr: Add support for user context verbs
        qedr: Add support for RoCE HW init
        qedr: Add RoCE driver framework
        pkeys: Remove easily triggered WARN
        MIPS: Wire up new pkey_{mprotect,alloc,free} syscalls
        ...
      aea98380
  3. 15 Oct, 2016 7 commits
    • Linus Torvalds's avatar
      Linux 4.9-rc1 · 1001354c
      Linus Torvalds authored
      1001354c
    • Linus Torvalds's avatar
      Merge tag 'befs-v4.9-rc1' of git://github.com/luisbg/linux-befs · df34d04a
      Linus Torvalds authored
      Pull befs fixes from Luis de Bethencourt:
       "I recently took maintainership of the befs file system [0]. This is
        the first time I send you a git pull request, so please let me know if
        all the below is OK.
      
        Salah Triki and myself have been cleaning the code and fixing a few
        small bugs.
      
        Sorry I couldn't send this sooner in the merge window, I was waiting
        to have my GPG key signed by kernel members at ELCE in Berlin a few
        days ago."
      
      [0] https://lkml.org/lkml/2016/7/27/502
      
      * tag 'befs-v4.9-rc1' of git://github.com/luisbg/linux-befs: (39 commits)
        befs: befs: fix style issues in datastream.c
        befs: improve documentation in datastream.c
        befs: fix typos in datastream.c
        befs: fix typos in btree.c
        befs: fix style issues in super.c
        befs: fix comment style
        befs: add check for ag_shift in superblock
        befs: dump inode_size superblock information
        befs: remove unnecessary initialization
        befs: fix typo in befs_sb_info
        befs: add flags field to validate superblock state
        befs: fix typo in befs_find_key
        befs: remove unused BEFS_BT_PARMATCH
        fs: befs: remove ret variable
        fs: befs: remove in vain variable assignment
        fs: befs: remove unnecessary *befs_sb variable
        fs: befs: remove useless initialization to zero
        fs: befs: remove in vain variable assignment
        fs: befs: Insert NULL inode to dentry
        fs: befs: Remove useless calls to brelse in befs_find_brun_dblindirect
        ...
      df34d04a
    • Linus Torvalds's avatar
      Merge tag 'gcc-plugins-v4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux · 9ffc6694
      Linus Torvalds authored
      Pull gcc plugins update from Kees Cook:
       "This adds a new gcc plugin named "latent_entropy". It is designed to
        extract as much possible uncertainty from a running system at boot
        time as possible, hoping to capitalize on any possible variation in
        CPU operation (due to runtime data differences, hardware differences,
        SMP ordering, thermal timing variation, cache behavior, etc).
      
        At the very least, this plugin is a much more comprehensive example
        for how to manipulate kernel code using the gcc plugin internals"
      
      * tag 'gcc-plugins-v4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
        latent_entropy: Mark functions with __latent_entropy
        gcc-plugins: Add latent_entropy plugin
      9ffc6694
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus · 133d970e
      Linus Torvalds authored
      Pull MIPS updates from Ralf Baechle:
       "This is the main MIPS pull request for 4.9:
      
        MIPS core arch code:
         - traps: 64bit kernels should read CP0_EBase 64bit
         - traps: Convert ebase to KSEG0
         - c-r4k: Drop bc_wback_inv() from icache flush
         - c-r4k: Split user/kernel flush_icache_range()
         - cacheflush: Use __flush_icache_user_range()
         - uprobes: Flush icache via kernel address
         - KVM: Use __local_flush_icache_user_range()
         - c-r4k: Fix flush_icache_range() for EVA
         - Fix -mabi=64 build of vdso.lds
         - VDSO: Drop duplicated -I*/-E* aflags
         - tracing: move insn_has_delay_slot to a shared header
         - tracing: disable uprobe/kprobe on compact branch instructions
         - ptrace: Fix regs_return_value for kernel context
         - Squash lines for simple wrapper functions
         - Move identification of VP(E) into proc.c from smp-mt.c
         - Add definitions of SYNC barrierstype values
         - traps: Ensure full EBase is written
         - tlb-r4k: If there are wired entries, don't use TLBINVF
         - Sanitise coherentio semantics
         - dma-default: Don't check hw_coherentio if device is non-coherent
         - Support per-device DMA coherence
         - Adjust MIPS64 CAC_BASE to reflect Config.K0
         - Support generating Flattened Image Trees (.itb)
         - generic: Introduce generic DT-based board support
         - generic: Convert SEAD-3 to a generic board
         - Enable hardened usercopy
         - Don't specify STACKPROTECTOR in defconfigs
      
        Octeon:
         - Delete dead code and files across the platform.
         - Change to use all memory into use by default.
         - Rename upper case variables in setup code to lowercase.
         - Delete legacy hack for broken bootloaders.
         - Leave maintaining the link state to the actual ethernet/PHY drivers.
         - Add DTS for D-Link DSR-500N.
         - Fix PCI interrupt routing on D-Link DSR-500N.
      
        Pistachio:
         - Remove ANDROID_TIMED_OUTPUT from defconfig
      
        TX39xx:
         - Move GPIO setup from .mem_setup() to .arch_init()
         - Convert to Common Clock Framework
      
        TX49xx:
         - Move GPIO setup from .mem_setup() to .arch_init()
         - Convert to Common Clock Framework
      
        txx9wdt:
         - Add missing clock (un)prepare calls for CCF
      
        BMIPS:
         - Add PW, GPIO SDHCI and NAND device node names
         - Support APPENDED_DTB
         - Add missing bcm97435svmb to DT_NONE
         - Rename bcm96358nb4ser to bcm6358-neufbox4-sercom
         - Add DT examples for BCM63268, BCM3368 and BCM6362
         - Add support for BCM3368 and BCM6362
      
        PCI
         - Reduce stack frame usage
         - Use struct list_head lists
         - Support for CONFIG_PCI_DOMAINS_GENERIC
         - Make pcibios_set_cache_line_size an initcall
         - Inline pcibios_assign_all_busses
         - Split pci.c into pci.c & pci-legacy.c
         - Introduce CONFIG_PCI_DRIVERS_LEGACY
         - Support generic drivers
      
        CPC
         - Convert bare 'unsigned' to 'unsigned int'
         - Avoid lock when MIPS CM >= 3 is present
      
        GIC:
         - Delete unused file smp-gic.c
      
        mt7620:
         - Delete unnecessary assignment for the field "owner" from PCI
      
        BCM63xx:
         - Let clk_disable() return immediately if clk is NULL
      
        pm-cps:
         - Change FSB workaround to CPU blacklist
         - Update comments on barrier instructions
         - Use MIPS standard lightweight ordering barrier
         - Use MIPS standard completion barrier
         - Remove selection of sync types
         - Add MIPSr6 CPU support
         - Support CM3 changes to Coherence Enable Register
      
        SMP:
         - Wrap call to mips_cpc_lock_other in mips_cm_lock_other
         - Introduce mechanism for freeing and allocating IPIs
      
        cpuidle:
         - cpuidle-cps: Enable use with MIPSr6 CPUs.
      
        SEAD3:
         - Rewrite to use DT and generic kernel feature.
      
        USB:
         - host: ehci-sead3: Remove SEAD-3 EHCI code
      
        FBDEV:
         - cobalt_lcdfb: Drop SEAD3 support
      
        dt-bindings:
         -  Document a binding for simple ASCII LCDs
      
        auxdisplay:
         - img-ascii-lcd: driver for simple ASCII LCD displays
      
        irqchip i8259:
         - i8259: Add domain before mapping parent irq
         - i8259: Allow platforms to override poll function
         - i8259: Remove unused i8259A_irq_pending
      
        Malta:
         - Rewrite to use DT
      
        of/platform:
         - Probe "isa" busses by default
      
        CM:
         - Print CM error reports upon bus errors
      
        Module:
         - Migrate exception table users off module.h and onto extable.h
         - Make various drivers explicitly non-modular:
         - Audit and remove any unnecessary uses of module.h
      
        mailmap:
         - Canonicalize to Qais' current email address.
      
        Documentation:
         - MIPS supports HAVE_REGS_AND_STACK_ACCESS_API
      
        Loongson1C:
         - Add CPU support for Loongson1C
         - Add board support
         - Add defconfig
         - Add RTC support for Loongson1C board
      
        All this except one Documentation fix has sat in linux-next and has
        survived Imagination's automated build test system"
      
      * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (127 commits)
        Documentation: MIPS supports HAVE_REGS_AND_STACK_ACCESS_API
        MIPS: ptrace: Fix regs_return_value for kernel context
        MIPS: VDSO: Drop duplicated -I*/-E* aflags
        MIPS: Fix -mabi=64 build of vdso.lds
        MIPS: Enable hardened usercopy
        MIPS: generic: Convert SEAD-3 to a generic board
        MIPS: generic: Introduce generic DT-based board support
        MIPS: Support generating Flattened Image Trees (.itb)
        MIPS: Adjust MIPS64 CAC_BASE to reflect Config.K0
        MIPS: Print CM error reports upon bus errors
        MIPS: Support per-device DMA coherence
        MIPS: dma-default: Don't check hw_coherentio if device is non-coherent
        MIPS: Sanitise coherentio semantics
        MIPS: PCI: Support generic drivers
        MIPS: PCI: Introduce CONFIG_PCI_DRIVERS_LEGACY
        MIPS: PCI: Split pci.c into pci.c & pci-legacy.c
        MIPS: PCI: Inline pcibios_assign_all_busses
        MIPS: PCI: Make pcibios_set_cache_line_size an initcall
        MIPS: PCI: Support for CONFIG_PCI_DOMAINS_GENERIC
        MIPS: PCI: Use struct list_head lists
        ...
      133d970e
    • Linus Torvalds's avatar
      Merge tag 'sound-fix-4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 050aaeab
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "Just a few trivial small fixes"
      
      * tag 'sound-fix-4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: line6: fix a crash in line6_hwdep_write()
        ALSA: seq: fix passing wrong pointer in function call of compatibility layer
        ALSA: hda - Fix a failure of micmute led when having multi adcs
        ALSA: line6: Fix POD X3 Live audio input
      050aaeab
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · b26b5ef5
      Linus Torvalds authored
      Pull more misc uaccess and vfs updates from Al Viro:
       "The rest of the stuff from -next (more uaccess work) + assorted fixes"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        score: traps: Add missing include file to fix build error
        fs/super.c: don't fool lockdep in freeze_super() and thaw_super() paths
        fs/super.c: fix race between freeze_super() and thaw_super()
        overlayfs: Fix setting IOP_XATTR flag
        iov_iter: kernel-doc import_iovec() and rw_copy_check_uvector()
        blackfin: no access_ok() for __copy_{to,from}_user()
        arm64: don't zero in __copy_from_user{,_inatomic}
        arm: don't zero in __copy_from_user_inatomic()/__copy_from_user()
        arc: don't leak bits of kernel stack into coredump
        alpha: get rid of tail-zeroing in __copy_user()
      b26b5ef5
    • Linus Torvalds's avatar
      Merge branch 'for-next' of git://git.samba.org/sfrench/cifs-2.6 · 87dbe42a
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "Including:
      
         - nine bug fixes for stable. Some of these we found at the recent two
           weeks of SMB3 test events/plugfests.
      
         - significant improvements in reconnection (e.g. if server or network
           crashes) especially when mounted with "persistenthandles" or to
           server which advertises Continuous Availability on the share.
      
         - a new mount option "idsfromsid" which improves POSIX compatibility
           in some cases (when winbind not configured e.g.) by better (and
           faster) fetching uid/gid from acl (when "cifsacl" mount option is
           enabled). NB: we are almost complete work on "cifsacl" (querying
           mode/uid/gid from ACL) for SMB3, but SMB3 support for cifsacl is
           not included in this set.
      
         - improved handling for SMB3 "credits" (even if server is buggy)
      
        Still working on two sets of changes:
      
         - cifsacl enablement for SMB3
      
         - cleanup of RFC1001 length calculation (so we can handle encryption
           and multichannel and RDMA)
      
        And a couple of new bugs were reported recently (unrelated to above)
        so will probably have another merge request next week"
      
      * 'for-next' of git://git.samba.org/sfrench/cifs-2.6: (21 commits)
        CIFS: Retrieve uid and gid from special sid if enabled
        CIFS: Add new mount option to set owner uid and gid from special sids in acl
        CIFS: Reset read oplock to NONE if we have mandatory locks after reopen
        CIFS: Fix persistent handles re-opening on reconnect
        SMB2: Separate RawNTLMSSP authentication from SMB2_sess_setup
        SMB2: Separate Kerberos authentication from SMB2_sess_setup
        Expose cifs module parameters in sysfs
        Cleanup missing frees on some ioctls
        Enable previous version support
        Do not send SMB3 SET_INFO request if nothing is changing
        SMB3: Add mount parameter to allow user to override max credits
        fs/cifs: reopen persistent handles on reconnect
        Clarify locking of cifs file and tcon structures and make more granular
        Fix regression which breaks DFS mounting
        fs/cifs: keep guid when assigning fid to fileinfo
        SMB3: GUIDs should be constructed as random but valid uuids
        Set previous session id correctly on SMB3 reconnect
        cifs: Limit the overall credit acquired
        Display number of credits available
        Add way to query creation time of file via cifs xattr
        ...
      87dbe42a