Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtc: Replace HTTP links with HTTPS ones

Rationale:
Reduces attack surface on kernel devs opening the links for MITM
as HTTPS traffic is much harder to manipulate.

Deterministic algorithm:
For each file:
If not .svg:
For each line:
If doesn't contain `\bxmlns\b`:
For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
If both the HTTP and HTTPS versions
return 200 OK and serve the same content:
Replace HTTP with HTTPS.

Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20200706062727.18481-1-grandmaster@al2klimov.de

authored by

Alexander A. Klimov and committed by
Alexandre Belloni
3567d3d1 22f8d5a1

+5 -5
+1 -1
drivers/rtc/rtc-ab-b5ze-s3.c
··· 7 7 * 8 8 * Detailed datasheet of the chip is available here: 9 9 * 10 - * http://www.abracon.com/realtimeclock/AB-RTCMC-32.768kHz-B5ZE-S3-Application-Manual.pdf 10 + * https://www.abracon.com/realtimeclock/AB-RTCMC-32.768kHz-B5ZE-S3-Application-Manual.pdf 11 11 * 12 12 * This work is based on ISL12057 driver (drivers/rtc/rtc-isl12057.c). 13 13 *
+1 -1
drivers/rtc/rtc-bq32k.c
··· 6 6 * Copyright (C) 2014 Pavel Machek <pavel@denx.de> 7 7 * 8 8 * You can get hardware description at 9 - * http://www.ti.com/lit/ds/symlink/bq32000.pdf 9 + * https://www.ti.com/lit/ds/symlink/bq32000.pdf 10 10 */ 11 11 12 12 #include <linux/module.h>
+1 -1
drivers/rtc/rtc-mcp795.c
··· 7 7 * based on other Linux RTC drivers 8 8 * 9 9 * Device datasheet: 10 - * http://ww1.microchip.com/downloads/en/DeviceDoc/22280A.pdf 10 + * https://ww1.microchip.com/downloads/en/DeviceDoc/22280A.pdf 11 11 */ 12 12 13 13 #include <linux/module.h>
+2 -2
drivers/rtc/rtc-pcf85063.c
··· 21 21 /* 22 22 * Information for this driver was pulled from the following datasheets. 23 23 * 24 - * http://www.nxp.com/documents/data_sheet/PCF85063A.pdf 25 - * http://www.nxp.com/documents/data_sheet/PCF85063TP.pdf 24 + * https://www.nxp.com/documents/data_sheet/PCF85063A.pdf 25 + * https://www.nxp.com/documents/data_sheet/PCF85063TP.pdf 26 26 * 27 27 * PCF85063A -- Rev. 6 — 18 November 2015 28 28 * PCF85063TP -- Rev. 4 — 6 May 2015