Message ID | 20220126093951.1470898-9-lucas.demarchi@intel.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | lib/string_helpers: Add a few string helpers | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Guessing tree name failed - patch did not apply |
On Wed, 26 Jan 2022, Lucas De Marchi <lucas.demarchi@intel.com> wrote: > Sort includes alphabetically so it's easier to add/remove includes and > know when that is needed. > > Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> > --- > drivers/gpu/drm/drm_gem.c | 20 ++++++++++---------- > 1 file changed, 10 insertions(+), 10 deletions(-) > > diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c > index 4dcdec6487bb..21631c22b374 100644 > --- a/drivers/gpu/drm/drm_gem.c > +++ b/drivers/gpu/drm/drm_gem.c > @@ -25,20 +25,20 @@ > * > */ > > -#include <linux/types.h> > -#include <linux/slab.h> > -#include <linux/mm.h> > -#include <linux/uaccess.h> > -#include <linux/fs.h> > +#include <linux/dma-buf-map.h> > +#include <linux/dma-buf.h> > #include <linux/file.h> > -#include <linux/module.h> > +#include <linux/fs.h> > +#include <linux/mem_encrypt.h> > +#include <linux/mm.h> > #include <linux/mman.h> > +#include <linux/module.h> > #include <linux/pagemap.h> > -#include <linux/shmem_fs.h> > -#include <linux/dma-buf.h> > -#include <linux/dma-buf-map.h> > -#include <linux/mem_encrypt.h> > #include <linux/pagevec.h> > +#include <linux/shmem_fs.h> > +#include <linux/slab.h> > +#include <linux/types.h> > +#include <linux/uaccess.h> > > #include <drm/drm.h> > #include <drm/drm_device.h>
diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c index 4dcdec6487bb..21631c22b374 100644 --- a/drivers/gpu/drm/drm_gem.c +++ b/drivers/gpu/drm/drm_gem.c @@ -25,20 +25,20 @@ * */ -#include <linux/types.h> -#include <linux/slab.h> -#include <linux/mm.h> -#include <linux/uaccess.h> -#include <linux/fs.h> +#include <linux/dma-buf-map.h> +#include <linux/dma-buf.h> #include <linux/file.h> -#include <linux/module.h> +#include <linux/fs.h> +#include <linux/mem_encrypt.h> +#include <linux/mm.h> #include <linux/mman.h> +#include <linux/module.h> #include <linux/pagemap.h> -#include <linux/shmem_fs.h> -#include <linux/dma-buf.h> -#include <linux/dma-buf-map.h> -#include <linux/mem_encrypt.h> #include <linux/pagevec.h> +#include <linux/shmem_fs.h> +#include <linux/slab.h> +#include <linux/types.h> +#include <linux/uaccess.h> #include <drm/drm.h> #include <drm/drm_device.h>
Sort includes alphabetically so it's easier to add/remove includes and know when that is needed. Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> --- drivers/gpu/drm/drm_gem.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)