-- DBMS: snowflake
create or replace TABLE SAMPLE_COMMITS (
	"commit" VARCHAR(16777216),
	"tree" VARCHAR(16777216),
	"parent" VARIANT,
	"author" VARIANT,
	"committer" VARIANT,
	"subject" VARCHAR(16777216),
	"message" VARCHAR(16777216),
	"trailer" VARIANT,
	"difference" VARIANT,
	"difference_truncated" BOOLEAN,
	"repo_name" VARCHAR(16777216),
	"encoding" VARCHAR(16777216)
);

INSERT INTO "GITHUB_REPOS"."GITHUB_REPOS"."SAMPLE_COMMITS" (parent, committer, difference, message, author, difference_truncated, subject, trailer, encoding, commit, repo_name, tree) VALUES ('[
  "1c12c4cf9411eb130b245fa8d0fbbaf989477c7b"
]', '{
  "date": 1210817475000000,
  "email": "69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org",
  "name": "Linus Torvalds",
  "time_sec": 1210817475,
  "tz_offset": -420
}', '[
  {
    "new_mode": 33188,
    "new_path": "mm/memory_hotplug.c",
    "new_sha1": "833f854eabe50ad226696667db7e49d332840bb6",
    "old_mode": 33188,
    "old_path": "mm/memory_hotplug.c",
    "old_sha1": "656ad1c65422f0440a56b422b8431891e5304827"
  },
  {
    "new_mode": 33188,
    "new_path": "mm/page_alloc.c",
    "new_sha1": "63835579323a7ca70722154f5b3e6560872da409",
    "old_mode": 33188,
    "old_path": "mm/page_alloc.c",
    "old_sha1": "bdd5c432c426fdf6714ff90e1eebdfccfdccee8c"
  }
]', 'memory_hotplug: always initialize pageblock bitmap

Trying to online a new memory section that was added via memory hotplug
sometimes results in crashes when the new pages are added via __free_page.
 Reason for that is that the pageblock bitmap isn''t initialized and hence
contains random stuff.  That means that get_pageblock_migratetype()
returns also random stuff and therefore

	list_add(&page->lru,
		&zone->free_area[order].free_list[migratetype]);

in __free_one_page() tries to do a list_add to something that isn''t even
necessarily a list.

This happens since 86051ca5eaf5e560113ec7673462804c54284456 ("mm: fix
usemap initialization") which makes sure that the pageblock bitmap gets
only initialized for pages present in a zone.  Unfortunately for hot-added
memory the zones "grow" after the memmap and the pageblock memmap have
been initialized.  Which means that the new pages have an unitialized
bitmap.  To solve this the calls to grow_zone_span() and grow_pgdat_span()
are moved to __add_zone() just before the initialization happens.

The patch also moves the two functions since __add_zone() is the only
caller and I didn''t want to add a forward declaration.

Signed-off-by: Heiko Carstens <8dcf0f69152f32f23184f83357a3731522e56b9c@de.ibm.com>
Cc: Andy Whitcroft <b4658fdd7fbd645c2859b0e39d71018f32058d12@shadowen.org>
Cc: Dave Hansen <e169c2064f54e292652f83bb35eed10e1aa33f38@us.ibm.com>
Cc: Gerald Schaefer <7a67bf9a8691f9f1ca8ce9577e14c37413ea5f58@de.ibm.com>
Cc: KAMEZAWA Hiroyuki <634f508bd7c47cf0ee4126243675c3e598920fbc@jp.fujitsu.com>
Cc: Yasunori Goto <5e8c143c1cccd8ccee45b5a7b90115158373a5d7@jp.fujitsu.com>
Cc: <4fbacc2fa0ffdbb11bf1ad6925b886ebd08dd15f@kernel.org>
Signed-off-by: Andrew Morton <5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org>
Signed-off-by: Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>
', '{
  "date": 1210806352000000,
  "email": "8dcf0f69152f32f23184f83357a3731522e56b9c@de.ibm.com",
  "name": "Heiko Carstens",
  "time_sec": 1210806352,
  "tz_offset": -420
}', NULL, 'memory_hotplug: always initialize pageblock bitmap', '[
  {
    "email": "8dcf0f69152f32f23184f83357a3731522e56b9c@de.ibm.com",
    "key": "Signed-off-by",
    "value": "Heiko Carstens <8dcf0f69152f32f23184f83357a3731522e56b9c@de.ibm.com>"
  },
  {
    "email": "b4658fdd7fbd645c2859b0e39d71018f32058d12@shadowen.org",
    "key": "Cc",
    "value": "Andy Whitcroft <b4658fdd7fbd645c2859b0e39d71018f32058d12@shadowen.org>"
  },
  {
    "email": "e169c2064f54e292652f83bb35eed10e1aa33f38@us.ibm.com",
    "key": "Cc",
    "value": "Dave Hansen <e169c2064f54e292652f83bb35eed10e1aa33f38@us.ibm.com>"
  },
  {
    "email": "7a67bf9a8691f9f1ca8ce9577e14c37413ea5f58@de.ibm.com",
    "key": "Cc",
    "value": "Gerald Schaefer <7a67bf9a8691f9f1ca8ce9577e14c37413ea5f58@de.ibm.com>"
  },
  {
    "email": "634f508bd7c47cf0ee4126243675c3e598920fbc@jp.fujitsu.com",
    "key": "Cc",
    "value": "KAMEZAWA Hiroyuki <634f508bd7c47cf0ee4126243675c3e598920fbc@jp.fujitsu.com>"
  },
  {
    "email": "5e8c143c1cccd8ccee45b5a7b90115158373a5d7@jp.fujitsu.com",
    "key": "Cc",
    "value": "Yasunori Goto <5e8c143c1cccd8ccee45b5a7b90115158373a5d7@jp.fujitsu.com>"
  },
  {
    "email": "4fbacc2fa0ffdbb11bf1ad6925b886ebd08dd15f@kernel.org",
    "key": "Cc",
    "value": "<4fbacc2fa0ffdbb11bf1ad6925b886ebd08dd15f@kernel.org>"
  },
  {
    "email": "5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org",
    "key": "Signed-off-by",
    "value": "Andrew Morton <5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org>"
  },
  {
    "email": "69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org",
    "key": "Signed-off-by",
    "value": "Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>"
  }
]', NULL, '76cdd58e558669366adfaded436fda01b30cce3e', 'torvalds/linux', 'deaccb499752c928919693edea65f9ea4c1fe756'), ('[
  "4156153c4daddf12dd386016f96a947a01e93bf4"
]', '{
  "date": 1326427983000000,
  "email": "69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org",
  "name": "Linus Torvalds",
  "time_sec": 1326427983,
  "tz_offset": -480
}', '[
  {
    "new_mode": 33188,
    "new_path": "arch/Kconfig",
    "new_sha1": "4f55c736be11ea3aa3ac6762b0ec3d1371b872ce",
    "old_mode": 33188,
    "old_path": "arch/Kconfig",
    "old_sha1": "22182a8cc62c9610edaaf5aefaef83b8de07af71"
  },
  {
    "new_mode": 33188,
    "new_path": "arch/x86/Kconfig",
    "new_sha1": "6c14ecd851d0b3ae9d32cbd73ce97419b1cb4a48",
    "old_mode": 33188,
    "old_path": "arch/x86/Kconfig",
    "old_sha1": "59717fd17bc738720860e0b3f9d67ad3af211441"
  },
  {
    "new_mode": 33188,
    "new_path": "arch/x86/Kconfig.cpu",
    "new_sha1": "3c57033e22118f2ce7771d10fa8305193c94af20",
    "old_mode": 33188,
    "old_path": "arch/x86/Kconfig.cpu",
    "old_sha1": "99d2ab8b77953bde375e44328604aee7473fdd59"
  },
  {
    "new_mode": 33188,
    "new_path": "arch/x86/um/Kconfig",
    "new_sha1": "b2b54d2edf53979fb7daf770c0d4bf0215a73fe0",
    "old_mode": 33188,
    "old_path": "arch/x86/um/Kconfig",
    "old_sha1": "a62bfc66239ec5bd7aac0d7b423e817c7ace85ce"
  },
  {
    "new_mode": 33188,
    "new_path": "mm/slub.c",
    "new_sha1": "4907563ef7ff7e199577f5d2ffedda6fa358271e",
    "old_mode": 33188,
    "old_path": "mm/slub.c",
    "old_sha1": "72aa8413460932bf0826cf3d40bf52798a0e9ab9"
  }
]', 'mm,x86,um: move CMPXCHG_DOUBLE config option

Move CMPXCHG_DOUBLE and rename it to HAVE_CMPXCHG_DOUBLE so architectures
can simply select the option if it is supported.

Signed-off-by: Heiko Carstens <8dcf0f69152f32f23184f83357a3731522e56b9c@de.ibm.com>
Acked-by: Christoph Lameter <ef3ecccf258fa062c5c6521a4887d40541963af7@linux.com>
Cc: Pekka Enberg <add4fcd06328a394f0ad91feda7ee057316dc5ed@kernel.org>
Cc: Ingo Molnar <9dbbbf0688fedc85ad4da37637f1a64b8c718ee2@elte.hu>
Cc: Thomas Gleixner <00e4cf8f46a57000a44449bf9dd8cbbcc209fd2a@linutronix.de>
Cc: "H. Peter Anvin" <8a453bad9912ffe59bc0f0b8abe03df9be19379e@zytor.com>
Signed-off-by: Andrew Morton <5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org>
Signed-off-by: Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>
', '{
  "date": 1326417453000000,
  "email": "8dcf0f69152f32f23184f83357a3731522e56b9c@de.ibm.com",
  "name": "Heiko Carstens",
  "time_sec": 1326417453,
  "tz_offset": -480
}', NULL, 'mm,x86,um: move CMPXCHG_DOUBLE config option', '[
  {
    "email": "8dcf0f69152f32f23184f83357a3731522e56b9c@de.ibm.com",
    "key": "Signed-off-by",
    "value": "Heiko Carstens <8dcf0f69152f32f23184f83357a3731522e56b9c@de.ibm.com>"
  },
  {
    "email": "ef3ecccf258fa062c5c6521a4887d40541963af7@linux.com",
    "key": "Acked-by",
    "value": "Christoph Lameter <ef3ecccf258fa062c5c6521a4887d40541963af7@linux.com>"
  },
  {
    "email": "add4fcd06328a394f0ad91feda7ee057316dc5ed@kernel.org",
    "key": "Cc",
    "value": "Pekka Enberg <add4fcd06328a394f0ad91feda7ee057316dc5ed@kernel.org>"
  },
  {
    "email": "9dbbbf0688fedc85ad4da37637f1a64b8c718ee2@elte.hu",
    "key": "Cc",
    "value": "Ingo Molnar <9dbbbf0688fedc85ad4da37637f1a64b8c718ee2@elte.hu>"
  },
  {
    "email": "00e4cf8f46a57000a44449bf9dd8cbbcc209fd2a@linutronix.de",
    "key": "Cc",
    "value": "Thomas Gleixner <00e4cf8f46a57000a44449bf9dd8cbbcc209fd2a@linutronix.de>"
  },
  {
    "email": "8a453bad9912ffe59bc0f0b8abe03df9be19379e@zytor.com",
    "key": "Cc",
    "value": "\"H. Peter Anvin\" <8a453bad9912ffe59bc0f0b8abe03df9be19379e@zytor.com>"
  },
  {
    "email": "5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org",
    "key": "Signed-off-by",
    "value": "Andrew Morton <5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org>"
  },
  {
    "email": "69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org",
    "key": "Signed-off-by",
    "value": "Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>"
  }
]', NULL, '2565409fc0303f3ab8d66b8326702a687962a29b', 'torvalds/linux', 'b57f238d77ee87a991371a7021462b8c71351659'), ('[
  "29f12ca32122db98481150be09d35bd72b68045e"
]', '{
  "date": 1258039557000000,
  "email": "69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org",
  "name": "Linus Torvalds",
  "time_sec": 1258039557,
  "tz_offset": -480
}', '[
  {
    "new_mode": 33188,
    "new_path": "fs/compat_ioctl.c",
    "new_sha1": "d84e7058c298a56dd9b22c6c6fa6fb286fb730c9",
    "old_mode": 33188,
    "old_path": "fs/compat_ioctl.c",
    "old_sha1": "f91fd51b32e321efc97a61b0d79274ecd81533ca"
  }
]', 'fs: add missing compat_ptr handling for FS_IOC_RESVSP ioctl

For FS_IOC_RESVSP and FS_IOC_RESVSP64 compat_sys_ioctl() uses its
arg argument as a pointer to userspace. However it is missing a
a call to compat_ptr() which will do a proper pointer conversion.

This was introduced with 3e63cbb1 "fs: Add new pre-allocation ioctls
to vfs for compatibility with legacy xfs ioctls".

Signed-off-by: Heiko Carstens <8dcf0f69152f32f23184f83357a3731522e56b9c@de.ibm.com>
Cc: Ankit Jain <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@ankitjain.org>
Acked-by: Christoph Hellwig <923f7720577207a44b32e59bbfbea59d27f1ae8e@lst.de>
Cc: Al Viro <de609eb4d5d70b1d38ec6642adbfc33a2781f63c@zeniv.linux.org.uk>
Acked-by: Arnd Bergmann <e4472cc19f359953704d0123967dc8ec6d534e3c@googlemail.com>
Acked-by: David S. Miller <fe08d3c717adf2ae63592e4c9aec6e3e404d8e3e@davemloft.net>
Cc: <4fbacc2fa0ffdbb11bf1ad6925b886ebd08dd15f@kernel.org>		[2.6.31.x]
Signed-off-by: Andrew Morton <5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org>
Signed-off-by: Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>
', '{
  "date": 1257978394000000,
  "email": "8dcf0f69152f32f23184f83357a3731522e56b9c@de.ibm.com",
  "name": "Heiko Carstens",
  "time_sec": 1257978394,
  "tz_offset": -480
}', NULL, 'fs: add missing compat_ptr handling for FS_IOC_RESVSP ioctl', '[
  {
    "email": "8dcf0f69152f32f23184f83357a3731522e56b9c@de.ibm.com",
    "key": "Signed-off-by",
    "value": "Heiko Carstens <8dcf0f69152f32f23184f83357a3731522e56b9c@de.ibm.com>"
  },
  {
    "email": "b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@ankitjain.org",
    "key": "Cc",
    "value": "Ankit Jain <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@ankitjain.org>"
  },
  {
    "email": "923f7720577207a44b32e59bbfbea59d27f1ae8e@lst.de",
    "key": "Acked-by",
    "value": "Christoph Hellwig <923f7720577207a44b32e59bbfbea59d27f1ae8e@lst.de>"
  },
  {
    "email": "de609eb4d5d70b1d38ec6642adbfc33a2781f63c@zeniv.linux.org.uk",
    "key": "Cc",
    "value": "Al Viro <de609eb4d5d70b1d38ec6642adbfc33a2781f63c@zeniv.linux.org.uk>"
  },
  {
    "email": "e4472cc19f359953704d0123967dc8ec6d534e3c@googlemail.com",
    "key": "Acked-by",
    "value": "Arnd Bergmann <e4472cc19f359953704d0123967dc8ec6d534e3c@googlemail.com>"
  },
  {
    "email": "fe08d3c717adf2ae63592e4c9aec6e3e404d8e3e@davemloft.net",
    "key": "Acked-by",
    "value": "David S. Miller <fe08d3c717adf2ae63592e4c9aec6e3e404d8e3e@davemloft.net>"
  },
  {
    "email": "4fbacc2fa0ffdbb11bf1ad6925b886ebd08dd15f@kernel.org",
    "key": "Cc",
    "value": "<4fbacc2fa0ffdbb11bf1ad6925b886ebd08dd15f@kernel.org>\t\t[2.6.31.x]"
  },
  {
    "email": "5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org",
    "key": "Signed-off-by",
    "value": "Andrew Morton <5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org>"
  },
  {
    "email": "69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org",
    "key": "Signed-off-by",
    "value": "Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>"
  }
]', NULL, '7779d7bed950a7fb1af4f540c2f82a6b81b65901', 'torvalds/linux', 'ca8e8d16a3f50d670f95b3b51c1aaad81a0e05f8'), ('[
  "0487683096decad0720dfaf80b9d28173d5f6662"
]', '{
  "date": 1253629068000000,
  "email": "69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org",
  "name": "Linus Torvalds",
  "time_sec": 1253629068,
  "tz_offset": -420
}', '[
  {
    "new_mode": 33261,
    "new_path": "scripts/checkpatch.pl",
    "new_sha1": "87bbb8bce9bfe3702a3e6b896dce4338bf4f6d2d",
    "old_mode": 33261,
    "old_path": "scripts/checkpatch.pl",
    "old_sha1": "8b1dfd544c6430595873c3f659189074ea090e78"
  }
]', 'checkpatch: add some common Blackfin checks

Add checks for Blackfin-specific issues that seem to crop up from time to
time.  In particular, we have helper macros to break a 32bit address into
the hi/lo parts, and we want to make sure people use the csync/ssync
variant that includes fun anomaly workarounds.

Signed-off-by: Mike Frysinger <8f3f75c74bd5184edcfa6534cab3c13a00a2f794@gentoo.org>
Signed-off-by: Bryan Wu <956b36c0f472d2edb239225c10f7e4411d1efbb9@kernel.org>
Cc: Andy Whitcroft <b4658fdd7fbd645c2859b0e39d71018f32058d12@shadowen.org>
Signed-off-by: Andrew Morton <5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org>
Signed-off-by: Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>
', '{
  "date": 1253577880000000,
  "email": "8f3f75c74bd5184edcfa6534cab3c13a00a2f794@gentoo.org",
  "name": "Mike Frysinger",
  "time_sec": 1253577880,
  "tz_offset": -420
}', NULL, 'checkpatch: add some common Blackfin checks', '[
  {
    "email": "8f3f75c74bd5184edcfa6534cab3c13a00a2f794@gentoo.org",
    "key": "Signed-off-by",
    "value": "Mike Frysinger <8f3f75c74bd5184edcfa6534cab3c13a00a2f794@gentoo.org>"
  },
  {
    "email": "956b36c0f472d2edb239225c10f7e4411d1efbb9@kernel.org",
    "key": "Signed-off-by",
    "value": "Bryan Wu <956b36c0f472d2edb239225c10f7e4411d1efbb9@kernel.org>"
  },
  {
    "email": "b4658fdd7fbd645c2859b0e39d71018f32058d12@shadowen.org",
    "key": "Cc",
    "value": "Andy Whitcroft <b4658fdd7fbd645c2859b0e39d71018f32058d12@shadowen.org>"
  },
  {
    "email": "5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org",
    "key": "Signed-off-by",
    "value": "Andrew Morton <5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org>"
  },
  {
    "email": "69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org",
    "key": "Signed-off-by",
    "value": "Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>"
  }
]', NULL, '42e41c54d61e32e8a349943607daa53205324d7f', 'torvalds/linux', 'a38050a0b2e716100372601262273cdbd195baf8'), ('[
  "c68d2b1594548cda7f6dbac6a4d9d30a9b01558c"
]', '{
  "date": 1256827170000000,
  "email": "69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org",
  "name": "Linus Torvalds",
  "time_sec": 1256827170,
  "tz_offset": -420
}', '[
  {
    "new_mode": 33188,
    "new_path": "drivers/gpio/twl4030-gpio.c",
    "new_sha1": "49384a7c54920399e2d629d3e87b6986b3a964eb",
    "old_mode": 33188,
    "old_path": "drivers/gpio/twl4030-gpio.c",
    "old_sha1": "afad14792141116898c6291288616b23e9308a36"
  }
]', 'twl4030-gpio: remove __devexit markings from remove func

The gpio_twl4030_probe() function calls gpio_twl4030_remove(), and the
former has __devinit, so the latter cannot use __devexit.  Otherwise we
hit the section mismatch warning:

WARNING: drivers/gpio/built-in.o(.devinit.text+0x71a): Section mismatch
	in reference from the function _gpio_twl4030_probe() to the function
	.devexit.text:_gpio_twl4030_remove()
The function __devinit _gpio_twl4030_probe() references a function
	__devexit _gpio_twl4030_remove().
This is often seen when error handling in the init function uses
	functionality in the exit path.
The fix is often to remove the __devexit annotation of
	_gpio_twl4030_remove() so it may be used outside an exit section.

Signed-off-by: Mike Frysinger <8f3f75c74bd5184edcfa6534cab3c13a00a2f794@gentoo.org>
Cc: David Brownell <e543181633fc0fc2787945ef377537d9112d0c96@pacbell.net>
Signed-off-by: Andrew Morton <5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org>
Signed-off-by: Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>
', '{
  "date": 1256601006000000,
  "email": "8f3f75c74bd5184edcfa6534cab3c13a00a2f794@gentoo.org",
  "name": "Mike Frysinger",
  "time_sec": 1256601006,
  "tz_offset": -420
}', NULL, 'twl4030-gpio: remove __devexit markings from remove func', '[
  {
    "email": "8f3f75c74bd5184edcfa6534cab3c13a00a2f794@gentoo.org",
    "key": "Signed-off-by",
    "value": "Mike Frysinger <8f3f75c74bd5184edcfa6534cab3c13a00a2f794@gentoo.org>"
  },
  {
    "email": "e543181633fc0fc2787945ef377537d9112d0c96@pacbell.net",
    "key": "Cc",
    "value": "David Brownell <e543181633fc0fc2787945ef377537d9112d0c96@pacbell.net>"
  },
  {
    "email": "5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org",
    "key": "Signed-off-by",
    "value": "Andrew Morton <5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org>"
  },
  {
    "email": "69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org",
    "key": "Signed-off-by",
    "value": "Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>"
  }
]', NULL, '46c529cf79f6c7b239f83b4997d676dd5b51908c', 'torvalds/linux', '2d04be82f11d82a48ab3b72fa0e71862bed24ffa');