Skip to content

Commit

Permalink
Merge tag 'asm-generic-4.6' of git://git.kernel.org/pub/scm/linux/ker…
Browse files Browse the repository at this point in the history
…nel/git/arnd/asm-generic

Pull asm-generic updates from Arnd Bergmann:
 "There are only three patches this time, most other changes to files in
  include/asm-generic tend to go through the tree of whoever depends on
  the change.

  Two patches are cleanups for stuff that is no longer needed, the main
  change is to adapt the generic version of BUG_ON() for CONFIG_BUG=n to
  make it behave consistently with BUG().

  This avoids undefined behavior along with a number of warnings about
  that undefined behavior in randconfig builds when we keep going on
  after hitting a BUG_ON()"

* tag 'asm-generic-4.6' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic:
  asm-generic: remove old nonatomic-io wrapper files
  asm-generic: default BUG_ON(x) to if(x)BUG()
  asm-generic: page.h: Remove useless get_user_page and free_user_page
  • Loading branch information
torvalds committed Mar 25, 2016
2 parents 3d66c6b + a1cbaad commit 11caf57
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 29 deletions.
3 changes: 0 additions & 3 deletions arch/arc/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@

#ifndef __ASSEMBLY__

#define get_user_page(vaddr) __get_free_page(GFP_KERNEL)
#define free_user_page(page, addr) free_page(addr)

#define clear_page(paddr) memset((paddr), 0, PAGE_SIZE)
#define copy_page(to, from) memcpy((to), (from), PAGE_SIZE)

Expand Down
3 changes: 0 additions & 3 deletions arch/arm/include/asm/page-nommu.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
#define KTHREAD_SIZE PAGE_SIZE
#endif

#define get_user_page(vaddr) __get_free_page(GFP_KERNEL)
#define free_user_page(page, addr) free_page(addr)

#define clear_page(page) memset((page), 0, PAGE_SIZE)
#define copy_page(to,from) memcpy((to), (from), PAGE_SIZE)

Expand Down
3 changes: 0 additions & 3 deletions arch/frv/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@

#ifndef __ASSEMBLY__

#define get_user_page(vaddr) __get_free_page(GFP_KERNEL)
#define free_user_page(page, addr) free_page(addr)

#define clear_page(pgaddr) memset((pgaddr), 0, PAGE_SIZE)
#define copy_page(to,from) memcpy((to), (from), PAGE_SIZE)

Expand Down
3 changes: 0 additions & 3 deletions arch/m68k/include/asm/page_mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
#include <linux/compiler.h>
#include <asm/module.h>

#define get_user_page(vaddr) __get_free_page(GFP_KERNEL)
#define free_user_page(page, addr) free_page(addr)

/*
* We don't need to check for alignment etc.
*/
Expand Down
3 changes: 0 additions & 3 deletions arch/m68k/include/asm/page_no.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
extern unsigned long memory_start;
extern unsigned long memory_end;

#define get_user_page(vaddr) __get_free_page(GFP_KERNEL)
#define free_user_page(page, addr) free_page(addr)

#define clear_page(page) memset((page), 0, PAGE_SIZE)
#define copy_page(to,from) memcpy((to), (from), PAGE_SIZE)

Expand Down
3 changes: 0 additions & 3 deletions arch/openrisc/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@

#ifndef __ASSEMBLY__

#define get_user_page(vaddr) __get_free_page(GFP_KERNEL)
#define free_user_page(page, addr) free_page(addr)

#define clear_page(page) memset((page), 0, PAGE_SIZE)
#define copy_page(to, from) memcpy((to), (from), PAGE_SIZE)

Expand Down
2 changes: 1 addition & 1 deletion drivers/dma/idma64.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <linux/spinlock.h>
#include <linux/types.h>

#include <asm-generic/io-64-nonatomic-lo-hi.h>
#include <linux/io-64-nonatomic-lo-hi.h>

#include "virt-dma.h"

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* (at your option) any later version.
*/

#include <asm-generic/io-64-nonatomic-hi-lo.h>
#include <linux/io-64-nonatomic-hi-lo.h>
#include <linux/of_mdio.h>
#include "hns_dsaf_main.h"
#include "hns_dsaf_mac.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ethernet/netronome/nfp/nfp_net.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#include <linux/interrupt.h>
#include <linux/netdevice.h>
#include <linux/pci.h>
#include <asm-generic/io-64-nonatomic-hi-lo.h>
#include <linux/io-64-nonatomic-hi-lo.h>

#include "nfp_net_ctrl.h"

Expand Down
2 changes: 1 addition & 1 deletion include/asm-generic/bug.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ void __warn(const char *file, int line, void *caller, unsigned taint,
#endif

#ifndef HAVE_ARCH_BUG_ON
#define BUG_ON(condition) do { if (condition) ; } while (0)
#define BUG_ON(condition) do { if (condition) BUG(); } while (0)
#endif

#ifndef HAVE_ARCH_WARN_ON
Expand Down
2 changes: 0 additions & 2 deletions include/asm-generic/io-64-nonatomic-hi-lo.h

This file was deleted.

2 changes: 0 additions & 2 deletions include/asm-generic/io-64-nonatomic-lo-hi.h

This file was deleted.

3 changes: 0 additions & 3 deletions include/asm-generic/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@

#ifndef __ASSEMBLY__

#define get_user_page(vaddr) __get_free_page(GFP_KERNEL)
#define free_user_page(page, addr) free_page(addr)

#define clear_page(page) memset((page), 0, PAGE_SIZE)
#define copy_page(to,from) memcpy((to), (from), PAGE_SIZE)

Expand Down

0 comments on commit 11caf57

Please sign in to comment.