1. 11 3月, 2010 2 次提交
  2. 01 3月, 2010 10 次提交
  3. 28 2月, 2010 2 次提交
  4. 26 2月, 2010 3 次提交
  5. 24 2月, 2010 2 次提交
  6. 22 2月, 2010 2 次提交
  7. 05 2月, 2010 1 次提交
  8. 03 2月, 2010 2 次提交
  9. 26 1月, 2010 1 次提交
  10. 22 1月, 2010 1 次提交
  11. 12 1月, 2010 2 次提交
  12. 11 1月, 2010 6 次提交
    • J
      drivers/block/drbd/drbd_receiver.c: correct NULL test · 23978161
      Julia Lawall 提交于
      Test the just-allocated value for NULL rather than some other value.
      
      The semantic patch that makes this change is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @@
      expression x,y;
      statement S;
      @@
      
      x = \(kmalloc\|kcalloc\|kzalloc\)(...);
      (
      if ((x) == NULL) S
      |
      if (
      -   y
      +   x
             == NULL)
       S
      )
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Cc: Lars Ellenberg <drbd-dev@lists.linbit.com>
      Cc: Philipp Reisner <philipp.reisner@linbit.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      23978161
    • M
      block: make virtio device id constant · 47483e25
      Márton Németh 提交于
      The id_table field of the struct virtio_driver is constant in <linux/virtio.h>
      so it is worth to make id_table also constant.
      
      The semantic match that finds this kind of pattern is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r@
      disable decl_init,const_decl_init;
      identifier I1, I2, x;
      @@
      	struct I1 {
      	  ...
      	  const struct I2 *x;
      	  ...
      	};
      @s@
      identifier r.I1, y;
      identifier r.x, E;
      @@
      	struct I1 y = {
      	  .x = E,
      	};
      @c@
      identifier r.I2;
      identifier s.E;
      @@
      	const struct I2 E[] = ... ;
      @depends on !c@
      identifier r.I2;
      identifier s.E;
      @@
      +	const
      	struct I2 E[] = ...;
      // </smpl>
      Signed-off-by: NMárton Németh <nm127@freemail.hu>
      Cc: Julia Lawall <julia@diku.dk>
      Cc: cocci@diku.dk
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      47483e25
    • M
      block: make xenbus device id constant · ec9c42ec
      Márton Németh 提交于
      The ids field of the struct xenbus_device_id is constant in <linux/xen/xenbus.h>
      so it is worth to make blkfront_ids also constant.
      
      The semantic match that finds this kind of pattern is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r@
      disable decl_init,const_decl_init;
      identifier I1, I2, x;
      @@
      	struct I1 {
      	  ...
      	  const struct I2 *x;
      	  ...
      	};
      @s@
      identifier r.I1, y;
      identifier r.x, E;
      @@
      	struct I1 y = {
      	  .x = E,
      	};
      @c@
      identifier r.I2;
      identifier s.E;
      @@
      	const struct I2 E[] = ... ;
      @depends on !c@
      identifier r.I2;
      identifier s.E;
      @@
      +	const
      	struct I2 E[] = ...;
      // </smpl>
      Signed-off-by: NMárton Németh <nm127@freemail.hu>
      Cc: Julia Lawall <julia@diku.dk>
      Cc: cocci@diku.dk
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      ec9c42ec
    • M
      block: make Open Firmware device id constant · 5cccfd9b
      Márton Németh 提交于
      The match_table field of the struct of_device_id is constant in <linux/of_platform.h>
      so it is worth to make ace_of_match also constant.
      
      The semantic match that finds this kind of pattern is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r@
      disable decl_init,const_decl_init;
      identifier I1, I2, x;
      @@
      	struct I1 {
      	  ...
      	  const struct I2 *x;
      	  ...
      	};
      @s@
      identifier r.I1, y;
      identifier r.x, E;
      @@
      	struct I1 y = {
      	  .x = E,
      	};
      @c@
      identifier r.I2;
      identifier s.E;
      @@
      	const struct I2 E[] = ... ;
      @depends on !c@
      identifier r.I2;
      identifier s.E;
      @@
      +	const
      	struct I2 E[] = ...;
      // </smpl>
      Signed-off-by: NMárton Németh <nm127@freemail.hu>
      Cc: Julia Lawall <julia@diku.dk>
      Cc: cocci@diku.dk
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      5cccfd9b
    • M
      block: make USB device id constant · 577cdf0c
      Márton Németh 提交于
      The id_table field of the struct usb_device_id is constant in <linux/usb.h>
      so it is worth to make ub_usb_ids also constant.
      
      The semantic match that finds this kind of pattern is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r@
      disable decl_init,const_decl_init;
      identifier I1, I2, x;
      @@
      	struct I1 {
      	  ...
      	  const struct I2 *x;
      	  ...
      	};
      @s@
      identifier r.I1, y;
      identifier r.x, E;
      @@
      	struct I1 y = {
      	  .x = E,
      	};
      @c@
      identifier r.I2;
      identifier s.E;
      @@
      	const struct I2 E[] = ... ;
      @depends on !c@
      identifier r.I2;
      identifier s.E;
      @@
      +	const
      	struct I2 E[] = ...;
      // </smpl>
      Signed-off-by: NMárton Németh <nm127@freemail.hu>
      Cc: Julia Lawall <julia@diku.dk>
      Cc: cocci@diku.dk
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      577cdf0c
    • M
      block: make PCI device id constant · 3d447ec0
      Márton Németh 提交于
      The id_table field of the struct pci_driver is constant in <linux/pci.h>
      so it is worth to make the initialization data also constant.
      
      The semantic match that finds this kind of pattern is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r@
      disable decl_init,const_decl_init;
      identifier I1, I2, x;
      @@
      	struct I1 {
      	  ...
      	  const struct I2 *x;
      	  ...
      	};
      @s@
      identifier r.I1, y;
      identifier r.x, E;
      @@
      	struct I1 y = {
      	  .x = E,
      	};
      @c@
      identifier r.I2;
      identifier s.E;
      @@
      	const struct I2 E[] = ... ;
      @depends on !c@
      identifier r.I2;
      identifier s.E;
      @@
      +	const
      	struct I2 E[] = ...;
      // </smpl>
      Signed-off-by: NMárton Németh <nm127@freemail.hu>
      Cc: Julia Lawall <julia@diku.dk>
      Cc: cocci@diku.dk
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      3d447ec0
  13. 07 1月, 2010 1 次提交
  14. 04 1月, 2010 1 次提交
  15. 31 12月, 2009 1 次提交
  16. 30 12月, 2009 3 次提交