Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'batman-adv-for-davem' of git://git.open-mesh.org/linux-merge

Included changes:
- fix codestyle to respect new checkpatch warnings
- increase internal version number

+26 -5
+11 -2
net/batman-adv/debugfs.c
··· 245 245 static int batadv_originators_open(struct inode *inode, struct file *file) 246 246 { 247 247 struct net_device *net_dev = (struct net_device *)inode->i_private; 248 + 248 249 return single_open(file, batadv_orig_seq_print_text, net_dev); 249 250 } 250 251 ··· 259 258 struct file *file) 260 259 { 261 260 struct net_device *net_dev = (struct net_device *)inode->i_private; 261 + 262 262 return single_open(file, batadv_orig_hardif_seq_print_text, net_dev); 263 263 } 264 264 265 265 static int batadv_gateways_open(struct inode *inode, struct file *file) 266 266 { 267 267 struct net_device *net_dev = (struct net_device *)inode->i_private; 268 + 268 269 return single_open(file, batadv_gw_client_seq_print_text, net_dev); 269 270 } 270 271 271 272 static int batadv_transtable_global_open(struct inode *inode, struct file *file) 272 273 { 273 274 struct net_device *net_dev = (struct net_device *)inode->i_private; 275 + 274 276 return single_open(file, batadv_tt_global_seq_print_text, net_dev); 275 277 } 276 278 ··· 281 277 static int batadv_bla_claim_table_open(struct inode *inode, struct file *file) 282 278 { 283 279 struct net_device *net_dev = (struct net_device *)inode->i_private; 280 + 284 281 return single_open(file, batadv_bla_claim_table_seq_print_text, 285 282 net_dev); 286 283 } ··· 290 285 struct file *file) 291 286 { 292 287 struct net_device *net_dev = (struct net_device *)inode->i_private; 288 + 293 289 return single_open(file, batadv_bla_backbone_table_seq_print_text, 294 290 net_dev); 295 291 } ··· 306 300 static int batadv_dat_cache_open(struct inode *inode, struct file *file) 307 301 { 308 302 struct net_device *net_dev = (struct net_device *)inode->i_private; 303 + 309 304 return single_open(file, batadv_dat_cache_seq_print_text, net_dev); 310 305 } 311 306 #endif ··· 314 307 static int batadv_transtable_local_open(struct inode *inode, struct file *file) 315 308 { 316 309 struct net_device *net_dev = (struct net_device *)inode->i_private; 310 + 317 311 return single_open(file, batadv_tt_local_seq_print_text, net_dev); 318 312 } 319 313 ··· 327 319 static int batadv_nc_nodes_open(struct inode *inode, struct file *file) 328 320 { 329 321 struct net_device *net_dev = (struct net_device *)inode->i_private; 322 + 330 323 return single_open(file, batadv_nc_nodes_seq_print_text, net_dev); 331 324 } 332 325 #endif ··· 342 333 .llseek = seq_lseek, \ 343 334 .release = single_release, \ 344 335 } \ 345 - }; 336 + } 346 337 347 338 /* the following attributes are general and therefore they will be directly 348 339 * placed in the BATADV_DEBUGFS_SUBDIR subdirectory of debugfs ··· 404 395 .llseek = seq_lseek, \ 405 396 .release = single_release, \ 406 397 }, \ 407 - }; 398 + } 408 399 static BATADV_HARDIF_DEBUGINFO(originators, S_IRUGO, 409 400 batadv_originators_hardif_open); 410 401
+1
net/batman-adv/distributed-arp-table.c
··· 662 662 void batadv_dat_status_update(struct net_device *net_dev) 663 663 { 664 664 struct batadv_priv *bat_priv = netdev_priv(net_dev); 665 + 665 666 batadv_dat_tvlv_container_update(bat_priv); 666 667 } 667 668
+1 -1
net/batman-adv/main.h
··· 24 24 #define BATADV_DRIVER_DEVICE "batman-adv" 25 25 26 26 #ifndef BATADV_SOURCE_VERSION 27 - #define BATADV_SOURCE_VERSION "2014.2.0" 27 + #define BATADV_SOURCE_VERSION "2014.3.0" 28 28 #endif 29 29 30 30 /* B.A.T.M.A.N. parameters */
+1
net/batman-adv/network-coding.c
··· 86 86 void batadv_nc_status_update(struct net_device *net_dev) 87 87 { 88 88 struct batadv_priv *bat_priv = netdev_priv(net_dev); 89 + 89 90 batadv_nc_tvlv_container_update(bat_priv); 90 91 } 91 92
+12 -2
net/batman-adv/sysfs.c
··· 29 29 static struct net_device *batadv_kobj_to_netdev(struct kobject *obj) 30 30 { 31 31 struct device *dev = container_of(obj->parent, struct device, kobj); 32 + 32 33 return to_net_dev(dev); 33 34 } 34 35 35 36 static struct batadv_priv *batadv_kobj_to_batpriv(struct kobject *obj) 36 37 { 37 38 struct net_device *net_dev = batadv_kobj_to_netdev(obj); 39 + 38 40 return netdev_priv(net_dev); 39 41 } 40 42 ··· 108 106 .mode = _mode }, \ 109 107 .show = _show, \ 110 108 .store = _store, \ 111 - }; 109 + } 112 110 113 111 /* Use this, if you have customized show and store functions */ 114 112 #define BATADV_ATTR(_name, _mode, _show, _store) \ ··· 117 115 .mode = _mode }, \ 118 116 .show = _show, \ 119 117 .store = _store, \ 120 - }; 118 + } 121 119 122 120 #define BATADV_ATTR_SIF_STORE_BOOL(_name, _post_func) \ 123 121 ssize_t batadv_store_##_name(struct kobject *kobj, \ ··· 126 124 { \ 127 125 struct net_device *net_dev = batadv_kobj_to_netdev(kobj); \ 128 126 struct batadv_priv *bat_priv = netdev_priv(net_dev); \ 127 + \ 129 128 return __batadv_store_bool_attr(buff, count, _post_func, attr, \ 130 129 &bat_priv->_name, net_dev); \ 131 130 } ··· 136 133 struct attribute *attr, char *buff) \ 137 134 { \ 138 135 struct batadv_priv *bat_priv = batadv_kobj_to_batpriv(kobj); \ 136 + \ 139 137 return sprintf(buff, "%s\n", \ 140 138 atomic_read(&bat_priv->_name) == 0 ? \ 141 139 "disabled" : "enabled"); \ ··· 159 155 { \ 160 156 struct net_device *net_dev = batadv_kobj_to_netdev(kobj); \ 161 157 struct batadv_priv *bat_priv = netdev_priv(net_dev); \ 158 + \ 162 159 return __batadv_store_uint_attr(buff, count, _min, _max, \ 163 160 _post_func, attr, \ 164 161 &bat_priv->_name, net_dev); \ ··· 170 165 struct attribute *attr, char *buff) \ 171 166 { \ 172 167 struct batadv_priv *bat_priv = batadv_kobj_to_batpriv(kobj); \ 168 + \ 173 169 return sprintf(buff, "%i\n", atomic_read(&bat_priv->_name)); \ 174 170 } \ 175 171 ··· 194 188 size_t res = __batadv_store_bool_attr(buff, count, _post_func, \ 195 189 attr, &vlan->_name, \ 196 190 bat_priv->soft_iface); \ 191 + \ 197 192 batadv_softif_vlan_free_ref(vlan); \ 198 193 return res; \ 199 194 } ··· 209 202 size_t res = sprintf(buff, "%s\n", \ 210 203 atomic_read(&vlan->_name) == 0 ? \ 211 204 "disabled" : "enabled"); \ 205 + \ 212 206 batadv_softif_vlan_free_ref(vlan); \ 213 207 return res; \ 214 208 } ··· 332 324 struct attribute *attr, char *buff) 333 325 { 334 326 struct batadv_priv *bat_priv = batadv_kobj_to_batpriv(kobj); 327 + 335 328 return sprintf(buff, "%s\n", bat_priv->bat_algo_ops->name); 336 329 } 337 330 338 331 static void batadv_post_gw_reselect(struct net_device *net_dev) 339 332 { 340 333 struct batadv_priv *bat_priv = netdev_priv(net_dev); 334 + 341 335 batadv_gw_reselect(bat_priv); 342 336 } 343 337