{"action":"opened","number":1748,"pull_request":{"url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/pulls/1748","id":228947702,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4OTQ3NzAy","html_url":"https://github.com/projectacrn/acrn-hypervisor/pull/1748","diff_url":"https://github.com/projectacrn/acrn-hypervisor/pull/1748.diff","patch_url":"https://github.com/projectacrn/acrn-hypervisor/pull/1748.patch","issue_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/issues/1748","number":1748,"state":"open","locked":false,"title":"Replace function like macro with inline function","user":{"login":"binbinwu1","id":36183825,"node_id":"MDQ6VXNlcjM2MTgzODI1","avatar_url":"https://avatars2.githubusercontent.com/u/36183825?v=4","gravatar_id":"","url":"https://api.github.com/users/binbinwu1","html_url":"https://github.com/binbinwu1","followers_url":"https://api.github.com/users/binbinwu1/followers","following_url":"https://api.github.com/users/binbinwu1/following{/other_user}","gists_url":"https://api.github.com/users/binbinwu1/gists{/gist_id}","starred_url":"https://api.github.com/users/binbinwu1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binbinwu1/subscriptions","organizations_url":"https://api.github.com/users/binbinwu1/orgs","repos_url":"https://api.github.com/users/binbinwu1/repos","events_url":"https://api.github.com/users/binbinwu1/events{/privacy}","received_events_url":"https://api.github.com/users/binbinwu1/received_events","type":"User","site_admin":false},"body":"According to MISRA-C, function like should be replaced with inline function.\r\nAnd use the predefined inline function for bdf calculation.\r\n\r\nTracked-on: #1747 \r\nSigned-off-by: Binbin Wu <binbin.wu@intel.com>\r\nAcked-by: Eddie Dong <eddie.dong@intel.com>\r\n","created_at":"2018-11-07T08:15:57Z","updated_at":"2018-11-07T08:15:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/pulls/1748/commits","review_comments_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/pulls/1748/comments","review_comment_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/issues/1748/comments","statuses_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/statuses/c60dc62f3ba5711585614ce645c990b4a64af0b5","head":{"label":"binbinwu1:vtd_bdf_cleanup","ref":"vtd_bdf_cleanup","sha":"c60dc62f3ba5711585614ce645c990b4a64af0b5","user":{"login":"binbinwu1","id":36183825,"node_id":"MDQ6VXNlcjM2MTgzODI1","avatar_url":"https://avatars2.githubusercontent.com/u/36183825?v=4","gravatar_id":"","url":"https://api.github.com/users/binbinwu1","html_url":"https://github.com/binbinwu1","followers_url":"https://api.github.com/users/binbinwu1/followers","following_url":"https://api.github.com/users/binbinwu1/following{/other_user}","gists_url":"https://api.github.com/users/binbinwu1/gists{/gist_id}","starred_url":"https://api.github.com/users/binbinwu1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binbinwu1/subscriptions","organizations_url":"https://api.github.com/users/binbinwu1/orgs","repos_url":"https://api.github.com/users/binbinwu1/repos","events_url":"https://api.github.com/users/binbinwu1/events{/privacy}","received_events_url":"https://api.github.com/users/binbinwu1/received_events","type":"User","site_admin":false},"repo":{"id":125172476,"node_id":"MDEwOlJlcG9zaXRvcnkxMjUxNzI0NzY=","name":"acrn-hypervisor","full_name":"binbinwu1/acrn-hypervisor","private":false,"owner":{"login":"binbinwu1","id":36183825,"node_id":"MDQ6VXNlcjM2MTgzODI1","avatar_url":"https://avatars2.githubusercontent.com/u/36183825?v=4","gravatar_id":"","url":"https://api.github.com/users/binbinwu1","html_url":"https://github.com/binbinwu1","followers_url":"https://api.github.com/users/binbinwu1/followers","following_url":"https://api.github.com/users/binbinwu1/following{/other_user}","gists_url":"https://api.github.com/users/binbinwu1/gists{/gist_id}","starred_url":"https://api.github.com/users/binbinwu1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binbinwu1/subscriptions","organizations_url":"https://api.github.com/users/binbinwu1/orgs","repos_url":"https://api.github.com/users/binbinwu1/repos","events_url":"https://api.github.com/users/binbinwu1/events{/privacy}","received_events_url":"https://api.github.com/users/binbinwu1/received_events","type":"User","site_admin":false},"html_url":"https://github.com/binbinwu1/acrn-hypervisor","description":"Project ACRN hypervisor ","fork":true,"url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor","forks_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/forks","keys_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/teams","hooks_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/hooks","issue_events_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/issues/events{/number}","events_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/events","assignees_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/assignees{/user}","branches_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/branches{/branch}","tags_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/tags","blobs_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/git/refs{/sha}","trees_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/statuses/{sha}","languages_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/languages","stargazers_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/stargazers","contributors_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/contributors","subscribers_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/subscribers","subscription_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/subscription","commits_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/commits{/sha}","git_commits_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/git/commits{/sha}","comments_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/comments{/number}","issue_comment_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/issues/comments{/number}","contents_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/contents/{+path}","compare_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/merges","archive_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/downloads","issues_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/issues{/number}","pulls_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/pulls{/number}","milestones_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/milestones{/number}","notifications_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/labels{/name}","releases_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/releases{/id}","deployments_url":"https://api.github.com/repos/binbinwu1/acrn-hypervisor/deployments","created_at":"2018-03-14T07:27:10Z","updated_at":"2018-03-14T07:27:12Z","pushed_at":"2018-11-07T08:13:49Z","git_url":"git://github.com/binbinwu1/acrn-hypervisor.git","ssh_url":"git@github.com:binbinwu1/acrn-hypervisor.git","clone_url":"https://github.com/binbinwu1/acrn-hypervisor.git","svn_url":"https://github.com/binbinwu1/acrn-hypervisor","homepage":"","size":23027,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"projectacrn:master","ref":"master","sha":"ef974d1adf4da1789a7af314643f45ec623427ab","user":{"login":"projectacrn","id":36865262,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2ODY1MjYy","avatar_url":"https://avatars1.githubusercontent.com/u/36865262?v=4","gravatar_id":"","url":"https://api.github.com/users/projectacrn","html_url":"https://github.com/projectacrn","followers_url":"https://api.github.com/users/projectacrn/followers","following_url":"https://api.github.com/users/projectacrn/following{/other_user}","gists_url":"https://api.github.com/users/projectacrn/gists{/gist_id}","starred_url":"https://api.github.com/users/projectacrn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectacrn/subscriptions","organizations_url":"https://api.github.com/users/projectacrn/orgs","repos_url":"https://api.github.com/users/projectacrn/repos","events_url":"https://api.github.com/users/projectacrn/events{/privacy}","received_events_url":"https://api.github.com/users/projectacrn/received_events","type":"Organization","site_admin":false},"repo":{"id":123983554,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM5ODM1NTQ=","name":"acrn-hypervisor","full_name":"projectacrn/acrn-hypervisor","private":false,"owner":{"login":"projectacrn","id":36865262,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2ODY1MjYy","avatar_url":"https://avatars1.githubusercontent.com/u/36865262?v=4","gravatar_id":"","url":"https://api.github.com/users/projectacrn","html_url":"https://github.com/projectacrn","followers_url":"https://api.github.com/users/projectacrn/followers","following_url":"https://api.github.com/users/projectacrn/following{/other_user}","gists_url":"https://api.github.com/users/projectacrn/gists{/gist_id}","starred_url":"https://api.github.com/users/projectacrn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectacrn/subscriptions","organizations_url":"https://api.github.com/users/projectacrn/orgs","repos_url":"https://api.github.com/users/projectacrn/repos","events_url":"https://api.github.com/users/projectacrn/events{/privacy}","received_events_url":"https://api.github.com/users/projectacrn/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/projectacrn/acrn-hypervisor","description":"Project ACRN hypervisor ","fork":false,"url":"https://api.github.com/repos/projectacrn/acrn-hypervisor","forks_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/forks","keys_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/teams","hooks_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/hooks","issue_events_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/issues/events{/number}","events_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/events","assignees_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/assignees{/user}","branches_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/branches{/branch}","tags_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/tags","blobs_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/statuses/{sha}","languages_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/languages","stargazers_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/stargazers","contributors_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/contributors","subscribers_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/subscribers","subscription_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/subscription","commits_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/contents/{+path}","compare_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/merges","archive_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/downloads","issues_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/issues{/number}","pulls_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/pulls{/number}","milestones_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/milestones{/number}","notifications_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/labels{/name}","releases_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/releases{/id}","deployments_url":"https://api.github.com/repos/projectacrn/acrn-hypervisor/deployments","created_at":"2018-03-05T21:52:25Z","updated_at":"2018-11-07T07:58:12Z","pushed_at":"2018-11-07T07:58:10Z","git_url":"git://github.com/projectacrn/acrn-hypervisor.git","ssh_url":"git@github.com:projectacrn/acrn-hypervisor.git","clone_url":"https://github.com/projectacrn/acrn-hypervisor.git","svn_url":"https://github.com/projectacrn/acrn-hypervisor","homepage":"","size":24053,"stargazers_count":286,"watchers_count":286,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":179,"mirror_url":null,"archived":false,"open_issues_count":317,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":179,"open_issues":317,"watchers":286,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projectacrn/acrn-hypervisor/pulls/1748"},"html":{"href":"https://github.com/projectacrn/acrn-hypervisor/pull/1748"},"issue":{"href":"https://api.github.com/repos/projectacrn/acrn-hypervisor/issues/1748"},"comments":{"href":"https://api.github.com/repos/projectacrn/acrn-hypervisor/issues/1748/comments"},"review_comments":{"href":"https://api.github.com/repos/projectacrn/acrn-hypervisor/pulls/1748/comments"},"review_comment":{"href":"https://api.github.com/repos/projectacrn/acrn-hypervisor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectacrn/acrn-hypervisor/pulls/1748/commits"},"statuses":{"href":"https://api.github.com/repos/projectacrn/acrn-hypervisor/statuses/c60dc62f3ba5711585614ce645c990b4a64af0b5"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":22,"deletions":11,"changed_files":3}}
{"actor":{"display_login":"binbinwu1"}}