diff options
| author | Roman Kiryanov <rkir@google.com> | 2018-04-30 14:01:51 -0700 |
|---|---|---|
| committer | Roman Kiryanov <rkir@google.com> | 2018-05-01 11:51:43 -0700 |
| commit | c4fcb01762a4b9c3d4585becb812677bb3cd9495 (patch) | |
| tree | 235483c582db23c93fc298d2efdd204d730619f6 /drivers/platform | |
| parent | 0794d75be19c67bbddd9875982662c75261a9f69 (diff) | |
goldfish: pipe: ANDROID: replace 'BUG_ON' with 'BUILD_BUG_ON'
Bug: 72717639
Bug: 66884503
Change-Id: I6afcf21c7ff0fd2f5fcca327813b8406798c4269
Signed-off-by: Roman Kiryanov <rkir@google.com>
Diffstat (limited to 'drivers/platform')
| -rw-r--r-- | drivers/platform/goldfish/goldfish_pipe_v2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/goldfish/goldfish_pipe_v2.c b/drivers/platform/goldfish/goldfish_pipe_v2.c index d1416044aa4c..33bb0057668a 100644 --- a/drivers/platform/goldfish/goldfish_pipe_v2.c +++ b/drivers/platform/goldfish/goldfish_pipe_v2.c @@ -804,7 +804,7 @@ static int goldfish_pipe_device_init_v2(struct platform_device *pdev) * needs to be contained in a single physical page. The easiest choice * is to just allocate a page and place the buffers in it. */ - BUG_ON(sizeof(*dev->buffers) > PAGE_SIZE); + BUILD_BUG_ON(sizeof(*dev->buffers) > PAGE_SIZE); page = (char*)__get_free_page(GFP_KERNEL); if (!page) { kfree(dev->pipes); @@ -845,7 +845,7 @@ static int goldfish_pipe_probe(struct platform_device *pdev) struct resource *r; struct goldfish_pipe_dev *dev = pipe_dev; - BUG_ON(sizeof(struct goldfish_pipe_command) > PAGE_SIZE); + BUILD_BUG_ON(sizeof(struct goldfish_pipe_command) > PAGE_SIZE); /* not thread safe, but this should not happen */ WARN_ON(dev->base != NULL); |
